whats_all_this_then@lemmy.worldtoProgrammer Humor@lemmy.ml•TIFU by not using objects in my object-oriented programming coursework
13·
8 days 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();
Disclaimer: Only Trek I had watched beforehand was Lower Decks (loved it) and SNW (loved it) in that order. With that said, here are my opinions nobody asked for:
spoiler
SPOILER START
They COMPLETELY lost me with the source of the burn, it was one of the dumbest things I’ve seen in a hot minute.
They had me again with the Giorgio redemption stuff in S4(?), but it was all downhill from there.
SPOILER END
I had to forward through starting from the second half of Season 4 just to get through it. It got so ridiculously boring. I was hoping it’d get better and I could watch normally again but it just didn’t.
Watching TNG now and I’m loving it. Can be a bit slow sometimes but still enjoyable.
Edit: Does boost not do spoiler tags?