Categories
Codes Javascript MongoDB Node.js Redis

How to Create REST API Using Node.js – Part 1

In this multiple posts series, I will share about creating a simple REST API using Node.js and Express. The good news is

Categories
Codes General Javascript

Generator Functions in JavaScript

Have you ever heard of generator functions in JavaScript? In this post, I share about generator functions and how to implement them.

Categories
Codes Javascript

Object Destructuring Tricks in JavaScript

Object destructuring is a powerful feature in JavaScript ES6. It reduces the codes you need to write in JavaScript. In this post, I share some of the tricks in object destructuring, hope it helps!

Categories
Codes General

Coding Style: Imperative vs Declarative

What is the difference between imperative and declarative coding style? Which style do you prefer on your job?

Categories
Codes Javascript

Handling Errors in Asynchronous Functions

Handling errors in your code is a must, to let users know that something is not right when they use your program. In this post, I share about handling the errors of asynchronous functions in JavaScript.

Categories
Codes Javascript

Understanding Asynchronous Functions

Whether you realize it or not, asynchronous functions have been a part of our daily life, in the programs and apps we use. In this post, I would like to share on how to implement asynchronous functions in JavaScript.

Categories
Codes Javascript

What Is Promise Chaining?

Promise chaining is a way to execute codes by calling then() successively after an asynchronous code is executed successfully. Read more to find out.

Categories
Javascript

Method Chaining

This time, I share about method chaining in JavaScript, and how to create an object to support method chaining.

Categories
Codes Javascript

What Is Currying?

In this post, I share about currying, its purpose, and how to use it in real life cases. You mean like cooking curry? Definitely not. Just read the post.

Categories
Codes Javascript

7 Tricks of JavaScript Spread (…) Operator

One of the most useful operators introduced in ES6 in the spread (…) operator. It spreads an iterable object to a new list of elements. In this post, I will share about how to implement the spread operator in some use cases.