Logo
DNS: The internet's phone book, but slower.
  • 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

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

Friend-classes Memes

Posts tagged with Friend-classes

Friends Will Be Friends

C++ Programming
3 hours ago 53.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.

Spotlight

GearScouts.com

Stop scrolling, start exploring! Find the gear that'll get you off the couch and into the wild. Compare power stations for off-grid adventures, flashlights for midnight hikes, and essentials that make the outdoors your playground. Get Outside →

AOC AM400G Single Monitor Stand - Full Adjustab...

AOC AM400G Single Monitor Stand - Full Adjustab...
Ad Purchase this and help us pay for the therapy our devs need after dealing with IE compatibility. 🧠