Logo
The best code is no code at all.
  • 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

Write vs append Memes

Posts tagged with Write vs append

Done And Dusted

Debugging Programming Python Backend
1 day ago 49.0M views 0 shares
Done And Dusted
That beautiful moment when you're feeling like a genius after writing a slick function that crunches numbers and saves results to a file. You test it again with fresh data, feeling confident... and watch in horror as it overwrites everything you just computed. Turns out you forgot to append instead of overwrite, or maybe you hardcoded the filename like an animal. Nothing humbles you faster than realizing your "reusable" function just nuked hours of work because you opened the file in write mode instead of append mode. One character difference between 'w' and 'a', infinite difference in suffering. Should've used a timestamp in that filename, but hindsight is 20/20 when you're staring at an empty file.

This Is A Critical Setback

Debugging Programming Csharp Git
9 months ago 311.1K views 0 shares
This Is A Critical Setback
Someone just discovered they've been using 'Write' mode instead of 'Append' mode and nuked their entire Program.cs file. The kind of mistake that makes you stare at your screen in silence for a solid minute before checking if you committed recently. Spoiler: they probably didn't. File I/O operations have claimed another victim, and somewhere a senior dev is whispering "this is why we use version control" into the void.

Today's picks

Weller Digital Soldering Station with 70W Precision Iron | 120V | WLSKD7012A

Weller Digital Soldering Station with 70W Precision Iron | 120V | WLSKD7012A

Affiliate
$89.24
It Works On My Machine

It Works On My Machine

Programming
159.9K views 2 years ago
Stolen

Stolen

Programming
108.6K views 3 years ago