Logo
CSS is awesome { overflow: hidden; }
  • 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
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

Fallthrough Memes

Posts tagged with Fallthrough

The Break Operator Strikes Back

Debugging Programming Javascript C++ Java
10 months ago 350.3K views 1 shares
The Break Operator Strikes Back
The eternal loop of pain for every developer who's been burned by a missing break statement. In many programming languages like JavaScript, C, or Java, forgetting to add a break after each case in a switch statement means execution "falls through" to the next case. What our poor Anakin thought was a simple while loop with a condition check is actually a nightmare waiting to happen. That smug look from Padmé says it all - she knows he's about to experience the joy of unexpected behavior when execution cascades through every case below the matching one. And just like the recursion in this meme format, the debugging pain will multiply infinitely. The real Force power is remembering your break statements.

Why Do We Need Breaks In Switches Again

Programming Debugging Javascript C++ Csharp
1 year ago 339.1K views 0 shares
Why Do We Need Breaks In Switches Again
The eternal suffering of forgetting to add break statements in switch cases. The code just keeps on executing through every subsequent case like it's on a mission to ruin your day. And then you spend three hours debugging why your function is returning seventeen different values when it should only return one. The worst part? The compiler sits there silently judging you instead of throwing a warning. Thanks for nothing, compiler.

Today's picks

AOC 2.4GHz Ergonomic Mouse, Wireless Bluetooth Vertical Mouse for Work, 4800 DPI Optical Tracking, 5 Adjustable DPI, Quiet Clicks, RGB Light, Compatible with Computer, Laptop, PC, Mac, Desktop - Gray

AOC 2.4GHz Ergonomic Mouse, Wireless Bluetooth Vertical Mouse for Work, 4800 DPI Optical Tracking, 5 Adjustable DPI, Quiet Clicks, RGB Light, Compatible with Computer, Laptop, PC, Mac, Desktop - Gray

Affiliate
$29.99
GearScouts.com

GearScouts.com

Sponsored
Power stations
Segmentation Fault Be Like

Segmentation Fault Be Like

Programming
74.0K views 2 years ago