Modules and Namespaces in JavaScript

modules and namespaces in javascript

For most of us, modules and namespaces in JavaScript were kinds of tricky. We import a bundle and it does the magic. How and why is abstracted away. And before modules, ideas of IIFE, closure, etc made this arena unreachable for junior JavaScript developers. Besides the easiness it brings, modularity has a number of advantages. […]

The case of IIFEs in ES6

Do we need IIFEs in ES6? To answer this question let’s talk about IIFEs first. What the heck is IIFE? As a programmer who learned things by trial and error and who avoided scary topics at all costs, I can tell you honestly that I have missed IIFEs for the most part of my career. […]

How to move or shift date by n number of days

shift date by n number of days

Here is a quick way to shift a day by n number of days, by adding those days, and adjusting the date. In the process, we will pay attention to moving the days into another month or year if we have to. Of course, this depends on the few date manipulation methods we saw last […]

Working with Dates and Time in JavaScript

Working with dates and time is very scary, I admit. Most of the time I retreat and find a library that can handle the details for me and avoid this topic at all costs. Besides libraries, JavaScript has a built-in class called Date which represents a point in time. And, if we like, we can […]

Your subscription could not be saved. Please try again.
Your subscription has been successful.

Learn Modern PHP

Subscribe to learn modern PHP in the most simple way.