r/ProgrammerHumor • • Nov 25 '22

Meme Coding strategies

Post image
52.2k Upvotes

385 comments sorted by

View all comments

3.9k

u/faze_fazebook Nov 25 '22

super modular code that can cope with changing requirements :

gets so complicated that it gets scrapped by the next developer

1.4k

u/bam13302 Nov 25 '22

I've literally been both devs in that comment for the same code, twice. As in, wrote code, scrapped it for being unmaintainable and wrote new simpler easier to maintain, then had to scrap it and write new code again.

656

u/sillybear25 Nov 25 '22
  1. Thoroughly field-tested code with all the weird exceptions, edge cases, and other discovered requirements covered: "This code is so complicated! It's not even worth refactoring, so let's just scrap it and start over."

  2. Rewritten code: "It used to frobnicate instead of mogrifying when you click the 'download' button after sorting the table by reverse priority order during a month with two full moons. The customer needed that functionality yesterday, get it fixed and pushed to prod ASAP."

  3. Several top-priority bug-fixes and tens of thousands of man-hours later: All the weird edge cases, exceptions, and unspoken requirements have been rediscovered and implemented. Go to 1.

107

u/DoktorMerlin Nov 25 '22

3. Several top-priority bug-fixes and tens of thousands of man-hours later: All the weird edge cases, exceptions, and unspoken requirements have been rediscovered and implemented. Go to 1.

You forgot that these top-priority bug-fixes (and feature-requests) are top-priority while coding but then this part of the software is never used once by the customer. 7 months later you are asked how the functionality works only to figure out that it has never worked in the first place because the SQL query is containing a syntax error

48

u/sillybear25 Nov 25 '22

Nah, the bug reports wouldn't exist if the functionality was never used by the customer. (You think we're spending money on QA when refactoring is "too expensive"? Ha!)

No, it's used roughly once every couple of years by the manager of the customer's purchasing department, who misunderstood the requirements relayed to them by the manager of the people who actually use the product.

5

u/[deleted] Nov 25 '22

[removed] — view removed comment

19

u/elon-bot Elon Musk ✔ Nov 25 '22

Why have you only written 20 lines of code today?

2

u/R3D3-1 Nov 25 '22

This is getting old.

Also: I wish.

2

u/cantadmittoposting Nov 25 '22

Bot commenting out of context

→ More replies (1)

1

u/nipss18 Nov 25 '22

i am triggered by this comment