Lurker News
It is common knowledge that when first learning programming, one should start with small projects to build something real rather than learning rules and syntax of the language only.

Which are some of the best books that take a project based approach in teaching programming to a beginner?

Comments (203) 92 threads

Earlier comments
MarkusWandel1 reply#
"Software Tools" by Kernighan & Plauger, perhaps.

The original was in Ratfor, which is a Fortran dialect. That being similar syntax but more limited than C is not a bad intro language.

abecedarius#
There's a later edition Software Tools in Pascal which had some improvements. (According to the preface iirc. I didn't read that one since I found the earlier book first.)
pixelmonkey1 reply#
Not a book, but CS50x is a freely available course with high quality videos and lecture notes. The lecture exercises are programming projects of sorts. It teaches programming from scratch with C and then Python. Plus, since a lot of students take it, there are lots of online resources with tips, like the CS50 subreddit.

https://cs50.harvard.edu/x/2023/

cehrlich#
CS50x and CS50web are fantastic. web is a bit outdated but it doesn't matter because the projects are so good.
olkyts#
Learning Rust, I use these 2: 1. Command-Line Rust: A Project-Based Primer for Writing Rust CLIs 2. Zero To Production In Rust (it's actually one project)
poszlem#
I can recommend "Programming: Principles and Practice Using C++", although the fact that it uses C++ as a first language can be a downside to some.

Load more comments