According to Wikipedia recursion occurs when something is defined in terms of itself or of its type.
Precisely for computer science we can say that it is a function that calls itself.
As a programming technique it is one of the so-called “divide and conquer” techniques and is fundamental in the design of many algorithms.
In order to make a recursive call without falling into an infinite repetition it is necessary to determine a base condition, usually associated with a problem that is no longer possible to divide or unglobe.
For example, whenever we call a function in…
Today we will talk about Python, about why everyone is an object.
It follows the principle of “First-Class Everything”. This concept centers around the idea of having every single item of data in python belonging to a class as an object with attributes and methods.
Each object has an id and a type, it is what identifies them.
It is a built-in function and is used by passing the object as an id(object) parameter to tell us what the id of an object.
type Is a built-in function too, and is used to know what type a certain object…
At the time of programming we find a series of features that we have the need to repeat constantly. Programming in C these features can be grouped into dynamic or static libraries, which we can access to avoid duplicate code, increasing the quality and development time, although they share the same generic name “library”, they use different mechanisms to provide their functionality to the executable.
About the dynamic libraries I was talking about in my post of October 11, 2020, which you can access here.
Today I will explain about the dynamic libraries, but first let’s refresh our memory.
What an intense journey! We are four crew members in the ship, two teams with the sole mission of discovering how the linux command interpreter works inside. My team is Luciana Sarachu and me. An excellent mix of “nerdism” at different levels of experience. Many things have happened, a rollercoster of emotions and we are back safe and sound. We made this report requested by Holberton School and it includes the story of our jornal.
Opening the doors After several days of testing we are certain that in all cases, when it receives an order, its behavior always…
¿What are they?
When we started programming in C our first tasks were to code a program that uses functions from the standard library “#include <stdio.h>”. But, what is this .h file that we included at the beginning of our program and why is it necessary to include it to use certain functions?
The definition of “library” found in Wikipedia tells us that:
A library is a curated collection of similar information sources and resources, selected by experts and made available to a defined community for consultation or loan, often in a quiet environment conducive to study.
This is something…
A little bit about links in Linux environment
Today we will try to explain the difference about hard links and symbolic links in the Linux environment. If you come from Windows we will explain how they differ from shortcuts.
To begin with, we must know that in Linux each file and folder of the operating system is assigned an integer called an inode.
An inode is a record on the disk. Each inode is unique for each of the files and each of the folders. The number of inodes in your user equals the number of files and folders that…
First I will explain what gcc is and why we use it.
The GNU Compiler Collection (GCC) is a compiler system produced by the GNU Project supporting various programming languages. GCC is a key component of the GNU toolchain and the standard compiler for most projects related to GNU and Linux, including the Linux kernel.
Working with C, C + +, Objective C and Fortran, the gcc is able to receive a source code in any of these languages and generate an executable binary program in the language of the machine where you run.
During compilation of a C…
Today we will talk about the use of the ls command and its behavior with special characters.
If you are here, you will surely come looking for the explanation of the operation and its step by step. If you’ve arrived by chance, I’ll tell you that we’ll talk about the use of a command that is used in the Linux Terminal.
Shell is the program that receives what is written in the terminal and converts it into instructions for the operating system.
In other words, the objective is to execute the programs that the user types at the same prompt…
Software Engineer student at Holberton School