ProgrammerHumor

actuallyNerdEmoji

actuallyNerdEmoji
https://i.redd.it/lcqltc6weddf1.jpeg
Reddit

Discussion

praisethebeast69

I mistook this for a philosophy post for a second there

EDIT: real talk, who else loves defining the add operator for things that have no reason to be in a 'sum'?

9 hours ago
TheOriginalSmileyMan

Gratuitous operator overloading was my favourite thing in C++. You can sort of do it in Rust but it doesn't feel quite so cool to implement a PartialOrd trait on something that isn't ordered.

I had a hand crafted physics computation library back in the nineties, where dividing a distance by a time would give you a speed, then dividing by a time again would give you an acceleration, then multiplying by a mass would give you an energy. It wasn't particularly complicated but it made me happy to program it!

6 hours ago
jaskij
:c::cp::rust:

C++ has mp-units and Rust has uom. Both amazing libraries.

The one operator I've found the most use in reimplementing is the indexing operator.

And don't forget, in C++ implementing custom casts is also technically operator overloading.

6 hours ago
Dangerous_Jacket_129

EDIT: real talk, who else loves defining the add operator for things that have no reason to be in a 'sum'?

Sometimes I just log it as "Why would you add these things you idiot?"

1 hour ago
Impressive_Bed_287

Counterpoint: Nothing is a method, there are just bits.
Futher counterpoint: Bits don't exist, there are only fluctuating voltages.
Futher counterpoint: Voltages aren't real, they're just changes in a quantum field.

8 hours ago
rosuav

Further counterpoint: Quantum fields are just math, which is best simulated in Python.

8 hours ago
Impressive_Bed_287

Addendum: Python is implemented in opcodes.
Error: Infinite recursion detected. Abort program.

7 hours ago
rosuav

Error: Infinite recursion detected. Abort universe.

7 hours ago
shynerd089

JS: Everything is an object

8 hours ago
hardfau1t

I don't know why but i hate this format of memes

7 hours ago
TheOriginalSmileyMan

That's because you're in the middle of the meme curve. Once you reach jedi level you'll realise all memes are this meme

6 hours ago
Bash7

Is this just rage bait or what has the middle guy to do with methods?

6 hours ago
Errons1

Depends on where you come from, but methods is defined as functions inside of a class. 

5 hours ago
ExtraTNT
:js:

Not in haskell… in haskell everything is a function…

4 hours ago
Codexismus

Everything is a callable

47 minutes ago
Valphai OP

How is this post controversial bro

9 hours ago
brainpostman
:js: :ts: :j: :cs:

Because it's dumb

7 hours ago