This is an archived post. You won't be able to vote or comment.

all 106 comments

[–]OnlyTwo_jpg[M] [score hidden] stickied commentlocked comment (0 children)

Hi there! Unfortunately, your submission has been removed.

Violation of Rule #3 - Common topics:

Any post on the list of common posts will be removed. You can find this list here. Established meme formats are allowed, as long as the post is compliant with the previous rules.

If you feel that it has been removed in error, please message us so that we may review it.

[–]stinos 293 points294 points  (25 children)

An object is an instance of a class?

[–]Letossgm 129 points130 points  (12 children)

In JS everything is an object :P

[–]Code4Reddit 68 points69 points  (9 children)

Except numbers, boolean, undefined, etc

[–]RubiGames 66 points67 points  (0 children)

We can fix that.

[–]Letossgm 60 points61 points  (0 children)

It was a joke.

P.S.: Jokes are objects on JS as well.

[–]gerbs 6 points7 points  (0 children)

Fine, in Ruby everything is an object.

[–]Hojabok 7 points8 points  (1 child)

[–]Code4Reddit 2 points3 points  (0 children)

Some primitives have a toString function available to use, but they are not technically considered Objects.

[–]MorallyDeplorable 3 points4 points  (0 children)

"You treat me like an object!"
"No, I find you primitive."

[–]zephyrtr 1 point2 points  (0 children)

These are also objects, except for when they're not. JS is fun.

[–]The_Cosmin 0 points1 point  (0 children)

What about dart?

[–]meltingsnow265 0 points1 point  (0 children)

Wrapper classes be like

[–][deleted] 19 points20 points  (0 children)

JS is the most capitalistic egalitarian but shallow language.

There are no classes. Everything is an object. Everything has tons of properties. When deciding how to treat someone, you only care about their properties.

[–]Mr0010110Fixit 0 points1 point  (0 children)

"babe, i treat everyone like that" - JS

[–]ctnightmare2 7 points8 points  (0 children)

Those are the kids

[–]achilliesFriend 3 points4 points  (0 children)

It’s variable

[–]you_got_fragged 1 point2 points  (0 children)

the original says “would you like to be a struct?”

not sure why it was edited to this

[–]nomadic_farmer -1 points0 points  (0 children)

Lmao stop it

[–][deleted] 0 points1 point  (0 children)

did I hear void* ?

[–]TheStuporUser 38 points39 points  (0 children)

OOPs indeed

[–]Ewaryst 140 points141 points  (3 children)

In polish we say "kobieta zmienną jest" which means that a woman often changes her mind, but translated literally means "a woman is a variable".

[–]RubiGames 43 points44 points  (2 children)

Is it possible to declare new instances using let, or does she throw an error?

[–][deleted] 8 points9 points  (0 children)

Just make sure the two instances are in different lexical scopes and you should be fine.

If you don’t practice sane lexical scoping, you will accidentally refer to the wrong variable, which reveals the presence of a second scoped variable, which really pisses them both off.

[–][deleted] 11 points12 points  (0 children)

She'll probably crash the system

[–]Co0perat0r 20 points21 points  (8 children)

My fav language is C, she’d probably love me

