Articles about JavaScript

Read juicy posts about JavaScript and its surrounding ecosystem

Turn off your browser and try red, green & refactor pattern (part 3)

Every now and then, I come across mentally exhausted and frustrated web developers who try to test their work by clicking here and there in the UI. Most of the times something is still missing so they have to repeat this routine yet another time. My proposal is to simply turn off the browser.

Read full story 3 mins read

Turn off your browser and try red, green & refactor pattern (part 2)

Every now and then, I come across mentally exhausted and frustrated web developers who try to test their work by clicking here and there in the UI. Most of the times something is still missing so they have to repeat this routine yet another time. My proposal is to simply turn off the browser.

Read full story 3 mins read

Using any in TypeScript gives us a false sense of safety

TypeScript is meant to make JavaScript stronger and safer by helping us stay type-safe while using it. Using any defeats this purpose and can easily become the root evil the more we keep on using it.

Read full story 3 mins read

ES2020 - String.prototype.replaceAll

For years we couldn't replace all instances of a substring in a string without the use of a global regexp. This is the issue that String.prototype.replaceAll is going to solve.

Read full story 1 mins read

ES2020 - Promise.any

When we need to know whether at least 1 promise got resolved among an iterable of Promise objects, Promise.any() is the solution we are asking for.

Read full story 1 mins read

ES2020 - Access global scope with globalThis across different environments

Accessing global object across different environments has been a challenging task for many years in the JavaScript community. This is exactly what globalThis is trying to tackle.

Read full story 1 mins read

ES2020 - Optional chaining and nullish coalescing operators

Accessing deep nested keys across objects has been a tricky procedure for JavaScript engineers since they should take care of non-existent keys down the road. Optional chaining and Nullish coalescing operators are meant to tackle this issue.

Read full story 2 mins read

ES2020 - Promise.allSettled

There are times when we need to know whether all promises we are running are done. This can be taken care of with Promise.allSettled().

Read full story 1 mins read

Newsletter

Get notified about latest posts and updates once a week!!