2026-07-27 00:15 UTC
Someone 25+ years ago had a predilection for "single return from every function", which left their code with 10+ levels of indentation, which very quickly got out of hand with 8-character tabs and 80 character screens.
Someone else used to believe that fixed size arrays of 256 were okay because surely no-one would ever use that many things, ever (HAHA production rendering SNORT). A few of those 256s persist in the code, like Cthulhu slumbering gently in the depths..
(5/10)
Replies (2)
-
@levork@graphics.social 2026-07-27 00:16
Former coworker wrote very efficient code but spelling was not their forte, which was problematic when it came to the two L's in tessellation and related classes.. Someone on my team now is very adept with modern C++ and uses all the latest features I can't keep straight in my head. All their loops that can be range based for loops are. They can probably write a lambda correctly on the first try. There are lambdas in their code. This is probably a feature. (6/10)
-
@thyberg@mastodonsweden.se 2026-07-27 10:50
@levork@graphics.social Oh, I have come across a few of those single-return guys over the years. Wuak!