by throwaway1293 · 4y ago · 0 comments
In the open source world, I've developed a large low quality codebase that is very complex from when I was less experienced. This project has gotten plenty of contributions over the years, some from less experienced and some from more experienced.
The experienced developers know how to get around the codebase, but the lesser experienced ones tend to complain about quality. I see this in the workplace as well.
I had this exact same issue when I was less experienced. New codebases was very difficult to understand, but now that I've been through a lot of them in various languages and quality, it's not as bad as it used to be.
I guess the argument here from the business point of view is that we write code for the less experienced? In a way this makes sense, but paradoxically some complex codebases that I thought was messy in the past have become more elegant today as I've gained more experience.
Meanwhile the newer, less experienced developers probably still have a bit of... let's say naive optimism, and try to give feedback more.
The inexperienced developers in my case have not contributed much, but rather complained in other channels. (it's game related, the community is on discord, in game, etc)
write code for the center of the bell curve (at your organization). the bottom will never understand anything, the top understands it all. You need to make the majority in the middle be comfortable.
that means slowly bringing in new language features, as they become widely known and practiced.
Your code practices will probably resonate differently on each of those groups, so you will probably have to choose. And I don't think there's a generic correct choice like you imply.
Also, by how much are people even capable of choosing the (required) expertise level of the code they create? I'm not sure we can deviate a lot from our natural level.
it is possible to go down in expertise, but not up. sometimes "fortran in any language" can be a viable approach depending...
note i didn't say a the best approach.