▲ | sdeframond 11 hours ago | |||||||||||||||||||
I don't know. On the one hand, this stance seems common sense: why overcomplicate things? Let's just do what's commonly understood and move on. On the other hand, writing code that the most junior in your team can understand leads to mediocre code. In the end, it crumbles under its own weight. Most of what we master now was difficult to understand first. Should abandon generics because "it's difficult" ? Should we ditch static typing because "we're not used to it" ? Maybe. Or, maybe, this is the right tool that can take us to the next step. So we pause and think at this new approach to understand it then master it. | ||||||||||||||||||||
▲ | darepublic 10 hours ago | parent | next [-] | |||||||||||||||||||
I don't really believe this but ok. I worked at a functional / typescript heavy shop where when I had parsed what a complicated set of steps was doing discovered multiple redundant queries and a library that was parsing strings into code. But damn some of those functional paradigms chef kiss /s. Imo my dumbass code , besides being demonstrably more performance was way less of a liability. | ||||||||||||||||||||
| ||||||||||||||||||||
▲ | jjav 7 hours ago | parent | prev | next [-] | |||||||||||||||||||
> On the other hand, writing code that the most junior in your team can understand leads to mediocre code. Disagree on a couple levels. First, while the overall architecture of the system might be complex, there shouldn't be any one single function that isn't readily readable by a junior new hire. Complexity is in the system, there should be no complexity in small sections of code. Second, the ultimate level of mastery is to be able to build simplicity. Any newbie can write a convoluted mess that nobody can understand. | ||||||||||||||||||||
▲ | cyberpunk 8 hours ago | parent | prev [-] | |||||||||||||||||||
> On the other hand, writing code that the most junior in your team can understand leads to mediocre code. Sorry but this is absolutely false in almost all regular corporate software jobs. As i get greyer, I find myself spending much more time planning before I write any code now; what I would previously have run into headfirst and solved with a bunch of advanced language features and complicated logic usually now ends up being implemented in much less and simpler code. This is the sign of a senior developer, in my book. Writing code anyone finds hard to understand is a marker of inexperience to me. | ||||||||||||||||||||
|