News for hackers. Stuff that matters.
Re:Good Software Development Habits by TheCoelacanth on Monday November 18, 2024 @12:22PM (#42174599)
I think inexperienced developers write complex code because it's difficult to write simple code and they don't know how yet, not because they're trying to make it complex.
Re:Good Software Development Habits by necovek on Tuesday November 19, 2024 @12:39AM (#42180359)
Yes, I was not trying to imply they do it on purpose, but I can see how it could be read that way.
Re:Good Software Development Habits by chipdart on Tuesday November 19, 2024 @01:17AM (#42180503)
> I think inexperienced developers write complex code because it's difficult to write simple code and they don't know how yet, not because they're trying to make it complex.

From what I've been seeing, inexperienced developers write complex code because they are trained with a bias towards accidentally complex code (i.e., how else would you show off design patterns), they have no experience in dealing with the tradeoffs of writing accidentally complex code, and they do not understand the problems they create for themselves and others by adding complexity where they do not need it.

I'd frame accidental complexity in the same class as dead code: inexperienced developers might be oblivious to the risk presented by codd that serves no purpose, but experienced developers know very well the ticking time bomb nature of it.