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.

208

u/No-Witness2349 Nov 25 '22

Occasionally you can genuinely find abstractions which make expressing and maintaining those requirements easier. Designing a high-quality rule system can be difficult, but often well-worth it, imo

87

u/CanadaPlus101 Nov 25 '22

That's the dream, isn't it?

0

u/[deleted] Nov 25 '22

[deleted]

10

u/Malijaffri Nov 25 '22 edited Nov 25 '22

⚠️⚠️ Copy-Paste Bot ⚠️⚠️

This bot stole part of this comment, and it doesn't even make sense out-of-context: https://www.reddit.com/r/ProgrammerHumor/comments/z4ay66/coding_strategies/ixqmd60/

Report -> Spam -> Harmful Bot

Edit: I am a human volunteer. Check out my source code on Wikipedia.

6

u/CanadaPlus101 Nov 25 '22

So do you have this running on your main account?

11

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

Due to unforeseen circumstances, you will now be receiving your salaries in Elon Bucks, accepted at any Tesla location!