this post was submitted on 17 Dec 2025
515 points (96.4% liked)

Programmer Humor

28016 readers
1457 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
 
you are viewing a single comment's thread
view the rest of the comments
[–] AnarchoSnowPlow@midwest.social 124 points 1 week ago (6 children)

Programming languages, much like the jackass in the middle, are tools. Different tools are for different things. The right tool for the job can make your day. The wrong tool can make you question your entire career.

[–] AnUnusualRelic@lemmy.world 12 points 6 days ago (3 children)
[–] somegeek@programming.dev 4 points 6 days ago

Yes use a lisp family language for everything and you will be enlightened

[–] Jankatarch@lemmy.world 3 points 6 days ago* (last edited 6 days ago)

Tbf racket has a stupid easy gui library.

[–] squaresinger@lemmy.world 2 points 6 days ago

Yeah, that's the second option.

[–] fuck_u_spez_in_particular@lemmy.world 7 points 6 days ago (1 children)

Right... And the best tool for every job is of course Rust.

[–] Sasquatch@lemmy.ml 5 points 6 days ago (2 children)

Embedded? Rust!

Web Frontend? Rust!

Web Backend? Rust!

idk what orher kinds of programming exist...

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

Game dev? Just force Rust into it, despite being quite mediocre for the job, there's so many engines written in Rust. ECS is the answer to everything!

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

"Game dev... Just force Rust into it"

What's wrong with Rust for game dev? It seems similar to C++, and C# which are the dominant languages.

I can see arguments that the current projects have poor approaches, but not that the language itself is ill-suited.

[–] ZILtoid1991@lemmy.world 1 points 2 days ago

Rust has constant by default, which many don't like in gamedev circles. Yes, compilers don't care and optimize - at the highest optimization setting, otherwise it's marginally slower, and each constant use will just add up.

Other Functional Programming features of Rust makes writing transform functions quite good, until you need to get the results of those functions to be displayed.

Some of the system-level allocation is quite hard with Rust, if not impossible.

The borrow checker is hard to use with games, not to mention it has a big impact on performance.

Object-Oriented Programming is possible through macros, but sometimes you need OOP instead of Entity Component System for more system-level stuff. Sure, ECS is really nice for game systems, but Bevy (an engine written in Rust) uses it for everything.

[–] Ephera@lemmy.ml 2 points 6 days ago (1 children)

That is, like, genuinely an advantage, though. At $ DAYJOB, we have a project that spans embedded, backend, web frontend and CLI, and for all of these, Rust is decent.

Like, I can see why a frontend dev would want to use HTML+CSS+JS/TS (rather than HTML+CSS+Rust), mainly because the massive ecosystem of JS components makes you more productive.

But you pretty much won't ever develop a web frontend without an accompanying backend, and then being able to use the same language-expertise, libraries, utility functions and model types, that is also a big boost to productivity, especially if you won't have a dedicated frontend dev anyways.

Realizing that also made me understand why people subject themselves to NodeJS for their backend, which has the same advantage, just with the big ecosystem in the frontend and the small ecosystem in the backend.

because the massive ecosystem of JS components makes you more productive.

Slightly less ironic: I question even this right now (as I have to suffer from endless "hot"-reloading and browser-crashes because of Next.js bloat).

I think the massive ecosystem has fewer high quality libraries than Rust at this point. I use both JS/TS in frontend and Rust (either frontend more as a hobby and backend) extensively, and I very often check the dependencies-source, and even more often rewrite it (unfortunately not in Rust), because of low-quality. And it's sooo slow... the tooling and the frontend (albeit I think that has a very lot to do with next.js... and with how easy it is to make it slow for someone not that experienced or someone not being extremely careful).

Frontend is not yet as matured as JS/TS (whatever matured is, but the count of frontend frameworks is at least a magnitude higher in JS/TS), but I think when I would start a new company I would default to Rust now as frontend indeed, the language itself is for me reason. And I think vanilla-js (or Rust?) is not that much worse (time/effort-wise, sanity etc.) for more complex applications than what the Next.js ecosystem has produced so far.

[–] captain_aggravated@sh.itjust.works 10 points 6 days ago (1 children)

I seem to remember hearing this story: Back in the 2000s, Google did all their back-end stuff in C++ to make sure it was performant, and when they acquired Youtube they found it was made in Python, slow to run, fast to develop.

[–] victorz@lemmy.world 8 points 6 days ago (2 children)

