Logo
The first computer bug was an actual bug.
  • 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

Condition-checking Memes

Posts tagged with Condition-checking

Loop Logic: The Cliff Of Execution

Programming Algorithms Debugging
4 days ago 150.8K views 1 shares
Loop Logic: The Cliff Of Execution
The eternal battle between while-do and do-while loops played out through Road Runner and Wile E. Coyote! On the left, Road Runner safely checks the condition (!edge) before running, saving himself from the cliff. Meanwhile, poor Coyote executes run() first and only checks (!edge) after he's already airborne. And that's why you always validate before executing, folks! The difference between falling and living another day is literally one line of code.

The Edge Case Cliff Disaster

Programming Algorithms Javascript Debugging
2 months ago 223.4K views 0 shares
The Edge Case Cliff Disaster
The classic Road Runner vs. Wile E. Coyote scenario reimagined as a programming loop disaster! On the left, Road Runner's code uses a proper while (not edge) { run(); } loop that will terminate when reaching the cliff edge. Meanwhile, poor Coyote is using a do { run(); } while (not edge); loop—checking the condition after execution. He's already run off the cliff because his condition check comes too late! The fundamental difference between pre-test and post-test loops perfectly illustrated through cartoon physics. The variable edge isn't even defined until it's too late, and by then gravity.js has already been imported!

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 →

I Am Your Father - Floppy Disk Computer Enginee...

I Am Your Father - Floppy Disk Computer Enginee...
Ad You get awesome gear, we get to keep our domain from expiring. Fair trade! 🤝