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

Javascript-dates Memes

Posts tagged with Javascript-dates

Sleepy Time

Javascript Programming Debugging Backend Webdev
21 days ago 99.3M views 0 shares
Sleepy Time
Nothing quite like that 3 AM panic when you realize you've accidentally scheduled a customer's subscription renewal for a month that doesn't exist. You wanted January 30th, but JavaScript's Date constructor with month index 1 (which is February, because of course months start at 0) and day 30 just... rolls over to March 1st. Because February only has 28 or 29 days, JavaScript just shrugs and says "close enough, here's March 1st." Your customer is now getting charged on the wrong day, your billing system is chaos, and you're lying in bed wondering why you didn't just use a proper date library. Sleep? Not tonight, friend. Tonight you're debugging date logic at 2 AM while questioning every life choice that led you to work with JavaScript dates.

Today's picks

Where's The Love

Where's The Love

Programming
149.5M views 15 days ago
Syntax error on token "}"

Syntax error on token "}"

Programming
201.3K views 5 years ago
Asking a question on Stackoverflow be like

Asking a question on Stackoverflow be like

StackOverflow
87.8K views 4 years ago