Why Data Structures?

When I started to become a programmer, I always wondered what’s the big deal about data structures. It kind of seemed like some abstract mumbo jumbo that you only need to know for job interviews. As I’ve been exposed to more software development, my horizons have been expanded to the importance of data structures. For… Continue reading Why Data Structures?

The Big O

The problem with measuring functions with timers is that different machines record different times; even the same machine records different times. Furthermore, as algorithms get faster, speed measurements are typically not precise enough. So rather than counting time, it’s better to count the number of simple operations that the computer has to perform. And this… Continue reading The Big O

Published
Categorized as Algorithms

What The Heck Is The Difference Between A Python Interpreter and Python Compiler?

Holy moly this is a loaded (no pun intended) question. So let’s start by making this as simple as possible by understanding how computers work in general. I bought a brand new MacBook Air that came with an M1 core processor and the job of a processor is to execute machine code (binary code in… Continue reading What The Heck Is The Difference Between A Python Interpreter and Python Compiler?

Published
Categorized as Python

Under The Hood Of Node JS

Node is a Javascript server-side runtime; it’s not a framework, a library or a language. Although Javascript’s Google V8 engine works as a single-threaded compiler, Node is asynchronous in nature and built on callback functions and promises as a non-blocking I/O built on an event loop called lubUv. In some ways, Node works similar to… Continue reading Under The Hood Of Node JS

Published
Categorized as Node JS

The Power Of Closure

I feel like closure is one of the most difficult things to understand in Javascript. Let’s try to break this down into a more digestible concept. In JS, functions are objects and can be declared anywhere. If I declare a function within another function, the inner function has access to the local variable of the… Continue reading The Power Of Closure

Published
Categorized as Javascript

A Prototype Chain By Any Other Name Would Smell As Sweet…

Javascript, I love it when you talk prototypes and chains at me… But JS, I know you’re lying to me. You really don’t have classes like in other OOP (object oriented programming) languages. When we code, we’re really only concerned about two things: storing data in memory and applying functionality to this data. Object Oriented… Continue reading A Prototype Chain By Any Other Name Would Smell As Sweet…

Published
Categorized as Javascript