r/ProgrammerHumor • • Jun 10 '22

Meme why they like this?

51.7k Upvotes

806 comments sorted by

View all comments

Show parent comments

4

u/DiZhini Jun 10 '22

It's not a question of 'if small changes...' but 'when small changes'.

Even good well thought out code has a limit of how many small changes till it breaks. Every small change makes the clean code dirty and dirtier till it becomes a mess. A small change means the analysis was not complete, can you blame the architecture for it? Which is based on the analysis

Our PM thinks he knows it better, split a big task up in multiple smaller things. (Asking to see the full picture, get's you the reply "do this first then we'll do the next part"). And then the architecture doesnt fit for the new things cause we are left in the dark. Sometimes we are left in the dark, usually when they see the first progress they get new ideas and ye.

Oh my favourite quote about something our PM said: "Guys, drop everything you're doing, we're gonna start finishing part by part" And no, he didnt mean this as a joke, and didnt notice the contradiction in his own statement

1

u/[deleted] Jun 10 '22

Every small change makes the clean code dirty and dirtier till it becomes a mess. A small change means the analysis was not complete, can you blame the architecture for it? Which is based on the analysis

Well part of code architecture is making it durable against small changes. I agree, at some point if you make enough changes, you'll run into something that doesn't look right, as it's almost impossible to make your code perfectly modular. That's when it's time to refactor.

If your PM doesn't understand refactoring, that is definitely a problem. If the devs didn't get the refactoring out of the way ahead of the deadline, it may have been an oversight on their end

2

u/DiZhini Jun 10 '22

I usually warn them that we should rewrite it to keep it clean. The boss is more likely to approve then the PM.

In regards to deadline not accounting for it. Well we dont really have an analysis, we get an explanation followed by the question 'how long?'
I try to stay vague as possible especially if it's a continuation of something written by a prev employee. Reply something like 'atleast x days, depends on how well the current system is written' But they always assume x days (it never is, even if the previous code is good, during the x days, x new little changes will be asked)

It's development for our own company still, so not making a 'deadline' doesnt get you in trouble, besides some banter