whats_all_this_then@lemmy.worldtoProgrammer Humor@lemmy.ml•TIFU by not using objects in my object-oriented programming coursework
1·
3 months agoPython port:
from ballsucker import suck
suck()
Python port:
from ballsucker import suck
suck()
All of this is okay, but it’s not production ready. This is what real production code looks like:
SuckableFactory suckableFactory = new SuckableFactory();
Suckable balls = suckableFactory
.setShape(SuckableShapes.round)
.setCount(2)
.create();
SuctionProvider mouth = SuctionProvider.getInstance();
SuckerFactory suckerFactory = new SuckerFactory();
Sucker sucker = SuckerFactory.create():
sucker.setSuctionProvider(mouth);
sucker.setSuckable(balls);
sucker.setIntensity(SuckerSuctionIntensities.medium);
sucker.suckSuckable();
This PR/meme is my spirit animal
I have an init.sh file I run from my dotfiles. Pipe my sudo password to it and leave it alone for about an hour. Gets things 95% of the way to how I like them.
I should migrate to ansible like u/djehuti@programming.dev but time :(
This! It’s kinda turning (parts of) tech YT into the drama filled cesspool that is the rest of YT. Shit that could and should be a private conversation seems like it’s getting blown up for attention and clicks. Frankly if I wanted that type of content, I’d be watching the channels that do it better and at a much larger scale.