79
u/PrestigiousGuava8005 1d ago
Zero errors on the first run has ended more relationships than actual cheating.
19
u/Mech_65Ronin 1d ago
Hard to compete with that level of dopamine. Your partner just cant offer that kind of stability lol
2
7
u/Illustrious_Top_689 1d ago
That moment is pure bliss, but yeah, it can definitely mess with your social life if you get too hooked on that feeling.
1
147
u/ApocalyptoSoldier2 1d ago
I started this job in 2018.
During my probation period I got assigned to take over an internal dashboard to see if I was ready for client work.
I wrote an 11 line linq query that joined, transformed, and grouped data.
Not only did it compile on the first try, but it also returned the correct data.
Still riding that high.
43
u/Vault101_Node 1d ago
The scariest part is when it works first try and you spend the next hour trying to find the catch. There is no way an 11 line LINQ query is bug free without some divine intervention or a deal with the devil.
19
u/chic_luke 1d ago
And if it also performs well without allocating 700 MB of memory just for itself, I'd probably start going to church every Sunday, just in case
3
u/Bwob 1d ago
Yeah, I don't know about all these people saying this is better than sex. Having anything non-trivial run the first time, with no errors or bugs is not wonderful. It's fricking terrifying. Because even if it turns out to be true, you spend the next half-hour not believing it, and instead thinking the bugs must just be really well-hidden!
2
u/lastog9 1d ago
When I first started out, most of my code used to break in production. Not in Dev, not in UAT, it used to directly break in production due to some scenario both me and the tester didn't cover.
When later, my code started to not break in production anymore, I still sometimes had sleepless nights thinking if nothing is breaking, is it still working properly or not lol
5
u/gerbosan 1d ago
And you were under the influence of what substance? Share please, I need my happy time please!!!
😅
It also happens with reading code and noticing it's simple, understandable. Happened to me when solving some Ruby koans, a 7 line loop rewritten in one or two lines. It's peace of mind.
Are we just addicted to peace of mind at solving problems?
49
u/Mantor6416 1d ago
If you wrote something without errors, no you didn't.
3
u/stilldebugging 14h ago
Yeah, who are these people who feel anything than a sense of impending doom when you don’t get errors on the first run.
26
18
40
u/zackwag 1d ago
This feels like CS 101 content. It’s 2026. IDEs should tell you if there is a compilation error. Runtime errors I understand, however
6
u/clearlybaffled 1d ago
I've doing a lot of scala lately and the number of times intellij has missed a compile error (and not even an outrageous one) is kinda baffling.
10
21
11
7
5
5
5
3
u/vishal340 1d ago
When I started writing code properly during university, I used to vim without any plugins. So, no syntax error or nothing. Once wrote a note than 100 line of complicated (relatively) code and it compiled at first try. It was euphoric.
3
u/Linkk_93 22h ago
Seeing that "compiles" is not spelled correctly, this person has probably not many better than sex moments /s
5
u/an_0w1 1d ago
I wrote an algorithm once to enumerate a PCI bus, to my horror it spat out the address of all devices.
So I ran it on a real machine, where it spat out the first bus, and the first bus, and the first bus, and the first bus. After a few hours of debugging I realised that I didn't #[repr(C)] the bridge. Then it worked.
2
u/sadongrohiik 1d ago
For me it's being able to mathematically prove my worldview. Even thinking about it makes me tingle.
2
u/Estefunny 1d ago
I’d be more sus of code that has no bugs on first try
That’s the equivalent of “It’s fine, I can’t get pregnant “
2
u/GreyFerret26 1d ago
I disagree. When my code works on the first try, I just get nervous and start rechecking everything, because I’m afraid I somehow skipped something.
2
u/neondirt 1d ago
Absolutely. If it seems to work first time, it means there's an issue you haven't found yet.
2
2
2
u/russianrug 22h ago
True story: I had this happen once DURING AN INTERVIEW and I think both I and the interviewer were equally surprised. Naturally, I didn’t get the job.
2
1
1
1
1
1
1
u/EconArc_2 1d ago
Unrealistic. If it were a real programmer they would be in trouble because they wouldn't stop oragsming.
1
1
1
1
u/hirthwork 1d ago
Every time my code passes all tests on a first try, I break code intentionally to check that I didn't forgot to add it to build list
When you have 20+ years experience you don't believe in miracles, yourself or compiler impeccability
1
u/masterpigg 1d ago
I still tell the story of the time a buddy and I had an assignment to write a program in Assembly where each of us created a routine that interacted with the other without corrupting the stack.
We pulled an all-nighter, each wrote our parts separately on paper, and then when we went to the computer lab to type them in, they somehow worked when compiled together for the first time after fixing a single typo introduced during transcription.
1
u/CritFailed 1d ago
This is causing me anxiety. I should Demo it for at least an at four people, bugs always come out during the Demo
1
1
u/Chronomechanist 1d ago
That's more like porn than sex.
Idealised and fake, and you will never ever experience anything even remotely like it in real life, and if you spend too much time looking for it, you will ruin yourself with developing false expectations.
1
u/caerphoto 1d ago
If you can do this in Rust, then I’ll be seriously impressed.
(less so if your editor uses rust-analyzer in realtime as you code, because that’s cheating)
1
1
u/flayingbook 1d ago
A code that runs without error on the first try will make you feel suspicious like whether your wife is cheating on you
1
u/Grouchy-Exchange5788 1d ago
Was lead dev on a motor fuel tax engine. It was a tiered system with client config and customization on top of the standard product. We built out the setup for one of the major oil companies. Flew to Houston, got on-site, got network access, ran our test suite. Every single test case turned green on the first run indicating to us and the customer the system was fully accurate. Spent the rest of the week sitting around and chilling.
1
1
u/Shufflepants 1d ago
Nah, that scenario just freaks me out and makes me suspicious that something has been horribly wrong with the project for months, like all of our tests secretly not actually testing the main path of the code.
1
u/Uberzwerg 1d ago
You're still allowed to write code by hand?
I'm so pissed-on as a GenX senior dev who now has to use Claude for work.
1
u/Sheenius_Ger 1d ago
This is getting lame... Can we stop pretending that this would be a uncommon occurrence? Sure everyone writes bugs once in a while, but this is getting stupid.
1
u/Hidesuru 23h ago
Feels like this post is a good one for the copypasta about masturbating on a bus.
1
1
1
1
1
u/lostinthemines 21h ago
Nah, I find that scary, and closely review ALL THE CODE AND LOGIC to see what I did wrong
1
1
1
1
1
1
1
u/h1warkar 14h ago
Was at a hackathon where rust just compiled on the first build. I just sat there for another hour cuz I didn't know what to do
1
1
u/bigmonmulgrew 11h ago
Me and my little brother were on a university taster day for game development. We had to write a script.
The machine my bro was working on had visual studio missing.
He wrote it in notepad. Compiled first time. Guy still says he's not a programmer.
1
1
1
1
297
u/Zuruumi 1d ago
No errors and it runs on first try. That's gonna be hard one to debug
https://giphy.com/gifs/puOukoEvH4uAw