62
you are viewing a single comment's thread
view the rest of the comments
[-] whats_all_this_then@lemmy.world 7 points 19 hours ago* (last edited 19 hours ago)

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();
[-] whats_all_this_then@lemmy.world 10 points 19 hours ago

Python port:

from ballsucker import suck
suck()
this post was submitted on 14 Nov 2024
62 points (87.8% liked)

Programmer Humor

32472 readers
641 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS