My take on solving the Gilded Rose refactoring problem using the strategy pattern technique with JavaScript.
Advices from Robert C. Martin's book Clean Code about writing clean functions. Writing clean function is essential to keep code maitainable and scalable.
The Proxy is a standard built-in object introduced in ES6. It acts as a gatekeeper for an object. Let's look at some where Proxies can be useful.
A slider micro-interaction built with React. We will build a tree animation that grows with slider change.Using react-transition-group library build a smooth UI interaction.
Small delightful micro-interaction truly shows you care about small details that gives joy. We will create an animated checklist using simple CSS techniques.
We'll build a React-based widget and bundle it with rollup. Then use this bundled widget to embed it in any JavaScript based application.
Docker is a tool that helps you package your software and its dependencies into a single unit called a 'container'. In this article, we'll explore the concept of Docker through the lens of a pizza food cart analogy.
In 2022, I explored various types of books, from exciting fiction to informative technical books. I enjoyed diving into different genres throughout the year. Now, I'm sharing a complete list of the books I read in 2022.
We'll explore how D3.js, a powerful data visualization library, can work hand-in-hand with React. By the end, you'll have a clear understanding of how to create interactive circular data visualizations for your web projects.
In this post, I have shown how to build an animated accordion without using any external library. Using getComputedStyle we can get the height of each accordion and animate accordingly with CSS.
In simple words, higher order functions in JavaScript can take a function as argument or return a function. map(), reduce() and filter() are higher order built-in functions in ES6 module. One of the advantages of using them is that, it makes code simpler and accelerates workflow.
One of the optimal algorithm for generating permutation (shuffle) of a sequence is Fisher-Yates algorithm.It runs in linear runtime and shuffles them in place i.e no additional memory is needed.
Let’s look into built-in methods in JavaScript for handling string.
Kadane's algorithm can be used to find the maximum sum of a subarray in linear time.
If you want to host your static web apps, github page is certainly one of the best option. You can share both your code and demo in one place.
In this post, I discussed the algorithms to determine the collision between circles, non-rotated rectangles and collision between rectangle and circle.
‘use strict’ is a JavaScript expression usually written on the beginning of code and is very helpful for debugging purpose.