Nazanin De's Blog

Projects, Ideas and thoughts

Javascript implementation of Aho-Corasick Algorithm for Pattern Searching

Aho-Corasick algorithm is a string search algorithm invented by Alfred V. Aho a Canadian Computer scientists mostly famous for his work on languages, compilers and related algorithms. This algorithm is used to find occurrences of text in a set of strings. The complexity of this algorithm is linear in the…

Deep dive into React Reconciliation

When people use React they are always wondering whether their application is fast enough with all these subtree components rerendering on every state changes.Even I myself was curious about how React does all these DOM manipulation in such a clever way. Let me start from the beginning: So, How…

Angular 2 Universal: Isomorphic Javascript in Angular 2

Defining the term isomorphic in Javascript means to be able to run the same line of code both on the browser and the server so the front-end and back-end having the same code. Looking into the meaning of the isomorphic word more closely we will find "corresponding or similar in…

Reflection in ES6 with Symbol, Proxy and Reflect - Part 1

Really Reflection in ES6? YES! ES6 has three awesome language feature which you can leverage to apply reflection and some cool meta programming. How? Symbols are all about Reflection within implementation - you sprinkle them on your existing classes and objects to change the behavior. Reflect is all about Reflection…

How to set up LCD on Arduino

LCDs have a parallel interface, meaning that the microcontroller has to manipulate several interface pins at once to control the display. The interface consists of the following pins: A register select (RS) pin that controls where in the LCD's memory you're writing data to. You can select either the data…