Are you still writing your async JavaScript code using callbacks or async library? It's the time to start to Promises! What is a Promise? As the word says, Promise is something that can be available now, or in future, or never. When someone promises you something, that can be fulfilled of rejected. In JavaScript, Promise represents the eventual result of an asynchronous function. It has 3 different states: pending - The initial state of a promise. fulfilled - Operation is successful. rejected - Operation failed. Why
Building serverless API with Claudia API Builder
Writing a scalable API is something that we're struggling with every day. We want an API can scale and be always online. If you're like me, you don't want to think about server infrastructure, downtimes and you want to have an easy way to deploy changes and updates. Now you probably ask "Is there some great service that can help us achieve what we want?". Yes, there is, welcome to serverless architecture, welcome to the era of AWS Lambda! About AWS Lambda AWS Lambda
Short guide to awesome changelogs
I've recently found one awesome changelog generator, based on your commit messages. That's git-changelog. Git changelog comes with Grunt plugin and CLI. I am using CLI for generating changelogs, but Grunt plugin is also an awesome idea. It uses Angular JS commit standard (which is probably the best commit standard in my opinion), but you also have the ability to change that. For installing git-changelog CLI, execute this command: npm install -g git-changelog How generated changelog looks like? Here is an example of generated changelog: https:
Running Express, Koa and Hapi on HTTP/2
Since I've started to work on web apps, I am searching for ways to improve page speeds and create better user experience. We are minifying our code, bundling files and optimizing images. One thing that we don't think about is server protocol. Is there a way to increase speed by changing protocol? Yes, there is! Welcome to HTTP/2 era! HTTP/2 is latest version of HTTP protocol, made by the HTTP Working Group. It's developed from SPDY, experimental protocol made by Google. Last HTTP version
Working with HTTP streams with Cycle.js
Hi! These days everyone is talking about functional programming in JS, reactive programming, and streams. Some awesome libraries came out to help us to work with streams and my favorite is Cycle.js. It's created by André Staltz. I've recently started to use Cycle.js framework for reactive programming. This framework gives you the ability to think about what should your app do when some data comes in the stream (Sources) and what it should do when you send some response back (Sinks). It creates an