this post was submitted on 28 Dec 2025
367 points (95.5% liked)

Programmer Humor

28076 readers
1516 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
 

Post:

If you’re still shipping load‑bearing code in C, C++, Python, or vanilla JavaScript in 2025, you’re gambling with house money and calling it “experience.”

As systems scale, untyped or foot‑gun‑heavy languages don’t just get harder to work with—they hit a complexity cliff. Every new feature is another chance for a runtime type error or a memory bug to land in prod. Now layer LLM‑generated glue code on top of that. More code, more surface area, less anyone truly understands. In that world, “we’ll catch it in tests” is wishful thinking, not a strategy.

We don’t live in 1998 anymore. We have languages that:

  • Make whole classes of bugs unrepresentable (Rust, TypeScript)
  • Give you memory safety and concurrency sanity by default (Rust, Go)
  • Provide static structure that both humans and LLMs can lean on as guardrails, not red tape

At this point, choosing C/C++ for safety‑critical paths, or dynamic languages for the core of a large system, isn’t just “old school.” It’s negligence with better marketing.

Use Rust, Go, or TypeScript for anything that actually matters. Use Python/JS at the edges, for scripts and prototypes.

For production, load‑bearing paths in 2025 and beyond, anything else is you saying, out loud:

“I’m okay with avoidable runtime failures and undefined behavior in my critical systems.”

Are you?

Comment:

Nonsense. If your code has reached the point of unmaintainable complexity, then blame the author, not the language.

you are viewing a single comment's thread
view the rest of the comments
[–] ryannathans@aussie.zone 8 points 1 day ago* (last edited 1 day ago) (5 children)

Typescript literally doesn't work though, every large system has some JavaScript interface somewhere and the "any" type propagates through the system because there's no type safety at runtime

Fuck them both to death

[–] NewDark@lemmings.world 11 points 1 day ago (1 children)

Don't use any, and figure out any interfaces or types you don't have. Have a modocum of discipline to add the compile time safety

[–] ryannathans@aussie.zone 0 points 1 day ago (1 children)

JavaScript introduces it, if it uses typescript code you lose all type safety

[–] bleistift2@sopuli.xyz 5 points 1 day ago (1 children)

I don’t understand how this would happen. If the any type truly “propagates through the system”, that means you’re passing around a variable of which you say, “I don’t know what this is. You deal with it.” How can you do any meaningful operations on it when you don’t know the type?

[–] ryannathans@aussie.zone 6 points 1 day ago* (last edited 1 day ago) (1 children)

You write your typescript code to expect a given type but at the end of the day it's JavaScript with a type checking compiler so when "'any" gets in through a library or interface somewhere you just get a random "undefined" somewhere when you try to perform an operation with it because it's just JavaScript at the end of the day

[–] bleistift2@sopuli.xyz 1 points 1 day ago (2 children)

What you’re describing is not really an ‘any’ type in the code but garbage data. No language is going to save you if you read a file expecting a character but it’s actually an int.

[–] ryannathans@aussie.zone 1 points 20 hours ago

No the problem is that there's literally nothing at runtime stopping JavaScript inserting any type it wants into your function that only takes an int for example

[–] marcos@lemmy.world 1 points 1 day ago

Think of it like Haskell's cast from the Typeable class.

Yes, if somebody sends random stuff, you'll have to handle a failure, or do the equivalent of returning undefined, what is way easier than properly handling it in TS. What you do from there is up to you.

[–] danhab99@programming.dev 7 points 1 day ago (1 children)

I add a lint rule to prevent using the any type. Solves the problem

[–] dracc@discuss.tchncs.de -3 points 1 day ago (1 children)

So, not a language win after all?

[–] not_woody_shaw@lemmy.world 3 points 1 day ago

Javascript is shit because it was never intended to be a serious language, but it's (realistically) the only language in browsers so it's everywhere. So there's necessarily a LOT of tooling to make it suck less. The current generation of tooling is starting to get kinda good, like Bun, Deno, Vite, Biome etc, but it's still a mess of competing standards, where other languages give you standards and simplicity for free.

[–] FooBarrington@lemmy.world 3 points 1 day ago

There are plenty of libraries to provide type safety at runtime.

[–] falseWhite@programming.dev -1 points 1 day ago* (last edited 1 day ago) (1 children)

Skill issue. You just didn't set up your tsconfig properly to begin with, which allowed someone to sneak in unsafe code.

[–] ryannathans@aussie.zone 4 points 1 day ago

your

I wouldn't make a typescript repo. But every single one I've had to work on has had the same problem