Logo
Sleep is for the weak. And for while loops.
  • 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

Redundant documentation Memes

Posts tagged with Redundant documentation

I Mean, The Comment Is Accurate I Suppose

Golang Programming Backend
3 months ago 1.8M views 0 shares
I Mean, The Comment Is Accurate I Suppose
You know your codebase has reached peak quality when the comment literally just describes what the function name already screams at you. "returnRowErrorOnTxFailure returns the error" - yeah, and water is wet, thanks for that groundbreaking insight. The best part? Someone took the time to write a multi-line comment explaining that this function returns an error so processing doesn't continue. Then proceeded to write a function that... checks if error is nil, returns nil, otherwise returns the error. Revolutionary stuff right here. Could've been a one-liner but where's the fun in that? This is what happens when your team enforces comment coverage metrics without checking if the comments actually add value. Next up: "// this variable stores a value" above every variable declaration.

Today's picks

LG UltraFine evo 32U990A-S 32" 6K (6144×3456) Nano IPS Black Professional Monitor | 60Hz, DisplayHDR 600, Thunderbolt 5, HDMI 2.1, DisplayPort 2.1, USB-C, Built-In Speakers & Adjustable Stand - Bundle

LG UltraFine evo 32U990A-S 32" 6K (6144×3456) Nano IPS Black Professional Monitor | 60Hz, DisplayHDR 600, Thunderbolt 5, HDMI 2.1, DisplayPort 2.1, USB-C, Built-In Speakers & Adjustable Stand - Bundle

Affiliate
$1549.95
Shocking

Shocking

Programming
91.7K views 4 years ago
IT Jobs Explained With A Broken Lightbulb

IT Jobs Explained With A Broken Lightbulb

Javascript
160.1K views 3 years ago