Re:Lua, a Misunderstood Language (2021)
by Sohcahtoa82 on Thursday September 29, 2022 @02:07PM
(#33024796)
> Perhaps the problem isn't really the increment operator, but rather folks writing too fancy of code while using it
I find this is a common theme of many complaints of C++ and OOP.
For example, C++ lets you do some incredibly ugly things using operator overloading. This can be useful so you could, say, make a matrix class and allow matrix operations to just using + or * rather than .add and .multiply functions. The fact that it can be abused to do very non-sensical, unintuitive things should be a criticism of the programmer who does it, not the feature.
The example with Python doesn't apply here. We cannot just go around removing language features because sometimes people write bad code.
Further, if you read the code and walk through it in your head, finding a mistaken tuple someplace unexpected should have been easy to find... which means your senior principal engineer isn't very good at reading code, even if they are very good at writing code.
Reading code is it's own skillset I've found... that and apparently the debug steppers for python aren't very good either...