CodeMacaw

Code to create

JavaScript .sort() method

January 15, 2021January 15, 2021 lahinJavaScript2 Comments on JavaScript .sort() method

JavaScript has a built-in sort prototype method. Which can be used to sort elements of an array. When we call .sort() method of an array of numbers or strings JavaScript automatically sort the array.

Builder Design Pattern

September 27, 2020September 27, 2020 lahinDesign Pattern, JavaScript3 Comments on Builder Design Pattern

Builder Design Pattern is a design pattern, which is used to create object from a complex or from a general object.

Understanding the Hash Table

February 17, 2020March 2, 2020 lahinComputer Science, Data StructureLeave a Comment on Understanding the Hash Table

In Computer Science, a Hash Table is a Data Structure. There are many data structure available such as Stack, Queue, Linked List, Set. Hash Table is another one which stores data in an associative manner.

Create a simple Compiler with JavaScript

February 2, 2020April 28, 2020 lahinCompiler, Computer Science, JavaScriptLeave a Comment on Create a simple Compiler with JavaScript

In this post we are going to make a small compiler with JavaScript. We will start by understanding what compiler is, phases of compilation then we will make a simple compiler.

Understanding the big-O with JavaScript

January 9, 2020January 9, 2020 lahinJavaScriptLeave a Comment on Understanding the big-O with JavaScript

Finding a complexity for a program is always an important task. It gives us clear indication of how much slower or faster our program will get when you give more data input at it.

Pure & Impure Function

January 4, 2020January 5, 2020 lahinJavaScript4 Comments on Pure & Impure Function

In Functional JavaScript a Pure Function is a function that doesn’t depend on anything outside of it’s scope nor modify it.

Avoid Prop Drilling using Composition

December 6, 2019December 22, 2019 lahinReactLeave a Comment on Avoid Prop Drilling using Composition

In react when we pass a props down to its children, we like to use Context/Redux, this is not wrong but we don’t need to use this every time if parent has a small amount of children or child components.

Introduction to NodeJS Streams

November 29, 2019March 2, 2020 lahinJavaScript, NodeJS4 Comments on Introduction to NodeJS Streams

Streams are core concept of nodejs. Streams are data (array or object), they do not process all at once rather than piece by piece.

Formatting Number & Date with Intl Object

November 18, 2019December 17, 2019 lahinJavaScript4 Comments on Formatting Number & Date with Intl Object

The Intl object provides access to several constructors, each of them allows to do string comparison, number formatting and date and time formatting.

JavaScript Expression & Statement

November 14, 2019December 17, 2019 lahinJavaScriptLeave a Comment on JavaScript Expression & Statement

An expression is any valid set of literals, variables, operators that evaluates to a single value.

Posts navigation

1 2 Next

Categories

  • Compiler
  • Computer Science
  • Data Structure
  • Design Pattern
  • JavaScript
  • NodeJS
  • React
  • TypeScript

Archives

  • January 2021
  • September 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • September 2019
Copyright © All rights reserved.
Blog Kit by WP Charms