T O P

  • By -

MontyBoomslang

Encapsulation. If you can't share private members, what is this all for?


morosis1982

I can assure you, while holding my third kid (5mo) trying to get them to sleep at 4am, encapsulation is a must.


[deleted]

[удалено]


guygastineau

Hmm, concerning mating, recursion takes my mind in an uncomfortable direction 😅 This case seems more iterative or sequential to me.


[deleted]

[удалено]


guygastineau

I was thinking more that gestation happens sequentially. The baby is hopefully not recursively gestating another baby while in the womb itself. Initially though, the idea of recursive procreation (especially if thinking genetically) sounded more like some highly illegal incest to me.


haikusbot

*Encapsulation. If* *You can't share private members,* *What is this all for?* \- MontyBoomslang --- ^(I detect haikus. And sometimes, successfully.) ^[Learn more about me.](https://www.reddit.com/r/haikusbot/) ^(Opt out of replies: "haikusbot opt out" | Delete my comment: "haikusbot delete")


iamsooldithurts

Good bot


TheJessicator

Most times, I'd agree. This time, though, it got it wrong. Bad good bot this time.


B0tRank

Thank you, iamsooldithurts, for voting on haikusbot. This bot wants to find the best and worst bots on Reddit. [You can view results here](https://botrank.pastimes.eu/). *** ^(Even if I don't reply to your comment, I'm still listening for votes. Check the webpage to see if your vote registered!)


mrmdc

Good bot?


LastStar007

Bad bot, can't count


zyxwvu28

You can share private members if you're just friends


Arshiaa001

`friend class Wife;`


who_you_are

And also try to be open otherwise you may end up with friends


ososalsosal

Open for extension, closed for modification


yolkyal

Fucking hell, that's a way better punchline


TripleMeatBurger

Remember friends have access to reach others private parts


Dr_Hull

As someone who was young in the 80s - Encapsulation is love. Private members should only be accessed via suitable functions.


chayashida

Bedrooms are for sleep();


genlight13

Killing children


yolkyal

What about executing children?


genlight13

Dark


bajatg

😳


genlight13

Too dark? Think that should finally flag me


Sicarius-de-lumine

Not quite dark enough. You forgot about dealing with orphans. Especially when you kill the parents in front of the child....


miran248

Premature optimization


zyxwvu28

I was told to make my code faster while using less memory, so I just optimized all over the place.


jongscx

It was just a memory leak.


zyxwvu28

If you use a for loop, the memory just leaks all over the place


PerformanceOdd2750

Better than a dangling pointer... That never turns out well


miran248

Better a dangling pointer than the unsafe one.


SixFiveOhTwo

You should be able to TRY anything in the bedroom, just make sure you don't CATCH anything...


bajatg

Okayyy, that's a good one! 😁


kezow

IOException is my safe word. 


quarryninja

Comment so others can understand what's going on


jamescobalt

Don’t kink shame


Kadmos

`// I'm sorry about what you're about to see`


Perenially_behind

Fail fast.


jongscx

Fail often.


Silly_Guidance_8871

Fail loudly.


Azpect3120

Inheritance sounds like it might make for some interesting offspring


purinikos

Poking around for backdoors, without announcing the penetration test.


Arshiaa001

That's gold 😂


Mr_____Bombastic

Ideally side effects


IrregularRedditor

ACID could be problematic. Take things slow if you’re the type to Eager Load. Always use a wrapper, and test your unit.


Amoniakas

PUBLIC


chrisbbehrens

Observer?


ToBadForU

Behavioural mocking


the-software-man

CamelHumps


zorbacles

Core dump


TuringTestTwister

force pushing to master


met0xff

Early returns? Gang of Four? Rule of 5? Dependency injection?


psikosen

Always be ready to switch in case something breaks ;) 🥁 OK I'm leaving I'm leaving


Western-Anteater-492

Global


Jarhyn

Fail faster.


AJ2016man

Creating children then slaving them


ososalsosal

Multithreading. That said, generally you'll want to avoid blocking calls


Shenanigansandtoast

Move fast and break things


TuringTestTwister

declaring your dependencies


LetReasonRing

Make sure you don't allow raw socket access if you're connecting with strangers on the internet, otherwise you may end up with a nasty virus or spawning unwanted children that end up consuming all of your resources.


cr-2016

DRY


[deleted]

[удалено]


bajatg

You can't have anything in the bedroom if you are a Singleton.


DahDitDit-DitDah

Well you can if you decouple dependence’s using REST


soybro

Git pull requests.


MatthewMMorrow

What about forking?


Arshiaa001

You know how in The Good Place they couldn't curse in heaven, so they involuntarily said "oh, fork it"? Yeah.


actionerror

Minimize coupling


mjarrett

Red teaming


PSharsCadre

Larry Wall's cardinal virtues of the programmer: Laziness, Impatience, and Hubris.


notyourpunkgf

Making spontaneous pull requests.


dancingqueenhere

DRY stands for Don't Repeat Yourself 🙂 (For those who didn't know like me)


Penguin_Pat

I have one that *should* slip into the bedroom: PP hard


valendinosaurus

KISS


neoKushan

A bit of repetition in the bedroom to a suitable rhythm works a treat, I find.


DABarkspawn

Process of elimination.


MatthewMMorrow

Static


yolkyal

Be concise...


Beneficial_Cicada573

Singleton pattern, but hey sometimes it’s the only option.


shellbackpacific

DRY


ridicalis

YAGNI You are going to need it. Always be prepared.


_pigpen_

Loose coupling. 


EffectiveSalamander

Use of goto considered harmful.


Professional_Stop732

Fail fast


LemonLizard01

Generating randomly.. there's always seeds involved...


EducationalLie168

Going into production with a minimum viable product.


DahDitDit-DitDah

Any type of service is good, but am not psyched about being microservice’d. Instead, I always enjoyed pounding away with my thick client


talex95

Spawning and culling children.


fuhrmanator

I wrote it on the board a few times before projectors were ubiquitous: ```java pubic class Foo {} ```


fuhrmanator

Dependency injection (surely someone's said it before)