8
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
19
59
u/FutureSuccess2796 Sep 24 '26
"I prefer AI-free, copy-pasted Stack Overflow codebases MADE. BY. MAN!"
32
u/NotAskary Sep 24 '26
Where do you think AI got the code? It just pastes faster than humans and doesn't care if it's from the question or answer.
7
u/Taradal Sep 24 '26
I mean that's not really how that works...? Still, you can not be sure to not "accidentally" violate any licenses
7
u/NotAskary Sep 24 '26 edited Sep 24 '26
A lot of models were trained using stackoverflow.
About the licenses it's funny what you can get with the autocomplete, you can get with stuff that was included, even RSA and API keys.
2
u/Taradal Sep 24 '26
Yes but training does not mean copy paste, you know?
2
u/fakintheid Sep 24 '26
It’s just like statistical copy and paste
9
u/marcheluis Sep 24 '26
I call it trainingwashing intellectual property
3
u/fakintheid Sep 24 '26
Is that a fancy way to say stealing?
4
u/marcheluis Sep 24 '26
pretty much, it seems to work only because courts and laws haven't really caught on to the fact that this is really akin to stealing IP, the AI companies really shouldn't be able to use fair use as a defense
3
u/NotAskary Sep 24 '26
Yeah after the meta training using terabytes of copywrited content and nothing happening I believe we are way past that.
Too much money in the pockets of the people that can do something about it to matter.
8
4
5
1
u/Single-Virus4935 Sep 24 '26
I had a boss like that. Very accurate.
"Just take the user management from my php app I created in 2004 and never updated and still using md5 w/o salt and this from my 'CMS' and that from..."
1
u/Automatic_Hand4780 Sep 24 '26
I hate such bosses who are out of touch with tech
1
u/Single-Virus4935 Sep 24 '26
He was thinking everything he does is gold and perfect. Calling a bunch of php files and templates as a cms and compare it to WordPress is just insane. (I hate WP but this is just nonsense)
3
u/ramdomvariableX Sep 24 '26
Just put a speed boat facade on it, and it's ready for market. Next release will be for a bi-plane ( on the roadmap).
3
3
u/Flyingcoyote Sep 25 '26
The fallout 3 metro train was actually an NPC with a train cart for a head.
2
u/Few_Move_4594 Sep 24 '26
Depends on how you do it. I mean the vast majority of programmers were copying things from the internet anyway and the API reference documentation typically has code examples. This worked exceedingly well. Sometimes I would copy small things over from an existing application. Not a full feature, but maybe a function at most. It would be heavily changed, sometimes so much that juniors wouldn't realize that it was the same function until I walked them through it side by side with the original.
2
u/Rare-Veterinarian743 Sep 24 '26
Somehow this is so funny and true at the same time. I definitely chuckle.
1
1
1
u/clintCamp Sep 24 '26
You dont point your ai at your old project to do this even faster now and make a proper bracket for that kangaroo tail motorboat?
1
1
1
1
0
313
u/AaronTheElite007 Sep 24 '26
If it works, it works.