News for hackers. Stuff that matters.
Re:What's the strangest code you've seen a senior developer ... by andrewclunn on Sunday March 27, 2022 @04:24AM (#30818669)
I imagine a theoretical programmer who only used while loops, or did everything using recursion. Not reason to ever touch a for loop really. There are plenty of shortcuts that obscure what's happening under the hood. If you can do it all "closer to the metal" as it were, then why bother?
Re:What's the strangest code you've seen a senior developer ... by xupybd on Sunday March 27, 2022 @04:28AM (#30818678)
I think having a preferred iteration strategy is important. At my first job I was taught consistency consistency consistency.

The more ways you do thing the more complexity you add to the code. If you have a project with the same patterns over and over again it becomes easy to learn and easy for Juniors to contribute to.