Image for post
Image for post
Photo by Jaakko Kemppainen on Unsplash

There is a cheeky joke about recursion I can’t help using here “To understand recursion, you must first understand recursion”.

That may be correct with a caveat: like the Russian dolls, a recursion should not go on forever, it has to end when the base case is met.

What’s the base case?

Well, let’s start over.

What is recursion ?

Recursion is when a function calls itself, until it doesn’t.

In Computer Science, a recursion function is made of

  1. a recursive case, meaning that a case calls a smaller version of itself, until it reaches…
  2. …a base case. A base…

Mutable, Immutable… everything is an object!

Image for post
Image for post
Curiosity cabinet: objects everywhere

Python is an object-oriented programming language, and in Python everything is an object.

Almost every object has some metadata (called attributes) and associated functionality (called methods).

Even these attributes and methods of objects are themselves objects with their own type information.

Every object can be assigned to a variable or passed as an argument to a function.

type() and id()

The type() function returns the type of the object. The returned type is a class as each object is an instance of the corresponding class. Class is a structure used to describe and access a particular value’s information and methods.

From my previous…


Image for post
Image for post
Disclaimer: no dogs were harmed in the making

Python is a high level programming language designed for general purpose programming, it supports both Procedural and Object Oriented features. Python is multi-paradigm.

With procedural programming, a problem is broken down into functions. Each function does just one task. The main program is a series of calls to the different functions.

Object Oriented Programming (OOP) allows the programmer to couple data structure and related functionality (behavior, methods for accessing and manipulating the data) into objects. This entails describing the objects in terms of their class.

The class & instance attributes are specific to OOP.

OOP is an approach for modeling…


Image for post
Image for post
Photo by Evgeni Tcherkasski on Unsplash

What is a library in C?

When you write a program, chances are you may need to print something to the screen. How would you do it? Would you write a printf function from scratch or use the one available in the <stdio.h> library?

The answer is obvious.

When you compile and run the program with printf from the <stdio.h>, you’ve used a library.

In order to access to this library, you’ve added #include <stdio.h> at the beginning of the program.

It’s only at the linking stage, the last of the four stages of the compilation process, that you can specify how the source code for…


What happens when you type ls -l in the shell

Image for post
Image for post
Photo by Marc Rentschler on Unsplash

By the way of introduction, I would like to make few reminders.


Image for post
Image for post
Photo byToa Heftiba on Unsplash

On computer systems, a byte consists of eight smaller units called bits. A bit can assume either of two values: 1 or 0.

The rightmost bit of a byte is known as the least significant bit (LSB), whereas the leftmost bit is known as the most significant bit (MSB).

Data types are of fixed width.

An integer takes 4 bytes, which is 32 bits. The rightmost bit of the byte represents 2⁰ or 1, the bit immediately to its left represents 2¹ or 2, the next bit 2² or 4, and so on.

· An unsigned integer can represent any…


Imagine there is an ideal library, where one could find all information ever existed, and these information are always available for whoever need them.

Image for post
Image for post
Alexandria, Egypt

There is no need to store anything locally imagine no possessions, you may say I’m a dreamer ;-)

So, how would that help me to understand library in C?

When you’re working on a new project, chances are parts of the project are already developed either by you or a third party.

How about not reinventing the wheel?

What if there is a way to reuse existing snippets? That would keep your code from growing, reduce…

Huy Nguyen

Software Engineer student at Holberton School. Reach me @huyxuanminh

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store