this post was submitted on 15 May 2024
385 points (100.0% liked)

Programmer Humor

418 readers
21 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 1 year ago
MODERATORS
 
top 15 comments
sorted by: hot top controversial new old
[–] MajorHavoc@programming.dev 43 points 4 months ago (1 children)

I do really like C++.

And yes, this would work.

[–] lambalicious@lemmy.sdf.org 4 points 4 months ago

Many Rust shills seem to have some rust in their brain...

[–] noxy@yiffit.net 33 points 4 months ago

These trolley problem memes are getting harder and harder to understand

[–] ptz@dubvee.org 33 points 4 months ago* (last edited 4 months ago)

Seems like solar power with extra steps lol.

(Sun -> Plants -> Food for people/other food)

[–] luciole 22 points 4 months ago (3 children)

How do you produce the coffee to power the rust users?

[–] lambalicious@lemmy.sdf.org 16 points 4 months ago

Aren't they powered by the sheer spite they generate at hearing the loudspeaker?

[–] Sylence@lemmy.dbzer0.com 9 points 4 months ago

Believe it or not, also the sun!

[–] MajorHavoc@programming.dev 1 points 4 months ago

That's the critical question!

[–] Dave@lemmy.nz 17 points 4 months ago

Does the solar power the speaker and the turbine is the power generation? Does this turbine produce more power than the solar powering the speaker?

[–] SleveMcDichael@programming.dev 9 points 4 months ago (2 children)

C++ is pretty alright, IMO, but the syntax is kinda clunky though, I think probably because of some historical baggage.

[–] nintendiator@feddit.cl 8 points 4 months ago (1 children)

That and the weird aversion to introducing new or useful keywords, or even extending the symbol set that doesn't even use full ASCII.

[–] lambalicious@lemmy.sdf.org 3 points 4 months ago

Word! The whole snafu with co_routines has been quite the laughable show. It would have been trivially sortable if C++ did something like what PHP did, using a symbol to absolutely disambiguate what is a variable and what is not. That way eg.: await is a keyword, $await is a variable (perhaps a functor).

To make it even better, $ is already unused in C++!

[–] suy@programming.dev 6 points 4 months ago

Correct. Backwards compatibility is both its biggest asset and its bigger problem.

In syntax alone, you can check what Herb Sutter is doing with cppfront. Specifically, the wiki page on the postfix operators is quite enlightening. It shows some interesting examples of how by making everything a postfix operator you drop the need of -> and the duality of pre/post increment and decrement operators.

[–] JATtho@sopuli.xyz 7 points 4 months ago* (last edited 4 months ago)

C++: you sure you want to do this? This will either: a) blow your foot off b) be too fast to be measured in micro-benchmarks.

b. B. B. a. then B.

You have chosen to simultaneously blow your arm off and be the fastest code thing on the planet. Congrats. Yes.

[–] Vivendi@lemmy.zip 6 points 4 months ago

Seriously. Try publishing anything not written in Rust nowadays and you WILL get multiple "bUt baut mUh rUsT??? 1?1!! 11!1!" Comments.