Logo
Life is short, use Python.
  • 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

Private-members Memes

Posts tagged with Private-members

Friends Will Be Friends

C++ Programming
2 months ago 313.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

Only Option Remaining

Only Option Remaining

Programming
19.3M views 1 day ago
V VCOM M.2 NVMe SSD Enclosure,USB C External Adapter, USB 3.2 Gen2 (10Gbps) with UASP, Trim Support - M-Key(B+M Key) for 2230/2242/2260/2280 SSDs

V VCOM M.2 NVMe SSD Enclosure,USB C External Adapter, USB 3.2 Gen2 (10Gbps) with UASP, Trim Support - M-Key(B+M Key) for 2230/2242/2260/2280 SSDs

Affiliate
$13.99
The State Of Programming Jobs In2024

The State Of Programming Jobs In2024

Programming
115.0K views 2 years ago