There is no better way to learn new paradigms than being fully immersed in them because they are at the core of the language you express yourself in. There is a lot of speculation that language shapes the way you think. While it might be true for human languages, it definitely is true for programming languages.
Here is a list of the languages that I have learned over the years. Some I have used extensively, some are things I picked up but never used professionally, but they all significantly changed the way I think about programming.
Please note that each of these languages takes a long time to really be proficient with. Don't just do 2-3 tutorials and think that that was enough to rewire your brain. You need to dive into the unknown, do a chunky project without guidance, hit your head against the wall a few times in order to really make those new neuron connections. For each language, I will give a short list of project ideas that I think are both fun and instructive.
C is getting a lot of flack about being insecure, but it is a marvelous language to learn.
Learn C, it's great!
Why do I think that C is a great language to learn next:
- it is available on literally every platform, from a 1 kB of memory microcontroller to the biggest supercomputer
- it teaches you a very useful abstraction of the hardware
- it is the glue of every operating system and shared library.
- it is small and fast. Often, it is the benchmark every other language runs up against
- you will understand how many exploits and security bugs work
- you can use it to program microcontrollers and build physical devices
Get close to the CPU and the operating system
Why C and not Rust?
Resources to learn C:
I learnt C in the 90ies on a small linux computer (486 with 8 MB of RAM), and it taught me a lot about unix, network programming, memory layout, linkers, compilers. C has changed a lot since then, with the newer C99 and C11 standards. I recommend learning C in combination with the following language (assembly) by using a site like godbolt which allows you to see how your C code compiles down to assembly (we will come back to that in the next post in this series).
While I don't have a list of good resources to learn modern C (there are quite a few books out there, I have never been disappointed by Manning: Modern C. The resources that shaped my own way to C were: Advanced Programming in the Unix Environment and Unix Network Programming. And then much more importantly, and shaping my aesthetics until today: C Interfaces and Implementations and DJB's software. I can't stress the latter one enough, as it shows you how much of C's unsafety comes from bad API design, more so than the language itself.
Project ideas in C:
- Build a robot with an arduino, and control a lamp by pressing on a switch
- Build a little web server with no external library
- Build a tool that decompiles a shared library, showing the assembly for each function (start with an easy CPU, not x86. I recommend atmel 8-bit CPUs)
- Build a little calculator
The next part of this series is going to be about learning assembly. Scary yet? Don't fear, assembly is tremendous fun, and very relevant to the web these days.
Which languages did you learn that changed the way you think? Comment below!
Top comments (1)
Other languages that I won't cover in this series, but have been really influential to me:
There is such an amazing world out there of beautiful, quirky, forward-thinking, efficient, elegant programming languages.