Logo
First domain ever: Symbolics.com (1985)
  • 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

Array indexes Memes

Posts tagged with Array indexes

When Clean Code Principles Go Too Far

Programming Debugging
1 year ago 241.8K views 0 shares
When Clean Code Principles Go Too Far
Someone's been reading Uncle Bob's "Clean Code" a bit too religiously! Instead of using normal array indexes like a sane person, they've created named constants for the values 0, 1, 2, and 3. It's like wearing a three-piece suit to take out the trash—technically more formal but completely unnecessary. This is what happens when you follow the "magic numbers are evil" principle without applying any common sense filter. Next up: creating a constant called PLUS_ONE because incrementing by 1 isn't self-documenting enough! 🤦‍♂️

Today's picks

YEELIGHT Monitor Light Bar, Computer Monitor Lamp for Home Office Gaming, 250LM No Glare Eye-Care Screen Light Bar, Touch Control USB Reading Desk Lamp with Stepless Dimming for Flat & Curved Monitor

YEELIGHT Monitor Light Bar, Computer Monitor Lamp for Home Office Gaming, 250LM No Glare Eye-Care Screen Light Bar, Touch Control USB Reading Desk Lamp with Stepless Dimming for Flat & Curved Monitor

Affiliate
$26.49
Yeah but planets are much bigger

Yeah but planets are much bigger

Programming
94.6K views 3 years ago
NordVPN

NordVPN

Sponsored
VPN