While interviewing for Canonical, I got to spend a bit of time with a very talented programmer name Seth Arnold. As with (seemingly) everyone on the Canonical team, he was next-level-talented. When I got the chance to ask questions, I asked him if he could give me a starting point to get from where I am to where he is. His suggestion was
Advanced Programming in the Unix Environment.
So, I bought the book and found a free course hosted by Stevens Institute of Technology. I will slowly work through the course and keep notes here. For anyone who wants to follow along, Let’s get started!
Once you get yourself setup with NetBSD as instructed on the course page, you can attempt the first exercise.
#include <stdio.h>
int
main(int argc, char **argv) {
printf("Welcome to CS631 Advanced Programming in the UNIX Environment, %s!\n", getlogin())
}
Our task is to find and debug the errors.
So, let’s compile our code
$ cc welcome.c -o welcome
Doing so will induce an error in our terminal stating:
welcome1.c:22:1: error: expected ';' before '}' token } ^
Oh No! What happened?
Continue reading “Advanced Programming in the Unix Environment”