| > I'm 100% certain your code is better than a switch statement with over 4000 cases. Then there's cases like that Yandere Simulator game, the source code of which got released/leaked and apparently it was so bad that people were making videos taking it apart, but also possibly because they disliked how the developer was leading the project: https://www.youtube.com/results?search_query=yandere+simulat... But also apparently even the Oracle database source code was pretty grim, this HN post and its top comment still bounces around my mind sometime: https://news.ycombinator.com/item?id=18442637 I wonder what other codebases exist, where the code is inspirationally bad, as in, to the point of making most folks feel better about whatever they're writing and to dispel the illusion of code always needing to be perfect. Communities like /r/programminghorror (https://old.reddit.com/r/programminghorror/top/?sort=top&t=a...) and /r/softwaregore (https://old.reddit.com/r/softwaregore/top/?sort=top&t=all) are probably sobering in that regard as well. All that's missing is a site that shows examples of a bad code and how to make the code better besides that, maybe with discussions and different suggestions, based on what people believe in. |
I really don't enjoy the discourse regarding "code cleanliness". A lot of the time it's just about "I prefer writing things this way" rather than the code actually being slower/harder to read/maintain/whatever. There's a billion ways to write something and none of them are outright wrong!