How long does it take?

My physics teacher had a saying. Every time we’d ask a question which had many different possible answers, he’d say, “how long is a piece of string?”. Being good math students at high school, someone eventually realised the length of any piece of string is twice half its length. So from then on, I…

res.json() vs res.send() vs res.end() in Express.js

Express is one of the most popular web frameworks for Node.js - probably used by most Node.js developers. It’s an excellent framework that has a myriad of HTTP utility methods, and it also performs well. When working with Express, we get access to a request and a response object, and we can use the…

Pass By Value And Pass By Reference In JavaScript

Until recently, I always think that variables in Javascript are passed by value. BAM! In this post, we will look into pass by value and pass by reference in Javascript. Let’s see what is pass by value and pass by reference before looking into its javascript context. Pass by Value: In Pass by Value…

My first step in the journey of machine learning

Today I start my tiny little step in the long journey of machine learning Rewind a bit Last year, I joined Tomochain, a blockchain company in Vietnam (which is one of the leaders of this industry in South East Asia) with the belief that blockchain technology will change our world drastically as what…

Using Context API in React (Hooks and Classes)

React Context API is a way to essentially create global variables that can be passed around in a React app. This is the alternative to “prop drilling”, or passing props from grandparent to parent to child, and so on. Context is often touted as a simpler, lighter solution to using Redux for state…

Page 9 Of 12