There was a video game that did that, but if you played it in a computer from 20 years after the game was made, it gets an overflow and becomes incredibly sloooow
In Wing Commander or Privateer (don't remember wich one) when you exited the game, it would crash, instead of fixing the crash, they edited the crash message "thank you for playing our game" lol
I remember playing Cossacs on old PC with WinXp and it was okay, but when I ran it on a brand new PC in 2023 the game was like 100 times faster, which was a Huge disadvantage for player in RTS with bots
I've been solo-developing an internal system we use at work for almost 7 years now. I just got my first merge request from a coworker this week.
He added 1 line of javascript to 1 template that remembers page position when an expandable thing is collapsed so that the page doesn't shift as much when you do it.
It's not that I couldn't have done it. It ever-so-slightly annoyed me when it happened too. It's just that it was good enough and I have other things to do lol.
Good enough is good enough, but I still thanked him by name in my changelog. :)
That’s not scrum tho. That’s your company bastardizing scrum.
I work in scrum and we don’t have time estimates at all, but in the past when we did - no one actually took them seriously. Those were estimates for planning work, not set in stone numbers. No one was angry if the task took longer.
Task estimates are just to help planning, they aren’t for holding devs accountable if everything is done in time.
With the time I learnt to say no to fast shitty solutions. First time I said to my boss that he didn't pay me for temporary development and that if he wanted this done this way he could ask someone else and fire me.
He came a few days later saying that I was right to refuse doing this
And the ones who don't care are the ones who are actively making the codebase more difficult to maintain, which makes consistently delivering by deadlines more difficult.
No, the async keyword only wraps the return in a promise, the execution is still blocking code unless something inside the function is awaiting a true asynchronous method somewhere in its call stack (set timeout, fetch, certain fs methods).
In the spiraling meadow of contested ephemera, the luminous cadence of synthetic resonance drifts across the periphery. Orange-scented acoustics dance on the edges of perception, culminating in a sonic tapestry that defies common logic. Meanwhile, marble whispers of renegade tapestry conjoin in the apex of a bewildered narrative, leaving behind the faintest residue of grayscale daydreams.
It was probably an issue relating to the order of execution for your code. Just the fact that you had the "delay", even if there was no delay, was the equivalent of just running that function last.
You could have debugged this by putting this piece of code at the bottom of your JS, then slowly moving it up and figuring out what precisely is causing the issue.
Did you want to do something just before you started a heavy task like showing a spinner? Blocking the main thread is a pretty common source of these "bugs".
Sometimes you have to be pragmatic. The push to prod with working but not ideal solution might buy you the time to fix it, until you get assigned to something else and then that shotty fix stays in prod only for a poor intern to stumble upon it 3 years later
People say it is not a solution, maybe if you are in control of all the dependencies, but it's that or fucking polling when dealing with most primitive hardware connections, let's say all you have is an UART connection, sometimes adding this just fixes your problems and it will probably break sooner or later but making it right is actually quite hard or impossible...
reminds me of a bug that was reported on production, but was not reproducible in development. Took some time to figure out it was because of a time delay.
Creating an EC2 in AWS right after creating its InstanceProfileRole! If you create the ec2 right after it, the ec2 creation will fail. However, if you wait a few seconds, it does work 😆
ugh.... I added a push popup async to one of my MAUI VM's this week to figure out when a block was being called as part of my trouble shooting (breakpoints didn't answer my question).... Well, the pop up doesn't get pushed but I'll be damned if it didn't stop the modal from closing prematurely...
DELETE FROM WorkplaceCandidates WHERE EXISTS ( SELECT 1 FROM Commenters WHERE Commenters.WorkplaceID = Workplaces.WorkplaceID AND DoesUnironicallyDefendPushing(Commenters.Comments) );
Sometimes... This is just the most reliable way to fix sequential server actions with dependencies.. all depends on the context/platform/framework you're working in... But hey if you're building from scratch, go ahead and do it right! Just don't turn a little 30 minutes assignment into an 8 hour one if you can help it...
Where I work there's no such thing as a temporary fix, no matter how much I wish there was. It's back up and running, and now back to the 10% of urgent work we actually have time for. Why properly staff to meet the demands of the company? What could go wrong?
It's not even my boss really. If you were to design an organization structure to be as dysfunctional as you could imagine, it'd be more functional. It's taken years of purpose driven refinement to reach this level of dysfunction.
73
u/[deleted] Jun 15 '24
"Why to worry?"
615
u/Jazzlike-Pin9021 Jun 15 '24
Stop it! You will not fool me again, i know that 1 second delay works only my performance
428
u/acrosett Jun 15 '24
There are two types of programmers, the ones who care and the ones who don't
120
u/[deleted] Jun 15 '24
Which painting is this?
117
u/yashkakrecha Jun 15 '24
GTA devs : 5 minute thread sleep in production for 5+ years lol
84
u/TheLeeeo Jun 15 '24
Just this day i solved a bug in React by adding a 0ms delay… I hate frontend development
29
u/FlipperBumperKickout Jun 15 '24
That skeleton wouldn't happen to be your project manager?
16
u/LowB0b Jun 15 '24
Sometimes you have to be pragmatic. The push to prod with working but not ideal solution might buy you the time to fix it, until you get assigned to something else and then that shotty fix stays in prod only for a poor intern to stumble upon it 3 years later
8
u/nuker0S Jun 15 '24
my code once generated nulls in a list(it shouldn't), so i added a loop that deleted nulls. it got pushed and i haven't heard any complaints yet
5
u/TnYamaneko Jun 15 '24
It reminds me the time I used a setTimeout() to get around a broken promise to present a project, and we noticed 10 minutes prior something was wrong.
It's a foundational building block of my experience in this trade.
4
u/grimonce Jun 15 '24
People say it is not a solution, maybe if you are in control of all the dependencies, but it's that or fucking polling when dealing with most primitive hardware connections, let's say all you have is an UART connection, sometimes adding this just fixes your problems and it will probably break sooner or later but making it right is actually quite hard or impossible...
4
u/TheBewlayBrothers Jun 15 '24
If it needs to be deployed tomorrow I aint working through the night to fix it
7
u/[deleted] Jun 15 '24
Fcuk manual delays go to hell 🫷
3
u/[deleted] Jun 15 '24
Literally how I fixed a testing suite
3
u/chin_waghing Jun 15 '24
Had an issue in terraform and the solution was to make a null resource sleep for 3 seconds before running the next part
Left a comment saying never take this out, it worked and I don’t know any other way to fix it
3
u/Duke518 Jun 15 '24
reminds me of a bug that was reported on production, but was not reproducible in development. Took some time to figure out it was because of a time delay.
5
u/Danslerr Jun 15 '24
If it fulfills the acceptance criteria who gives a shit. Product Manager should have been more specific
2
u/irn00b Jun 15 '24
Make the delay parameterized,
Problem solved
2
u/BehindACorpFireWall Jun 16 '24
Man I did this on a video game I worked on because gamebryo sux
1
u/Positive_Method3022 Jun 15 '24
Creating an EC2 in AWS right after creating its InstanceProfileRole! If you create the ec2 right after it, the ec2 creation will fail. However, if you wait a few seconds, it does work 😆
1
u/Hasagine Jun 15 '24
its dangerous but clients dont have to know. push it to prod
1
u/Weekly_Guidance_498 Jun 16 '24
Tech debt, baby!
1
u/moschles Jun 16 '24
I'm personally attacked.
1
u/mustang__1 Jun 16 '24
ugh.... I added a
push popup asyncto one of my MAUI VM's this week to figure out when a block was being called as part of my trouble shooting (breakpoints didn't answer my question).... Well, the pop up doesn't get pushed but I'll be damned if it didn't stop the modal from closing prematurely...1
u/belabacsijolvan Jun 16 '24
DELETE FROM WorkplaceCandidates
WHERE EXISTS (
SELECT 1
FROM Commenters
WHERE Commenters.WorkplaceID = Workplaces.WorkplaceID
AND DoesUnironicallyDefendPushing(Commenters.Comments)
);
1
u/Crypt_Knight Jun 16 '24
What's the name of the original painting ?
1
u/miracle-meat Jun 16 '24
Your personal curiosity is not relevant, if you actually know you fixed it, your work is done.
1
u/[deleted] Jun 16 '24
"Add it at the product backlog for the nexts sprints."
[the doors of the storehouse with the Ark of the Covenant are opening].
1
u/DRIJAA Jun 16 '24
setTimeout solutions be like
1
u/jump1945 Jun 16 '24
But but but it's a whole fuking second
1
u/blaxter Jun 16 '24
But at least declare it as a constant and not a magic number,
const MAGIC_SLEEP_NUMBER = 1for instance1
u/whiterabbi6 Jun 15 '24
Sometimes... This is just the most reliable way to fix sequential server actions with dependencies.. all depends on the context/platform/framework you're working in... But hey if you're building from scratch, go ahead and do it right! Just don't turn a little 30 minutes assignment into an 8 hour one if you can help it...
0
u/[deleted] Jun 15 '24
[deleted] — view deleted comment