this post was submitted on 29 Mar 2025
452 points (93.8% liked)

Programmer Humor

22133 readers
2495 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 

(Also are Programming socks memes welcome here?)

you are viewing a single comment's thread
view the rest of the comments
[–] bluGill@fedia.io 13 points 3 days ago (3 children)

If you need to learn C, at least use the first edition of the book - the one without the ANSI additions is much smaller.

I''ve actually never read the second/and edition so I can't say if it is good or not. I can tell you that the first edition still has a proud space on my bookshielf though the acid paper is starting to take a toll and I suspect it won't be long and I'll be needing a reprint.

[–] BatmanAoD@programming.dev 4 points 3 days ago (1 children)

Doesn't the first edition use K&R style parameter lists and other no-longer-correct syntax?

[–] barsoap@lemm.ee 2 points 2 days ago

My prof called K&R C "Knall und Rauch C", "bang and smoke C". Also: C lattice fence.

[–] PowerfulTurtle@lemmy.ca 2 points 3 days ago (2 children)

I haven't read either, honestly Rust is so much better than C or C++ and if I were going to learn a low level language I'd probably go with that instead. Currently I only do Python and a tiny bit of Javascript.

[–] Shanmugha@lemmy.world 3 points 3 days ago (1 children)

I dare assume you get downvoted for liking Rust, so take my upvote for balance. We differ about what we think of the language, but this kind of angry downvoting is plain ridiculous

[–] BatmanAoD@programming.dev -1 points 2 days ago* (last edited 1 day ago)

Probably moreso for expressing the opinion so strongly without actually knowing any of the three languages.

Edit: I'm just guessing why a different comment got downvotes. Why am I getting downvotes?

[–] Valmond@lemmy.world 1 points 2 days ago (1 children)

This Rust talk sounds exactly like Java in the 2000. It's the language of the future!! Rust is good though but only time will tell if rust will replace C/C++ which I doubt.

[–] UpperBroccoli@lemmy.blahaj.zone 1 points 2 days ago (1 children)

As a long time C/C++ developer, I think it has a lot of really great ideas. The one thing preventing me from using it a lot more is that there is no stable ABI that would allow to use shared libraries in Rust - everything is statically linked, and if I use the same crates in a number of programs, the same code exists in each of these programs. That is not really a good thing whne you try to develop for a system with very limited space and where program load times make a difference, such as for certain embedded platforms.

But honestly, Rust support in the Linux kernel? Java never got that far, nor any other language (apart from C, obviously).

[–] Valmond@lemmy.world 2 points 2 days ago

C/C++ oldtimer myself, yep Rust is basically C++ template metaprogramming. So Rust does this thing way better, but as you says it does other things less good. Exactly like Java with the facility to run on different platforms (well, sort of) for example.

C/C++ is hard because it's the ultimate multi tool!

I use Python BTW when I don't need the fancy stuff, maybe the death of C/C++ will be that of a thousand cuts, one specialised language for each specific C/C++ use ...

[–] zerofk@lemm.ee 2 points 3 days ago

It’s also a very good introduction to programming, and just a good read. Probably the best book about programming I’ve ever read.