ProgrammerHumor

itWorkedYesterdayIDontKnowWhatHappened

itWorkedYesterdayIDontKnowWhatHappened
https://i.redd.it/oqbqmangqscf1.png
Reddit

Discussion

Afterlife-Assassin
:c::cp::py::g:

Race conditions and memory leak in the corner

13 hours ago
sorrow_seeker

It doesn't even have to be that rare and technical. Sometimes, it's just another service that is owned by another team that got deployed to staging without proper communication, and it screw you over. Just be calm, and always remember that you're working with technology here, not magic. So, everything happened because of a reason and you can explain it, then fix it.

13 hours ago
gesterom

I dont know man, my fireball dont stop working randomly.

13 hours ago
redballooon

See? Not magic. Technology.

12 hours ago
LobsterKris

But isn't any sufficiently advanced bug is indistinguishable from magic to us?

12 hours ago
hot_sauce_in_coffee
:r::cs::py::unity::js:

I had the opposite the other day.

NA variable undefined, cannot be selected.

If I did anything, it claim it was not that.

Is it NA? nope. Is it NULL? nope, can I convert it to character and say length under 5? nope.

so I could not filter it away. Tried '''' for missing and a bunch of other shit. Nothing worked at all.

Fast forward 4 hours, I'm losing my mind over it. I give up for the day. the next day, when I reboot my laptop, it just work without issue. It was NA all along, the whole thing was just corrupted or something.

11 hours ago
ActivisionBlizzard

No no no you have this all wrong.

To fix a bug you need to feed the code elves with “Got here” and “Not supposed to be here” logging statements.

11 hours ago
Excellent-Refuse4883

Every time this comes up on my team it’s network latency nobody planned for

7 hours ago
Ronin-s_Spirit
:js:

Unless something is broken, when things break - technology becomes basically magic. Like old ram sticks breaking down and silently corrupting game files to leave you stumped.

4 hours ago
mrwishart
:cs:

Race conditions and memory leak in the spotlight. Losing my religion

13 hours ago
ANTONIN118
:js:

Cache

13 hours ago
lenn_eavy

As once famous rapper said, cache rules everything around me

11 hours ago
qthulunew

I love this

10 hours ago
NotAskary

If it's not web it's the container, if not that the compiler, I hate all the special cases that make you lose your mind.

12 hours ago
joemckie

Also not mocking dates properly. I don’t know how many times our pipelines have broken just because it’s a different date

12 hours ago
NotAskary

Containers cache in the other....

12 hours ago
Darkstar_111

You set env variables manually.

12 hours ago
TheRealMikkyX

It's because you have a meeting today to demo the system. And it starts in ten minutes.

13 hours ago
frojan_
:cp:

The code can smell your fear

7 hours ago
DadToOne

So many times. Demo fails when it was working 5 minutes ago on the exact same system. Guess I forgot to appease the computer gods.

8 hours ago
backfire10z

Who is doing date/time based calculations again

13 hours ago
RichCorinthian

Possibly unwittingly relying on being in a specific time zone while working on a global team…

10 hours ago
NotDiCaprio

Possibly around the summer/wintertime switch...

13 hours ago
MZhuvka
:kt: :py: :cs:

The Unix timestamp caused a seg fault😭

9 hours ago
MyUsrNameWasTaken

February 29th

4 hours ago
GregoryfromtheHood

Why does this look AI generated?

13 hours ago
jelly-confrontation

yup, poor Jim

11 hours ago
emrah_programatoru

Actually, this is NOT an upscaler. It seems like OP used Sora to write the text on the image. Compare the original image with the OP's for yourself, you'll see they're doing completely different poses and facial expressions.

10 hours ago
powerhcm8

For a second I thought my mind was giving a false positive for ai.

9 hours ago
I_think_Im_hollow

Horrible AI upscaler

11 hours ago
emrah_programatoru

see my reply below

10 hours ago
Icy_Breakfast5154

Does this actually happen

13 hours ago
FRleo_85
:py:

yes. sometimes you forget to build and think it's your current code that is running when it's not, sometimes the test database is reset and nothing work anymore, sometimes your coworkers decide to update dependancies without telling you, sometimes you just got lucky with race conditions for a while then not, sometimes third party soft just die for no reasons, sometimes your code wasn't well designed to run for too long and reached an unstable state, etc...

13 hours ago
PsyOpBunnyHop

sometimes you forget to build

*gasp* The dreaded PEBKAC strikes again!

13 hours ago
NotAskary

The worst is when it was working and then you build it again and suddenly it doesn't work, you clean everything reset cache and nothing works.

I've had local builds do that to me.

12 hours ago
AlxR25
:sw::py::c:

i once forgot to activate my venv and i was debugging for about 20 minutes

13 hours ago
TimeKillerAccount

Not like is implied in the meme. Working code doesn't magically stop working unless something else changes, which it shouldn't. So either it didnt work in the first place even though you thought it did, or you fucked up and changed things without realizing it. That part does happen sometimes, to pretty much everyone.

13 hours ago
aenae

I have a script that works 364 days a year. One day per year it breaks because the day before suddenly had 25 hours.

It is an error in the code obviously, but it runs errorfree 364/365 days

13 hours ago
No_Hovercraft_2643

not setting env var is an example that could be a reason

13 hours ago
Hot-Charge198

yeah, sometimes is a problem with cache. either you had something from an old execution and you didnt clean it, or the old cache was just rewritten

13 hours ago
bayuah
:js::bash::c::p::snoo_dealwithit:

Yeah. Reminds me of when I developed some code on my local machine, it ran perfectly fine, but threw errors left and right on the staging.

Turns out the staging had caching enabled, and mine did not. Ha, ha!

10 hours ago
siren1313

Not uncommon with a linter running as a separate process, it can silently fail at some point and you notice it the next day when it restores at project start.

Also TS caches can do some really funky things.

13 hours ago
Puzzleheaded-Weird66

some config in some file updated, cannot be read/corrupted/missing etc. usually in the cache

13 hours ago
mrwishart
:cs:

Yup. Anything involving date management, for example, can have odd edge cases that cause it to fail on particular days

13 hours ago
dumbasPL
:holyc:

Anything that relies on external services. Also race conditions or other undefined behavior.

13 hours ago
Best-Repair762

External services are always a suspect. And even if there are multiple internal services your service depends on, and the services are managed by other teams in your org, that can break things too if the other teams make a breaking change without telling.

13 hours ago
-ghostfang-

Yeah, something else changed.

13 hours ago
Few_Kitchen_4825

I had this happen when I don't do rebuild. But mostly in Java. It will use the previous class files generated. When you rebuild all the previous class files are cleared and it will start failing. So the code has come cyclic dependency you missed.

13 hours ago
acibiber53

Yeah, a service we were using decided to shutdown the service without announcement, the code that utilized that service and worked perfectly yesterday gave more than 40 errors in one day. Changed the service provider and the code still works.

Another time, the library we are using updated the older function so our program started throwing errors. We bombarded the github issue on how it stopped magically that day and they fixed it in that day.

Your code is just one part of the whole, there are so many out-of-control variables that can make your code shake with errors, I feel grateful anytime a piece of code I wrote years ago still works. It reminds me of this Sagan quote: If you wish to make an apple pie from scratch, you must first invent the universe.

Another point: A code that throws errors and let you know there’s an issue is better than a code that fails and doesn’t let you know. Errors are misunderstood little fellas. They are not the harbingers of the doom, they are the messengers of the better future. They are part of the process. Read them, embrace them, thank them, learn from them. And then fix them and put them to their final resting place.

Until they decide to become a zombie and come back. Then you shoot them in the face.

13 hours ago
just4nothing

Yes. Especially if there is interaction with other systems. Software rarely runs in isolation

13 hours ago
Rigamortus2005

Some external variable must have changed. Cache, packages e.t.c.

13 hours ago
vikingwhiteguy

Yeah the thing that always gets me is debugging integration tests. We have a setup and teardown routine that runs before and after the test. That works fine.. unless you attach your debugger to a test run, and you stop the run before it runs the teardown. Then you end up with test garbage still in your local db, all integration tests will fail subsequently (for really weird reasons) and you'll have a really sad time until you realise that's what's happened.

11 hours ago
Xywzel

I have seen it caused by c preprocessor macro that adds date of compilation and current git commit hash to help and version strings. Depending on locale and date, reserved memory for the string and length for copying and printing it did not match. So for one new hire, starting second week in the job, the project that worked well last week and was build from clean repository would segfault on startup.

10 hours ago
daishozen

For me this happens when I forget to connect to the VPN at the start of the work day.

8 hours ago
Nodebunny
:py::cp::js::bash::snoo_putback::table_flip:

youve ever heard of Windows update?

7 hours ago
Old_Refrigerator2750

Usually a cache problem

13 hours ago
Adreane

Why is this template ai generated

13 hours ago
Kiren129

It’s AI enhanced. The original is from the office.

13 hours ago
Memorius

More like AI ruined, look at him that's not even Jim anymore

12 hours ago
pjm_0

Celebrity lookalike who does appearances at birthday parties and special events. Much cheaper and most people can't tell the difference from far enough away as long as he doesn't say anything

4 hours ago
Overloaded_Guy

True it looks 4k

13 hours ago
LordAfterEight
:rust:

?

13 hours ago
ward2k
:sc:

Do people keep forgetting that Ai generated pictures are banned on this sub, every other post now is ai generated

Even the posts hating on Ai still use ai art, it's frustrating

13 hours ago
DontDoodleTheNoodle

I think this one flew by because its based off an original meme

5 hours ago
xxxfooxxx

Race conditions? Dependency changed? Database updated?

13 hours ago
Ugo_Flickerman
:j:

Yesterday you forgot to compile

13 hours ago
BellybuttonWorld

Did you run

sudo apt upgrade --fuckmyshitup

by any chance?

10 hours ago
No-Article-Particle

If it worked yesterday but not today, it didn't work yesterday either.

13 hours ago
Amoniakas

Yesterday it didn't work and I couldn't figure out why, today it works perfectly.

13 hours ago
Supierre

Y2K ! Y2K !

13 hours ago
RB-44
:cp:

Forgot the -c flag the first time

13 hours ago
RiceBroad4552
:s:

Must be solar storms! Again.

13 hours ago
Magnus_Helgisson

Also: it used to work on previous builds I checked it multiple times in the past, let me show y… what the fuck?!

13 hours ago
yuva-krishna-memes
:c:

Meme is ok.. template modification is scary.

12 hours ago
Nodebunny
:py::cp::js::bash::snoo_putback::table_flip:

its called background package updates. oh so you think youre on version 6.420 suprise mofo 7.0! breaking change and you cant rollback mwuahaha

7 hours ago
seatchair01

Just a normal day in programming

13 hours ago
brandi_Iove

ai slop

13 hours ago
Adorable-Maybe-3006

how is this slop? This is a relatable issue and the image is based on an existing template?

12 hours ago
Goat_of_Wisdom

*AI trash. OP is so lazy they jumped to AI prompting instead of finding any website that generates the image conventionally with custom text (or opening an image editor)

It wouldn't matter if it didn't make the image uncanny

10 hours ago
Agreeable_Service407

Idc, it works on my machine.

13 hours ago
Icount_zeroI
:ts::py::g:

Basically how goes my journey of creating a contract agreement generator and PDF manipulation. One day the PDF is perfect and next day it’s total shit. The contracts are done in markdown, then to html and then to PDF. (Hahah jaja ich bin ein dr doofenshmirtz)

13 hours ago
Afsheen_dev

The programmer dilemma: did I break it, or did it break me?

13 hours ago
cybermage

When I seen this happen, it was a time zone issue. UTC provided a different day than local time.

13 hours ago
chromaaadon

I can feel the vibes

13 hours ago
GotBanned3rdTime

blame typescript

13 hours ago
extopico

For me it was a Git issue. User error of course, but ridiculously frustrating when solved issues reappear…

13 hours ago
dillanthumous

Dependencies.

13 hours ago
Myszolow

Quick fix from other team for their backend, with update rest/graphql endpoint breaking backward compatibility? Been there, done that

13 hours ago
hafiften_citir

It is actually MOBILE DEVELOPMENT lol

13 hours ago
Smooth_Ad_6894

Your also working with a database so something in there could have easily been inserted/updated with a state that your service didn’t account for 🫠

13 hours ago
Not-the-best-name
:py:

Op wasn't actually running the code he was writing. It was still last week's docker or something.

13 hours ago
JC3PO1996

Today for example the geolocation for google directions wasn't working because the place_id stored on the db adress for somenrestaurants had become obsolete and google didn't recognise it. Sometimes it's not only the source code that breaks.

12 hours ago
AndiArbyte

Didnt reboot the system for weeks now.

12 hours ago
_grey_wall

Are they trivy scan errors on build time?

12 hours ago
an_0w1
:asm::cp::rust:

I had an error like this a few weeks ago, after a couple of hours of debugging it discovered it was caused by a compiler misoptimisation. I have no idea what finally triggered it.

12 hours ago
Beaver_International

I’m taking a python class and we are learning flask. I followed the setup made my little webpage then called it a night. Next day it took me an hour to figure out the venv.

12 hours ago
ZHippO-Mortank

" If date.datetime == dateToday': " is maybe the issue

12 hours ago
korneev123123
:py:

Possible reasons:

  • external library update

  • system library update

  • compiler/interpreter update

  • if docker is used, image cache could be invalidated, and new image can be totally different, even with the same dockerfile

12 hours ago
Affectionate_Teach23

February 29

12 hours ago
runningsimon

This sums up my career as a developer perfectly

12 hours ago
SwannSwanchez

you probably rebooted your pc

now the world will end

11 hours ago
Due_Wait_837

Users doing 17 totally unpredictable things.

11 hours ago
keith2600

In my experience it's always either referencing binaries you didn't expect, forgot to save, forgot to git add. Everything else is either you're making it up to save face or an external update.

11 hours ago
Tobi_Peter

Had the same thing, turns out I replaced dependency versions a few hours before stopping on the first day which were only pulled in after a reboot the next day. Took me very long to figure this out

11 hours ago
Apprehensive-Mark241
if (rnd() < (RAND_MAX>>4))throw std::runtime_error("pure virtual function called");
11 hours ago
antiav

If youre doing some kind og web-dev it could be an ild cookie session

11 hours ago
Hulk5a

Date changed, so a new branch was executed. (Got fucked up hard with Datetime.utc and datetime.utcnow in c#)

11 hours ago
GreatGreenGobbo

Shared env, another project deployed something that nuked your code.

Happened on my previous project so many times.

11 hours ago
kb_kills

r/programmerHorror

10 hours ago
Wang_Fister

DNS is fucked

10 hours ago
MrOaiki

The dependencies you imported from that CDN in your frontend code, stopped working a long time ago. You might even have forgotten to include them in your commit from last month. But the browser cached them so everything went smoothly. Until the cache was gone.

10 hours ago
Delete_Acc0unt

Edge Case trophy achievement 🏆

10 hours ago
Ab47203

When in doubt reboot it out.

9 hours ago
Flopppywere

(sort of new Dev here ;-;)

Me forgetting to start docker and spin up my SQL server before I run npm test and get confused.

Usually only takes me 2 mins to remember but it's still funny each time.

9 hours ago
zirky

sounds like somebody has a case of the mondays

9 hours ago
JulesDeathwish

if (DateTime.Now >= new DateTime(2025,7,14))
throw;

9 hours ago
GlitteringAttitude60

we once found out that one particular test, which had been happily running for two years, would reliably fail when run on a Sunday. For perfectly understandable reasons too.

But we had never noticed because we normally didn't work on Sundays, so it kinda never came up :-D

9 hours ago
therealbrich

What’s the point of putting the template through AI

8 hours ago
RlyRlyBigMan

For us that probably means the VPN is getting in the way

8 hours ago
wait_whats_this

I've had a dependency of a dependency of a dependency go deprecated overnight between deployments (isn't rust great?) so I had 2 built-from-scratch systems where one was perfect and the other wouldn't build. 

I guess I have to watch my dependencies but still

7 hours ago
Former-Discount4279

Rebasing...

7 hours ago
stipulus

Let's use CI/CD for everything guys. It will make everything so much easier to test..

A similar thing happened to my task this morning that put it back on my desk. After investigation, it was a different task merged in just after that caused the bug now associated with my task.

6 hours ago
herdianf

- as a php dev you run `composer update`

- as a nodejs dev you run `npm audit fix`

5 hours ago
action_turtle

Tried that today, didn’t work. What’s really annoying, builds and works on my machine… shits the bed on test lol

4 hours ago
mbishnoi2

Javascript

5 hours ago
ihadagoodone

it's mechanical.

it's always mechanical.

5 hours ago
TheOwlHypothesis

Something in the environment the code runs in changes is the obvious answer.

Source: SWE/DevOps/Platform Engineer

4 hours ago
cptbstrd

Add nuking the docker volumes to your `make clean`

4 hours ago
Brahminmeat
:ts:

Yesterday was Sunday. It’s easy to run error free without users

4 hours ago
Feisty_Ad_2744

hardcoded date, race conditions, error handling...

4 hours ago
Vimesito

then it's the cache thing

3 hours ago
Garrosh
:cp:

Somebody has screwed up the pipeline. Again.

1 hour ago
NixPlayer05

And that's why version control exists

1 hour ago
braytag

In my case, it's always a Microsoft update "somewhere".

1 hour ago
cobaltcrane

Must be a Salesforce thing

31 minutes ago