Did they change it after the acquisition? Or is python why it's still so freaking slow?

[–] sping 6 points 6 days ago* (last edited 6 days ago) (1 children)

Things is you don't crunch numbers in Python code, you do that in libraries called from Python.

It's a few statements of orchestration and any heavy lifting is encapsulated compiled code.

You don't do tight loops on Python, or if you do you're using it wrong.

[–] victorz@lemmy.world 1 points 5 days ago

This was mostly tongue in cheek, probably not very clear 😅

But yeah, fully agree with you.

[–] boonhet@sopuli.xyz 8 points 6 days ago (2 children)

Lol @ YouTube being slow

Look at the amount of data that goes through their servers every millisecond. It's ridiculous. All things considered, YouTube is lightning fast.

Maybe the UI isn't as snappy as it could be, but the blame there lies solely on throwing more and more javascript at it to add "features" that end users don't really want.

[–] victorz@lemmy.world 3 points 6 days ago

Aaand artificially slowing down video loading by several seconds, last but not least.

[–] CheesyFox 2 points 6 days ago (1 children)

is it tho? Or youtub is just profitable enough to neglect the compute overhead cost?

[–] BuboScandiacus@mander.xyz 1 points 5 days ago

YouTube is surprisingly not very profitable

[–] monkeyman512@lemmy.world 37 points 1 week ago (2 children)

Funny how tools are useful. But a person who is a tool is not.

[–] MotoAsh@piefed.social 15 points 6 days ago (1 children)

A tool of a person is a fool who is being used by someone else. They might not be useful to you, but to who ever makes the koolaid they're drinking, they're a very good tool.

[–] CanadaPlus 1 points 6 days ago* (last edited 6 days ago) (2 children)

I think that's the basic idea, but in practice it's used for people who are just generally dumb as well.

[–] Omgpwnies@lemmy.world 1 points 6 days ago (1 children)

Well, when was the last time you looked at a hammer and thought "y'know, you're pretty smart!"

[–] CanadaPlus 1 points 5 days ago

Haha, true. But then again, I've definitely thought that about like, a self-loading rifle or a can opener that way.

[–] MotoAsh@piefed.social 1 points 6 days ago (1 children)

Eh, people misuse terms all the time. It shouldn't change what it's meant to mean.

[–] CanadaPlus 1 points 5 days ago (1 children)

I guess, but neither kind of dashboard catches dash from your horses these days. And forget about all bears being "brown ones". Language evolves.

[–] MotoAsh@piefed.social 1 points 5 days ago

Evolving is distinctly different than misunderstanding.

[–] DacoTaco@lemmy.world 4 points 6 days ago* (last edited 6 days ago)

Tools are always useful. If its a good thing to (ab)use said tool depends on the tool and if its human or not :p
... And the job for the tool ofc

[–] theneverfox@pawb.social 20 points 1 week ago (5 children)

Exactly. And what is the best tool? The best tool for the job

[–] olafurp@lemmy.world 2 points 6 days ago

You mean js

/s

[–] sundray@lemmus.org 36 points 1 week ago (1 children)

And what is the best tool?

AI! (This message brought to you by The Microsoft Marketing Dept.)

No silly! It's clearly a goat, possibly a whole farm of them

[–] BatmanAoD@programming.dev 13 points 1 week ago (3 children)

That's just not terribly meaningful, though. Was JavaScript the "best tool" for client-side logic from the death of Flash until the advent of TypeScript? No, it was the only tool.

[–] fushuan@lemmy.blahaj.zone 5 points 6 days ago

If it was the only tool it was both the best and the worst by definition.

[–] firelizzard@programming.dev 1 points 5 days ago

Flash was awful. I was contracted to un-fuck a custom video player and that experience convinced me that Flash was a dumpster fire that needed to die. Fortunately it did.

[–] theneverfox@pawb.social 13 points 1 week ago* (last edited 1 week ago) (1 children)

You're halfway there.

Yes, it was the best tool, in context

In that context, what was better?

[–] kernelle@lemmy.dbzer0.com 2 points 6 days ago

Exactly, the hivemind is strong in this thread

[–] bitcrafter@programming.dev 5 points 1 week ago

And what is the best tool for the job? The best tool for the job.

[–] staircase@programming.dev 11 points 1 week ago* (last edited 1 week ago)

Sometimes I just want to use a particular tool, and care less what I'm making with it.

I rarely get this pleasure at work.