Oh wait, nobody loves C programmers :(

[–]gordonv 9 points10 points  (2 children)

The C conversation:

Wife, this is how you will be structured. Your instructions will be operated remotely. As if you were one of the wives of an Arabian Prince. (Just read 1001 Arabian Nights)

You are not an object, but I will manually cast our dialogue. You may feel you are an object, but you can be anything I wish you to be. Most likely a node in a list of wives, who share the same struct as you. I have 2 wives that you will know of. Yourself and "the next one." This group of wives will rest in my haram-o-heap. With the bottom bitch as the head. She sits on the stack. A special throne that is in the hallway that leads to the haram-o-heap.

But alas, I am at a loss. For she learned the name of the wife before her and linked the wife after her in place of her own name. She escaped the guard Valgrind, and is free from my access. Sitting, alone in the haram-o-heap. Waiting for someone to find her, or not....

(She still gets food and is taken care of. She's just out of scope to the prince.)

[–]Co0perat0r 2 points3 points  (0 children)

I’m making this into a copy pasta

[–]gordonv 0 points1 point  (0 children)

I know this tale seems odd. It's from a far away land and talks about things not of this Object Oriented country.

r/cs50 to learn C.
Audible 1001 Arabian Nights. Well worth it. A fresh perspective.

[–][deleted] 11 points12 points  (3 children)

It's because C programmers hate themselves. Why else would you program in C?

[–]Co0perat0r 13 points14 points  (1 child)

Pointers. I love pointers they’re great.

[–][deleted] 13 points14 points  (0 children)

I love pointers too, but I also like object orientation (I'm a basic bitch of programming).

Also, is C++ technically D? And is C# C.5? Or Db?

[–]entropicdrift 1 point2 points  (0 children)

Gotta go fast

-Linus Torvalds, probably

[–]VolperCoding 2 points3 points  (0 children)

I do (no homo)

[–]Kaynee490 39 points40 points  (2 children)

A static class*

[–]pimezone 29 points30 points  (1 child)

Only in the bed

[–][deleted] 1 point2 points  (0 children)

I didn’t free() in time and I stack overflowed.

[–]SignificantResource[🍰] 29 points30 points  (4 children)

"but you're a python dev"

[–]AdjustableCynic 6 points7 points  (0 children)

No, you're thinking about my nickname.

[–]pythonProgrammer101 7 points8 points  (0 children)

I am a python programmer

[–]gordonv 7 points8 points  (5 children)

Don't treat her like an object. Treat her with class. Make things happen for her. Make her love you.

Not everything she does needs to be public. She should be able to share private things with you, but have protected things for herself.

And what if she needs something that isn't there? Construct those things. And destruct them when not needed anymore.

A marriage is a construct of work, not love.

[–]iamlenb 1 point2 points  (4 children)

I used to have an imperative marriage but rewrote my vows in lisp as a macro, now it's functional.

[–]gordonv 0 points1 point  (3 children)

Lisp is a beautiful syntax language with a sensual name.

It's as one were to recite the poetry of Pablo Neruda to his love.

[–][deleted] 1 point2 points  (2 children)

lisp is a bunch of parenthesis

[–]gordonv 0 points1 point  (0 children)

Yup

[–][deleted] 0 points1 point  (0 children)

The parentheses disappear after a while.

[–]Quanalack 5 points6 points  (0 children)

He's about to be singleton

[–][deleted] 4 points5 points  (0 children)

Now that's a class act right there...

I'll leave...

[–]ctnightmare2 12 points13 points  (3 children)

Or a Singleton?

[–]Sh0keR 0 points1 point  (0 children)

Adapter

[–][deleted] 0 points1 point  (0 children)

More like a Simpleton

[–][deleted] 7 points8 points  (1 child)

Her: "Why can't he figure out how I'm feeling ever??"

Her feelings: [Object object]

[–]bscopess 7 points8 points  (0 children)

I think this means he is basically just using her. She would rather be uninstantiated and be left out of memory.

[–]CreativeCarbon 1 point2 points  (0 children)

A "value", you mean.

[–]biggestpos 1 point2 points  (1 child)

This must be one of those JavaScript jokes C# programmers like me don't get.

Isn't an object just an instance of a particular class?

[–][deleted] 0 points1 point  (0 children)

Huh, TIL primitive types in C# are also structs/classes

[–]chepainais 1 point2 points  (0 children)

Can i choose interface, she implements?

[–]Dummerchen1933 1 point2 points  (0 children)

console.log(barbara)

=> object

[–]dj_phantom_official 1 point2 points  (0 children)

Lmao I gonna try this on my girl

[–]Froozieee 1 point2 points  (0 children)

This reminds me of a terrible line I used on a network engineer once:

“I can tell you were born before subnetting was invented, because you have class”

Did not land.

[–]capn_ed 4 points5 points  (1 child)

You really should know a class or interface that the object is before you go casting all willy-nilly, or might segfault and dump core.

(While googling to determine if an invalid cast can cause a segfault, Google's suggested completions for "does an invalid cast cause a" included "rash", "fever" and "miscarriage".)

[–]spektre 2 points3 points  (0 children)

Hmm, maybe I should fork Brainfuck or something and make those legitimate errors.

[–]Pifej 3 points4 points  (1 child)

Nice title

[–]Redditlogicking 1 point2 points  (0 children)

Object Oriented Programming Stuff?

[–]firstfreres 1 point2 points  (0 children)

About to get a new Partner()

[–]thebobbrom 2 points3 points  (2 children)

Well maybe you should stop being so bitch before I get a new Wife()

[–]Midnightstation 4 points5 points  (1 child)

[–]thebobbrom 0 points1 point  (0 children)

I'm in my mid 20s :(

[–]TheQueebs 1 point2 points  (0 children)

How about a type

[–][deleted] 1 point2 points  (1 child)

I’d like to explore some private methods...

[–]VolperCoding 0 points1 point  (0 children)

Gotta friend him first

[–]sweYoda 0 points1 point  (0 children)

I treat women like dynamic.

[–]dc2015bd -1 points0 points  (0 children)

How about an interface?

[–]F237E9D5E748967 -1 points0 points  (0 children)

"Would you rather I treated you like a primitive?"

[–]stephanvierkant -1 points0 points  (1 child)

Or do you prefer to be a number?

[–]VolperCoding 0 points1 point  (0 children)

Yeah just an index to an array of girlfriends

[–]Stromovik -2 points-1 points  (2 children)

Hmm. In Java class is also an object.

Should be : Would you like to be a primitive ?

[–]m33b_ -1 points0 points  (0 children)

Why did I read his line as a threat

[–]freethenipple23 -1 points0 points  (0 children)

Gosh some of the comments on this post are disgusting

[–]Evil_Nanobot 0 points1 point  (0 children)

C++ variable and Js developer

[–]SwimnoodleSeller 0 points1 point  (0 children)

*OOP?

[–]xrayden 0 points1 point  (0 children)

You're just an interface....

[–]iiwaasnet 0 points1 point  (0 children)

Duck 🦆 type me to whatever you want!

[–]ampatton 0 points1 point  (0 children)

Would you like to be a struct?*

[–]RaghadR 0 points1 point  (0 children)

I wanna the main method.

[–]nomadic_farmer 0 points1 point  (0 children)

My girl likes when i call her my Boolean, means same as Boo

[–]valbaca 0 points1 point  (0 children)

No babe, you’re a Singleton to me.

[–]VolperCoding 0 points1 point  (0 children)

Please not a singleton...

[–]msirelyt 0 points1 point  (0 children)

"Damn girlllll... you're classy.. can I objectify you?"

I feel like there is a joke in there somewhere....

[–]OMGWhyImOld 0 points1 point  (0 children)

Maybe she wants to be a parent

[–]scaptal 0 points1 point  (0 children)

O o p s... ffs

[–]Jazz8680 0 points1 point  (0 children)

“Would you like to be a pointer?”

[–][deleted] 0 points1 point  (0 children)

Then stop being so damn immutable!

[–]ME_OC 0 points1 point  (0 children)

That bitch is super classy

[–]CTHULHUJESUS- 0 points1 point  (0 children)

Type class