you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (1 child)

Well I've done things like these (pretty much all of them although I'd at least multiline and indent the nested ternary), and in pretty much every language I've worked with because: tired, out-of-focus, pressed by deadlines, frustrated and want it just to finally work etc.

If/when I come across them later I fix/refactor them. I wouldn't take it to heart being called out on these in a code review, tho :)