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

1 day 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.

1 day ago
gesterom

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

1 day ago
redballooon

See? Not magic. Technology.

1 day ago
LobsterKris

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

1 day 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.

1 day 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.

1 day ago
Excellent-Refuse4883

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

1 day 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.

23 hours ago
ANTONIN118
:js:

Cache

1 day ago
lenn_eavy

As once famous rapper said, cache rules everything around me

1 day ago
qthulunew

I love this

1 day 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.

1 day ago
mrwishart
:cs:

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

1 day 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

1 day ago
NotAskary

Containers cache in the other....

1 day ago
Kasyx709

Excuse me, race conditions are now referred to as merit based threading and are actively encouraged.

14 hours ago
Darkstar_111

You set env variables manually.

1 day ago
TheRealMikkyX

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

1 day ago
frojan_
:cp:

The code can smell your fear

1 day 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.

1 day ago
backfire10z

Who is doing date/time based calculations again

1 day ago
RichCorinthian

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

1 day ago
NotDiCaprio

Possibly around the summer/wintertime switch...

1 day ago
MZhuvka
:kt: :py: :cs:

The Unix timestamp caused a seg fault😭

1 day ago
MyUsrNameWasTaken

February 29th

22 hours ago
GregoryfromtheHood

Why does this look AI generated?

1 day 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.

1 day ago
powerhcm8

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

1 day ago
jelly-confrontation

yup, poor Jim

1 day ago
I_think_Im_hollow

Horrible AI upscaler

1 day ago
emrah_programatoru

see my reply below

1 day ago
Icy_Breakfast5154

Does this actually happen

1 day 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...

1 day ago
PsyOpBunnyHop

sometimes you forget to build

*gasp* The dreaded PEBKAC strikes again!

1 day 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.

1 day ago
AlxR25
:sw::py::c:

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

1 day 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.

1 day 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

1 day ago
No_Hovercraft_2643

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

1 day 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

1 day 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!

1 day 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.

1 day ago
Puzzleheaded-Weird66

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

1 day ago
mrwishart
:cs:

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

1 day ago
dumbasPL
:holyc:

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

1 day 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.

1 day ago
-ghostfang-

Yeah, something else changed.

1 day 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.

1 day 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.

1 day ago
just4nothing

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

1 day ago
Rigamortus2005

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

1 day 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.

1 day 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.

1 day ago
daishozen

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

1 day ago
Nodebunny
:py::cp::js::bash::snoo_putback::table_flip:

youve ever heard of Windows update?

1 day ago
AbbreviationsOdd7728

Often the „I didn’t change anything“ part is a wrong perception. For example when you have unknowingly created files that are gitignored due to a misconfigured build process and that fucks up your dev setup without you seeing any changes.

10 hours ago
Icy_Breakfast5154

Isn't there a way to compare the current file with the previous one rather than doing something like scanning every line of code to see what you're missing

10 hours ago
Old_Refrigerator2750

Usually a cache problem

1 day ago
Adreane

Why is this template ai generated

1 day ago
Kiren129

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

1 day ago
Memorius

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

1 day 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

23 hours ago
Overloaded_Guy

True it looks 4k

1 day ago
LordAfterEight
:rust:

?

1 day 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

1 day ago
DontDoodleTheNoodle

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

23 hours ago
Ugo_Flickerman
:j:

Yesterday you forgot to compile

1 day ago
xxxfooxxx

Race conditions? Dependency changed? Database updated?

1 day ago
BellybuttonWorld

Did you run

sudo apt upgrade --fuckmyshitup

by any chance?

1 day ago
No-Article-Particle

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

1 day ago
Amoniakas

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

1 day ago
RiceBroad4552
:s:

Must be solar storms! Again.

1 day ago
Supierre

Y2K ! Y2K !

1 day ago
RB-44
:cp:

Forgot the -c flag the first time

1 day 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?!

