Node’s event-driven architecture allows us to execute certain actions when something happens. This is done via objects (called “emitters”) which can emit named events that cause functions (“listeners”) to be executed. Objects that emit events are instances of node’s EventEmitter class, made available via the events module. In this article we’ll look at node’s event emitter.
D.R.Y, which stands for “Do Not Repeat Yourself”, is a principle of software development aimed at reducing the repetition of code.
Speed performance is critical in modern day applications. Most of the times your application may have to make requests to an endpoint/server to get some data. Or your application may frequently request a specific dataset.
Depending on the size of your dataset a long with other things like query database and network speed, the speed at which your application can fetch certain data to display to users may get slower over time (as data increases).
This is where caching comes in handy and can dramatically improve your application’s speed.
The this keyword references the object to which the function belongs (remember, everything in JS is an Object).
The value of the this keyword is determined by how/where the function was executed.
This means that if we are not careful we can lose the scope of what this is actually pointing to.
In this article we take a refreshing look at the bind(), call(), & apply() methods.
Chances are you’ve heard about or used URL shortening services like bitly, and tinyurl. These services allows you to enter long (and quite ugly) URLs and in turn gives you a very short (more appealing) link which you can use instead of the long URL. Shorter links takes up less space and are easier to share and type
Security is a critical component of most modern web applications. As you progress through your career, you will develop more and more applications which requires some level of security, namely authentication and authorization. One way to handle security in your application in through the use of JSON Web Tokens (JWT) which we’ll discuss in this article