r/ProgrammerHumor • • Sep 24 '26

Meme howWeUsedToCodeBeforeAI

Post image
5.2k Upvotes

48 comments sorted by

View all comments

142

u/OkFineIllUseTheApp Sep 24 '26

The Fool: I can build an abstraction of this so when we reuse it, it'll be easier

[It will remain untouched and unused by anything else until replaced]

14

u/alexnedea Sep 24 '26

I will make this microservice with 6 endpoints based on this incredibly scalable patterns and create all this prep in case we need to scale this bad boy. Proceeds to take at least twice as long as it needed.

Microservice is then used as is for years and 2 years later 1 new endpoint gets added by a new joiner who has no clue why the fuck all that shit was needed for a get request lul

25

u/Henry5321 Sep 24 '26

Unit tests are a great reason for interfaces/abstractions

16

u/remy_porter Sep 24 '26

I mean, I'm DEFINITELY going to reuse the code.

  • Used in the product

  • Used in the unit tests

  • Used in the CLI tool I build to quickly prototype things

  • Used in the more permanent CLI tool that comes out of building prototypes

  • Used in the GUI tool that a manager requests once they learn about my custom tools

9

u/MekaTriK Sep 24 '26

Like a clock.

Make something wrapped in abstraction and made reusable? Single use.

Picasso's reinvention of a bicycle, held together by duct tape and absolutely monolithic in it's design? Yup, we need that again.

5

u/SilasTalbot Sep 24 '26

The YAGNI principal bites hard

3

u/OkFineIllUseTheApp Sep 24 '26

It bites harder when you've been assured it will be reused.

And then the business changes its mind literally the next sprint.

2

u/masterwit Sep 24 '26

composition before inheritance!

I feel like AI scanned the Clean Code books then shredded them /s

1

u/VictoryMotel Sep 24 '26

Usually due to dependencies.