new Date('YYYY-MM-DD') might not do what you think it does For a long time, I only did...
I consider closures and higher order functions to be one of the most powerful language features, if n...
On frontend, you may have a piece of code that fires network requests very quickly, based on user int...
I found myself using this code and some derivatives time and time again so I decided to share. It's n...
In 2 previous posts we explained how to create a custom error type and created a few custom HTTP erro...
Previously we defined our most basic custom error class that extends the Javascript's Error prototype...
Custom error types in node can provide a clearer picture of a failure. Relying on generic errors ofte...
I keep forgetting how communication between a main window and an iframe works because I don't use it...
We have our scheduler factory from a previous post: function createScheduler({ callback, time, call...
So we have a scheduler factory function. Simple mechanism that runs code periodically. Here is the co...
In previous post, we untangled our pause and loop mechanisms but the main flaw of not being able to s...
Previously, we constructed a pretty simple and naive system that periodically runs a function. Not gr...
Previous post describes an implementation of a one-liner pause mechanism using a Promise. Here it is...
This is first post in series, explaining how to build a plain javascript code scheduler. Schedulers a...
Some developers get annoyed by async functions that don't use await functionality. There are even lin...
Handling exceptions in the async/await functions can become really bothersome. You can have multiple...
Do you know of any useful public APIs with CORS headers set to allow access from other domains? I'm c...
tl;dr To allow cross-domain requests: server needs to respond with correct HTTP headers...
This posts follows the one about call stack obfuscation. It’s just a proof of concept to further cove...
Let’s look at one way to cover the tracks within injected javascript code. It exploits asynchronous j...
Ever had a block of code that, based on a condition can fetch data asynchronosuly or synchronously? I...
If you ever decide to do bitwise operations and do “bit-precise” data storing inside canvas image dat...
C/P-ing this from my older blog posts. This one is from 2014. since I was a junior dev pretty much. N...