1 day ago
yuva-krishna-memes
:c:

Meme is ok.. template modification is scary.

1 day 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

1 day ago
brandi_Iove

ai slop

1 day ago
Adorable-Maybe-3006

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

1 day 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

1 day ago
seatchair01

Just a normal day in programming

1 day ago
Agreeable_Service407

Idc, it works on my machine.

1 day 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)

1 day ago
Afsheen_dev

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

1 day ago
cybermage

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

1 day ago
chromaaadon

I can feel the vibes

1 day ago
GotBanned3rdTime

blame typescript

1 day ago
extopico

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

1 day ago
dillanthumous

Dependencies.

1 day ago
Myszolow

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

1 day ago
[deleted]

It is actually MOBILE DEVELOPMENT lol

1 day 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 🫠

1 day 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.

1 day 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.

1 day ago
AndiArbyte

Didnt reboot the system for weeks now.

1 day ago
_grey_wall

Are they trivy scan errors on build time?

1 day 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.

1 day 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.

1 day ago
ZHippO-Mortank

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

1 day 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

1 day ago
Affectionate_Teach23

February 29

1 day ago
runningsimon

This sums up my career as a developer perfectly

1 day ago
SwannSwanchez

you probably rebooted your pc

now the world will end

1 day ago
Due_Wait_837

Users doing 17 totally unpredictable things.

1 day 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.

1 day 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

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

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

1 day ago
Hulk5a

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

1 day ago
GreatGreenGobbo

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

Happened on my previous project so many times.

1 day ago
kb_kills

r/programmerHorror

1 day ago
Wang_Fister

DNS is fucked

1 day 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.

1 day ago
Delete_Acc0unt

Edge Case trophy achievement 🏆

1 day ago
Ab47203

When in doubt reboot it out.

1 day 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.

1 day ago
zirky

sounds like somebody has a case of the mondays

1 day ago
JulesDeathwish

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

1 day 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

1 day ago
therealbrich

What’s the point of putting the template through AI

1 day ago
RlyRlyBigMan

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

1 day 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

1 day ago
Former-Discount4279

Rebasing...

1 day 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.

1 day ago
herdianf

- as a php dev you run `composer update`

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

23 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

22 hours ago
mbishnoi2

Javascript

23 hours ago
ihadagoodone

it's mechanical.

it's always mechanical.

23 hours ago
TheOwlHypothesis

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

Source: SWE/DevOps/Platform Engineer

22 hours ago
cptbstrd

Add nuking the docker volumes to your `make clean`

22 hours ago
Brahminmeat
:ts:

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

22 hours ago
Feisty_Ad_2744

hardcoded date, race conditions, error handling...

22 hours ago
Vimesito

then it's the cache thing

21 hours ago
Garrosh
:cp:

Somebody has screwed up the pipeline. Again.

20 hours ago
NixPlayer05

And that's why version control exists

20 hours ago
braytag

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

19 hours ago
cobaltcrane

Must be a Salesforce thing

18 hours ago
akoOfIxtall
:cs::ts::c:

Ngl some of these never happened to me and I fear the day they will...

16 hours ago
HuntingKingYT

Plot twist: It didn't work yesterday, it just ran the old build

15 hours ago
AHumbleChad
:cp:

Jenkins 😡

15 hours ago
baltimooree

I was in a hackathon. I migrated ny code on day 1 end. It freaking broke everything ffs. 😐

Day 1 took me 5+2 hours for design, development, deployment. Day 2 took me 6+1+1 hours, the deployment errors + the integration + enhancement. It still was shit. Day 3 which was after the end, took me 3 hours to make it fully functional again.

9 hours ago
AhmadNotFound
:cp:

The source engine in a nutshell

6 hours ago
nextlvljsdev

My friend had a similar problem, turns out he forgot to use the virtual env I've set up.

2 hours ago
savex13

Yesterday it was on a local workstation, today it is on prod :)

1 hour ago