A safe place to scroll…

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…


But first, let me explain:

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.

Libraries can be Static or Dynamic.

Static Libraries:

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.

Pros:
As it is part of your executable it will always be the correct library version which helps to avoid dependency issues.

Cons:
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.

How to create your own static library:


Your table is ready.

What happens when you type gcc main.c?

We compile!


I’m glad you asked:

ls *.c

  1. ls is a command line utility that lists files and directories in the current working directory.
  2. * is a wildcard (a symbol used to replace or represent one or more characters)
  3. .c is a file extension of a file that is written in the C programming language.

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.

Now its the computer’s job-

But how do we communicate?

The shell is a user interface for access to our computers operating systems services. The shell is where we…

Tahlia Roper

I like to dance and make things, student at Holberton School.

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