Logo
AI is no match for Natural Stupidity.
  • Home
  • Hot
  • Random
  • Search

Browse

  • AI AI
  • AWS AWS
  • Agile Agile
  • Algorithms Algorithms
  • Android Android
  • Apple Apple
  • Azure Azure
  • Backend Backend
  • Bash Bash
  • C++ C++
  • Cloud Cloud
  • 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

Liskov-substitution Memes

Posts tagged with Liskov-substitution

Liskov Substitution Principle

Programming Java
1 month ago 75.1M views 1 shares
Liskov Substitution Principle
When you make a Car extend Person instead of the other way around, you've created an inheritance hierarchy so cursed that even Barbara Liskov herself would need therapy. The Liskov Substitution Principle states that objects of a superclass should be replaceable with objects of a subclass without breaking the application. But here? A Car IS-A Person? Brother, you've violated not just SOLID principles but the laws of physics and common sense. The person crawling on the ground represents every senior developer who has to review this code. They're not just disappointed—they're physically broken by the sheer wrongness of it all. A car doesn't inherit from a person. A car HAS-A driver. Composition over inheritance, my friend. But no, someone decided that giving a Car a topSpeed and passing a driverName to super() made perfect sense. Fun fact: The Liskov Substitution Principle is the "L" in SOLID, named after Barbara Liskov who won a Turing Award. She definitely didn't win it for making vehicles inherit from humans.

Today's picks

Nacho Average Software Engineer Funny Coder Programmer Joke T-Shirt

Nacho Average Software Engineer Funny Coder Programmer Joke T-Shirt

Affiliate
$17.99
Computer joke disease

Computer joke disease

Linux
93.9K views 2 years ago
AI will take over the world

AI will take over the world

Programming
114.4K views 2 years ago