Mark Johnson

Passionate web designer and art lover.

REST API

REST Endpoints Design Pattern

In this post I'll present a suggested design pattern and implementation for this design pattern using a Node + Express REST API with ES Classes. Personally, I hate writing the same code again and again.


0 Comments13 Minutes

concurrency issues

Concurrency – Watch out for globals in node.js AMD modules!

globals, or global variables are known to be risky.
However using the ‘var’ keyword should ensure file level definition.
As such shouldn’t it be safe to use module level variables?

The answer is no, and it should be avoided at all costs.


0 Comments3 Minutes

Async JS Clock

Waiting for things the JavaScript way…

This blog posts bring clarity to the various asynchronous or async JS mechanisms that exist. It covers Callbacks, Promises, Generators and Async / Await in more details and provides great references for those that want to learn more.


0 Comments7 Minutes