Yiling's Blog

(This site is very broken right now due to
an ill-planned domain migration. Another
version of this site built using Next.js will
be brought online later.)

Tag: JavaScript

  • Currying (in JS). My mind is blown…

    I was preparing for a coding question for an interview and came across the below explanation about how to turn any function into a curried function in JavaScript, and it is absolutely mind blowing… Deeply Understand Currying in 7 Minutes (freecodecamp.org)

  • Making Sense of Bitwise Operations

    Each bit should be thought of as a “switch” that is either on or off, or, the bit is either set or not set. As a matter of fact, this precisely describes what a CPU does at the lowest level – flipping billions and billions (and counting!) of switches/bits. Perhaps, and that is a big […]