Earlier quoted context omitted.
Hi. I'm not sure you actually bothered to understand my comment, because it's making 2 main points, which you have glossed over. 1st: The importance of concrete examples in illustrating your point. Sure, we can all think of and agree on extreme examples of short-functions or long-functions which are bad, but what about more realistic examples. In Clean Code, Robert Martin presents many realistic and reasonable code s…
>At my recent companies, I've even seen senior developers, people with fancy degrees and 200k+ salaries, write code that's horrendously hard to understand and maintain, because it's endlessly duplicated and squashed into a single long function. Ever wondered that they might be senior and commanding those salaries because they think and program a certain way? Have you ever discussed this with them? Many senior develop…
- the code in question constantly produced production bugs
- the code in question was extremely hard to debug when said production bugs surfaced
- everyone complained about that code being problematic, including other more senior engineers with 300k+ salaries
- all the above problems went away and everyone was pleased when I broke it up into smaller pieces