Logo
May your code be bug-free and your deploys be boring.
  • 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
21 days ago 66.9M 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
10 months ago 323.5K 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

Employee Vs Freelancer Vs Founder Vs Vibe Coder

Employee Vs Freelancer Vs Founder Vs Vibe Coder

Programming
291.2M views 13 days ago
I code in nano, btw

I code in nano, btw

Linux
87.0K views 2 years ago
Obsidian Testing Their Users

Obsidian Testing Their Users

Linux
109.1K views 2 years ago