Logo
HTTP 451: Unavailable for legal reasons (Fahrenheit 451).
  • 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

Payment-gateway Memes

Posts tagged with Payment-gateway

Nothing Is More Permanent Than A Temporary Fix

Programming Java Debugging Backend
6 hours ago 14.5K views 0 shares
Nothing Is More Permanent Than A Temporary Fix
The "remove on Monday" comment from Black Friday 2019 is still there... and it's clearly not Monday anymore. What started as a quick hardcoded return value for the CEO's brother-in-law (nepotism at its finest) has now become production code that's survived multiple years. But wait, it gets better. The actual implementation below is a beautiful disaster: a 2-second sleep to prevent DDoS attacks (because that's definitely how you handle those), catching InterruptedException while ignoring it completely, and my personal favorite—the comment "DO NOT REMOVE THIS SLEEP" written in all caps like a desperate warning from a past developer who learned the hard way. The ticket reference 🎫#402-B suggests someone actually documented this madness. Somewhere in JIRA, there's probably a ticket from 2018 that says "temporary fix for payment gateway" that's been marked as "Won't Fix" for 6 years running. Fun fact: Thread.sleep() in production payment code is basically Russian roulette with your uptime SLA. But hey, if it works, don't touch it... right?

Today's picks

Where's The Love

Where's The Love

Programming
149.5M views 20 days ago
Which Is Better

Which Is Better

Programming
128.7K views 1 year ago
Worlds Best Web Developer Ceramic Mug, Red/White

Worlds Best Web Developer Ceramic Mug, Red/White

Affiliate
$16.99