How often do you think about what you’re doing when you are mindlessly scrolling? If you’ve enjoyed a netflix n’ chill recently you may have come across The Social Dilemma doc. In the documentary Tristan Harris explains the various harms committed by most of the popular social media apps. While the apps race for our attention we are becoming addicted to engaging with them.
I’m not okay with that.
But hey sometimes we all need a break. Instead of doom-scrolling a death-metal playlist curated just for you of your little likes and especially your dislikes(more…
What is a library in programming?
A library is a file that contains compiled source code from one or more object files in a single file.
Why would you use a library?
Using a library allows us to reuse functions, data structures, etc. in other programs.
Static libraries are statically linked with an executable. All the functionality of the library is included in your programs executable. On linux static library files are
.a for archive.
As it is part of your executable it will always be the correct library version which helps to avoid dependency issues.
Higher memory usage…
What happens when you type
ls -l in the shell?
The shell is a program that takes commands from the user and gives instructions to the operating system to perform.
ls is a command line utility to list a directories contents. By using with the -l flag we are requesting the long-listing format of ls. This will give an output that looks like this:
What is a static library?
Static Libraries are collections of object files (functions) that allow users to link to programs without having to recompile the programs’ code. Also known as archives, Static Libraries are part of the build environment and are created using a librarian utility.
Why use a static library?
Static Libraries are usually faster than a shared library because they contain a set of commonly used object files that are put into a single library executable file. Using a library allows us to have fewer files to look for and open up, which speeds up the linking process.
What happens when we put all of these elements together?
We are telling the computer that we want a list of all files that have the file extension .c.
But how do we communicate?
The shell is a user interface for access to our computers operating systems services. The shell is where we…