News for hackers. Stuff that matters.
Re:There’s No Such Thing as Clean Code by gilbetron on Friday January 28, 2022 @09:25AM (#30114945)
I've got about a decade more of coding over you and I can confirm the same. The only time you see "clean code" is trivial examples. Get a project that needs to do something complex, and suddenly it becomes not so clean. That's because the real world is messy and complex and solutions are almost always the same.

I love your priority list, although I'm scratching my head over the order - not that it is wrong, but I don't know if it is exactly what I would do. There are cases where I will take more state to be (a lot) less complex, for instance. Big surprise that even that priority list is a bit messy ;)

I think the most damning thing about Clean Code is that the author has barely written any software for decades. I mean, I like the guy well enough, and he has some ok stuff to say, but he is far from someone people should listen to like a messiah. Go listen to Carmack or watch Jonathan Blow's code stuff. Far more interesting things there.

Re:There’s No Such Thing as Clean Code by rawoke083600 on Friday January 28, 2022 @11:14AM (#30116551)
>The only time you see "clean code" is trivial examples. Get a project that needs to do something complex, and suddenly it becomes not so clean. That's because the real world is messy and complex and solutions are almost always the same.

Absolutely ! :)

>Go listen to Carmack or watch Jonathan Blow's code stuff. Far more interesting things there.

Oh ja ! I definitely should have added Carmack to that list !!

Re:There’s No Such Thing as Clean Code by hinkley on Saturday January 29, 2022 @02:00PM (#30129271)
What I see is that the code bases that don’t get cleaner over time either go away, or calcify and the maintainers spend most of their energy on talking people out of changing anything.

I’ve worked on teams where a competitor could add features faster than us and eventually they pulled ahead and took customers. I’ve been on the other team too. Early lead matters if you planning a quick sale and to run with the money. But if you miss then someone will eat your lunch. If you learn to write less brittle code you can recover.

Re:There’s No Such Thing as Clean Code by vasili111 on Friday January 28, 2022 @11:26AM (#30116767)
>Go listen to Carmack or watch Jonathan Blow's code stuff. Far more interesting things there.

Could you please give the links?

Re:There’s No Such Thing as Clean Code by gilbetron on Friday January 28, 2022 @11:53AM (#30117218)
Sure, Jonathan Blow is a game developer and he has a couple of great playlists on youtube: https://www.youtube.com/user/jblow888/playlists

I recommend the Game Engine one and the Compiler one. Note, these are not high level fluff talks like Uncle Bob gives, but in-depth, really deep thoughts and watching him make complex decisions while he is actually coding.

Carmack has a bunch of talks, here's a starter: https://www.youtube.com/watch?v=dSCBCk4xVa0

Again, he has produced immense amount of software, from Doom to Quake to rocket control tech to Oculus Rift VR devices.