Logo
What's a programmer's favorite place? The foo bar!
  • 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
10 months ago 186.9K 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

HYBLOM SCP Field Codes Metal Sign - Game Room Decor Tin Poster, Programmer Gift, Vintage Wall Art for Study, Bedroom, Cafe & Club 8x12 Inches Black Art Aluminum Plaque

HYBLOM SCP Field Codes Metal Sign - Game Room Decor Tin Poster, Programmer Gift, Vintage Wall Art for Study, Bedroom, Cafe & Club 8x12 Inches Black Art Aluminum Plaque

Affiliate
$9.99
My shift is done...

My shift is done...

Programming
68.9K views 4 years ago
The holy trinity, am I getting it right?

The holy trinity, am I getting it right?

Programming
85.8K views 1 year ago