Hello! I’m looking for book recommendations for learning programming fundamentals.
To be clear, I’m not necessarily looking for a book on learning language(s), but rather, programming, theory I guess you might call it?
For example, I’ve been playing around a lot in my terminal writing bash scripts, and I just implemented my first function. Another example, I know the phrase “Object Oriented programming”, but have no idea what it means.
I learn well by doing, and I’ve learned a lot just writing scripts and reading about bash scripting, but I also realize there’s a lot about programming at a higher level that I know nothing about.
OOP was a 1990s thing that is still around but don’t worry about it too much at first.
The classic intro book is Structure and Interpretation of Computer Programs aka SICP. You can find it online with a web search. It will give you a good grounding in fundamentals. Then you can figure out what to pursue next.
The Art of Computer Programming by Donald Knuth
That’s an entry point into programming that’s not for everyone. It seems like the poster is looking for something more hands on and pragmatic rather than technical and academic.
Its not an entry point into programming at all. From the preface of the first volume,
The following chapters are not meant to serve as an introduction to computer programming; the reader is supposed to have had some previous experience. The prerequisites are actually very simple, but a beginner requires time and practice in order to understand the concept of a digital computer.
If you are looking at learning CS in a more holistic manner, there’s Path to a free self-taught education in Computer Science!. It’s a list of courses, categorized by topics, which are exactly what a CS undergraduate would learn. It might feel daunting at first, but you can pick any interesting topic and dive in.
I especially recommend CS50P for beginners.
The Pragmatic Programmer https://pragprog.com/titles/tpp20/the-pragmatic-programmer-20th-anniversary-edition/
‘Programming from the ground up’ the main idea of this one is to teach programming in a bottom up way, so very low level.
it’s mostly about teaching (linux) assembly to beginners, so in a was it is just learning a new language. But it’s mainly about understanding low level how a computer works, like registers, kernel calls, how function calls are handled, all for beginners. It’s really easy to pick up.
Knowing those fundamentals can go a long way in understanding other computing concepts.
Others that come to mind are :
- Designing Data-Intensive Applications: The Big Ideas Behind Reliable, Scalable, and Maintainable Systems
- A Philosophy of Software Design
- Software Architecture: The Hard Parts"
Think like a computer scientist, it’s open source and there’s editions in many languages.
I would probably recommend not trying to understand the whole field of programming initially. It’s huge, you won’t understand what the terms mean (e.g. OOP, functional programming, etc.) and it’s not very motivational.
Instead I would pick one or two popular languages to learn and actually make something in. The no-brainers are Python and Typescript. They’re hugely popular, not difficult, and let you get a lot done.
I think I would consider learning both at the same time. If not, at least don’t stick with Python too long. It is immensely popular but also has a lot of brain dead design decisions. Especially a) it’s reaaaally slow, you easily get a 50x speed up just by switching language, and b) the “infrastructure” around it - installing Python, adding libraries etc. is completely awful. There are attempts to fix that but they’re nascent.
Above all I think a good thing to have is a realistic goal of something to make. For Typescript the obvious thing is a web site. I really like this way of making web sites - you can get started with literally 2 command - but it may be a little too much for a beginner.
For Python I would look into some kind of automation or maybe web scraping thing. It’s decent at that.
Or if you have more specific project ideas you could use the most appropriate language for those, e.g. a microcontroller project you probably want to start with Arduino (C++). C++ was my first language (apart from QBasic which doesn’t count). Probably not for everyone though. I was very young and had free time.
Automate the Boring Stuff with Python is a good way to get many of the general foundations through a series of projects.
I am going to toot my own horn… Or rather: MIT’s horn.
https://thaumatorium.com/articles/mit-courses/mit.drawio.svg
This is a graph of most of MIT’s CompSci courses, where the lines are dependencies. If you want to learn something on the right, learn the connected things on the left.
While there are video courses, the top link in each block links to MIT pages where they tend to recommend books for each course. The algorithm courses recommend “Introductions into Algorithms, Fourth Edition”, for example.
I hope it helps (even if I don’t think this is the be-all end-all to your question).
Head First Design Patterns really helped me untangle the spaget
Its a long path but one you can take at your own pace. Good luck