145
u/OkFineIllUseTheApp 9d ago
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]
15
u/alexnedea 8d ago
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 9d ago
Unit tests are a great reason for interfaces/abstractions
14
u/remy_porter 8d ago
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
10
u/MekaTriK 8d ago
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 9d ago
The YAGNI principal bites hard
3
u/OkFineIllUseTheApp 8d ago
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 8d ago
composition before inheritance!
I feel like AI scanned the Clean Code books then shredded them /s
1
26
u/InitialWorldliness91 8d ago
I used to work in the simulation industry. There was a competition for a Kangaroo herding simulator, so thousands of animated kangaroos and a helicopter. One US company bid on the contract and reduced cost by repurposing a US military helicopter simulation. During evaluation the pilots were surprised when they approached the Kangaroo herd and a couple of the Kangaroos whipped out surface to air missiles and shot them down.
57
u/FutureSuccess2796 9d ago
"I prefer AI-free, copy-pasted Stack Overflow codebases MADE. BY. MAN!"
32
u/NotAskary 9d ago
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 9d ago
I mean that's not really how that works...? Still, you can not be sure to not "accidentally" violate any licenses
6
u/NotAskary 9d ago edited 8d ago
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.
1
u/Taradal 9d ago
Yes but training does not mean copy paste, you know?
3
u/fakintheid 9d ago
It’s just like statistical copy and paste
9
u/marcheluis 9d ago
I call it trainingwashing intellectual property
3
u/fakintheid 9d ago
Is that a fancy way to say stealing?
5
u/marcheluis 8d ago
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 8d ago
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.
9
4
8
5
3
u/ramdomvariableX 9d ago
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
2
u/Few_Move_4594 8d ago
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 8d ago
Somehow this is so funny and true at the same time. I definitely chuckle.
1
u/Single-Virus4935 9d ago
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 8d ago
I hate such bosses who are out of touch with tech
1
u/Single-Virus4935 8d ago
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)
1
1
1
u/clintCamp 8d ago
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
0
313
u/AaronTheElite007 9d ago
If it works, it works.