Logo
Copy-paste: The original code reuse.
  • 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

Private-members Memes

Posts tagged with Private-members

Friends Will Be Friends

C++ Programming
1 month ago 280.3K views 0 shares
Friends Will Be Friends
Someone's asking if using friend classes is frowned upon, and the top comment drops the golden rule: "Don't let friends touch your privates." For context, the friend keyword in C++ lets another class access your private members, which is basically punching a hole through encapsulation. It's like giving someone the keys to your house and saying "please don't go through my underwear drawer." Most devs consider it a code smell because it creates tight coupling and defeats the purpose of access modifiers. If you need a friend class, your design probably needs a refactor. The double entendre here is *chef's kiss* — both a programming best practice AND life advice wrapped in one sentence.

Today's picks

It's AI Fault

It's AI Fault

Programming
2.0M views 10 days ago
monTEK Stable Dual Monitor Stand for 17"–32” Computer Screens, Heavy-Duty Desk Mount with 22 lbs per Arm, Fully Adjustable Brackets and Arms, Clamp/Grommet Base, VESA 100×100mm Max

monTEK Stable Dual Monitor Stand for 17"–32” Computer Screens, Heavy-Duty Desk Mount with 22 lbs per Arm, Fully Adjustable Brackets and Arms, Clamp/Grommet Base, VESA 100×100mm Max

Affiliate
$29.99
i am a good programmer!!

i am a good programmer!!

Programming
76.4K views 4 years ago