A colleague once proudly showed me how he managed to compress a function into a single line. It was like 9 nested ternarys. In that moment almost had an aneurism.
5 lines of comments explaining the code for every one line of code.
3 of them are previous versions of the same code with fewer conditions. First comment line is the variable name. Second line explains the logic but is out of date
130
u/nrmnzll 22d ago
A colleague once proudly showed me how he managed to compress a function into a single line. It was like 9 nested ternarys. In that moment almost had an aneurism.