We code the web

Quick tip: shortId

Generating id’s, no matter the concern, it always comes in handy. Check out this little fella!

import shortid from 'shortid';
const id = shortid.generate();
console.log(id); // => AcBx2A4

Unique, url friendly id’s, short and simple :-).

npm install shortid

Github: github.com/dylang/shortid

Related posts

Immutable Javascript using ES6 and beyond

Writing immutable Javascript code is a good practice. There are some awesome libraries around like Immutable.js to help you with this. But could we survive with just vanilla, next generation Javascript?

Async ... await in Javascript

We’ve all been through callback hell, maybe we use Promises and Observables to get some relief. Will async await liberate us once and for all?

Better Javascript apps by optimizing state

Client side applications hold a lot of state, some view related, some data related. But how do we make sure state is reliable and managable?