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

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?__

Automating FTP deployment with Travis CI and Gulp

**Continuous integration is an important subject, I cannot think of a development world without it. There are a lot of options for CI, but [Travis](https://travis-ci.org/) is a nice and simple one. For personal projects it's free with unlimited repo's, perfect! However, it requires you to code your own build script. I had some trouble figuring out a good way to do FTP deployments. So, how do you upload files to FTP servers with Travis?**

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?**