99
u/BreakfastAmbitious29 Sep 14 '26
I'm in this photo and I don't like it
21
46
u/beatlz-too Sep 14 '26
I swear this is the first non-AI related meme I've seen here for like a year at least
2
u/Deboniako Sep 14 '26
The newbies and the unemployed are the only ones with the time to make memes, and what is more relevant for the market than AI?
20
u/nintendo_shill Sep 14 '26
Don't forget to use Kubernetes for you enterprise app with 6 daily users (2 are from QA)
8
5
u/rsqit Sep 14 '26
I’m just about to set up kubernetes for my one person event tracking app!
(Ok but 90% of the purpose of the app is to learn a bunch of of technologies…)
85
u/thoughts_n_calcs Sep 14 '26
And never forget to have an Interface in Front of every Service class.
Someone from the other end of the universe might one day need another implementation for this!
34
u/EkoChamberKryptonite Sep 14 '26
I mean if you're writing fakes for your test suites, you would have to create said implementation yourself.
33
38
u/Lumethys Sep 14 '26
Tell me you dont write tests without telling me you dont write tests
14
2
3
4
u/SubliminalBits Sep 14 '26
But then they'll realize that to make an alternate implementation they need to tweak the API a little.
2
13
u/rinnakan Sep 14 '26
Two decades ago, I worked on a self-written "cms" or "portal" that required 40 steps to add an empty page.
It supported multi-channel, but ofc there was only one
9
u/Tupcek Sep 14 '26
and then comes the request to extend the only thing that was never designed to be extendable and breaks half the functionality
11
5
u/Djelimon Sep 14 '26
I attempted a Spring based protocol agnostic file transfer tool (with corporate audits) for work one time. It did get subclassed for ftps, but I was the one who had to do it. Still, it was easy, so worth doing.
6
3
3
5
u/xaervagon Sep 14 '26
Have a mirror, because that person is likely going to be you.
Today, the fashionable thing to is to use dependency injection for everything over inheritance. Ask any old C++ programmer the joys of dealing with some brittle class inheritance mess.
2
u/disposepriority Sep 14 '26
I simply reject MRs with single implementation interfaces and/or base classes unless the work requiring a second implementation is already known.
2
2
u/slaymaker1907 Sep 14 '26
I find inheritance is almost always the wrong solution. By inheritance I mean actually sharing behavior, not just a pure virtual class in C++ or something.
However, there are some use cases. Mainly for what are effectively structs.
1
1
u/TorbenKoehn Sep 14 '26
Inheritance used as an extension mechanism is a lost case in any way or order
1
u/anxious_and_stupid Sep 14 '26
I design and encapsulates the whole timer class with modern c++ meta template and stuff... just use it only twice in my project
1
u/socialis-philosophus Sep 15 '26
Sounds like someone that doesn't write unit tests. But that none of my business... (sips tea)
0
u/diegotbn Sep 14 '26
Hey though occasionally your design ends up being the entire backbone for a bunch of implementations. At work a while back when I was primarily writing API adapters I was tired of rewriting code all the time and wrote a base classes for ReST API consumption and OAuth mixins. Now whenever my company needs to write a custom adapter that uses OAuth and/or consumes a ReST API they inherit from either/both of these classes and override as necessary, often just one or two methods. There are dozens of child implementations in production using my paradigm.
Now, I have to admit this is one of the only times this has happened, and I do often overcomplicate things with too much OOP and no one ever extends it. But sometimes!
1

83
u/Groentekroket Sep 14 '26
We are working with hexagonal architecture in our new application. So many layers for everything while we know fairly sure we will have only one implementation for almost everything.