Logo
99 bugs in the code, fix one, 127 bugs in the code.
  • Home
  • Hot
  • Random
  • Search

Browse

  • AI AI
  • AWS AWS
  • Agile Agile
  • Algorithms Algorithms
  • Android Android
  • Apple Apple
  • Backend Backend
  • Bash Bash
  • C++ C++
  • Cloud Cloud
  • Csharp Csharp
  • All Categories
As an Amazon Associate ProgrammerHumor.io earns from qualifying purchases.

HTTP 418: I'm a teapot

The server identifies as a teapot now and is on a tea break, brb

HTTP 418: I'm a teapot

The server identifies as a teapot now and is on a tea break, brb

Code-abuse Memes

Posts tagged with Code-abuse

Operator Overloading Is Fun

C++ Java Programming
3 months ago 353.8K views 0 shares
Operator Overloading Is Fun
Someone wants to overload the == operator for value comparison instead of reference comparison. Java, being Java, has a complete meltdown because that would be "abuse." Meanwhile, C++ just shrugs and says "go ahead" when asked about overloading the & operator to nuke an object's internal data. Java protects you from yourself by refusing operator overloading entirely. C++ hands you a loaded footgun and a blindfold, then walks away whistling. One language thinks you're a child who can't be trusted with scissors. The other assumes you're a responsible adult who definitely won't use operator overloading to create cursed abominations that make code reviewers weep. Spoiler: C++ is wrong about you being responsible.

Today's picks

TM-510 Digital Multimeter, 4000 Counts, Smart Measurement, Auto-Ranging Voltmeter; Voltage Tester with Non-Contact Voltage Function, Measures AC/DC Voltage, Resistance, Continuity – Green

TM-510 Digital Multimeter, 4000 Counts, Smart Measurement, Auto-Ranging Voltmeter; Voltage Tester with Non-Contact Voltage Function, Measures AC/DC Voltage, Resistance, Continuity – Green

Affiliate
$13.72
GearScouts.com

GearScouts.com

Sponsored
Power stations
The Four Stages Of Developer Evolution

The Four Stages Of Developer Evolution

Devops
277.1K views 1 year ago