Re:What Makes Code Hard to Read: Visual Patterns of Complexi...
by jltsiren on Tuesday March 11, 2025 @05:31PM
(#43337222)
5% is common enough that you'll encounter it almost every time you read code. And fixing it is not easy, because you first need to understand the code before you can add useful variable names.
Besides, programming language evolution is mostly driven by the fact that everyone is lazy and unprincipled at least occasionally. If you need to be disciplined to avoid footguns, you'll trigger them sooner or later.
Re:What Makes Code Hard to Read: Visual Patterns of Complexi...
by stouset on Tuesday March 11, 2025 @05:32PM
(#43337241)
The cost of this "footgun" is basically zero. Every step in a functional pipeline is isolated and wholly independent. If you want to split such a pipeline in two, doing so is trivial.
Welcome to all features of every programming language?
Sacrificing readability, optimization, and simplicity for the 95% case because some un-principled developers might overdo it in the 5% case (when the cost of fixing it is trivially just inserting variable assignments) is… not a good trade-off.