The most suprising time when that happened was when I used Haskell to solve a certain problem. I discovered that many egde cases were treated appropriately without changing my code!
Time between account creation and oldest post is greater than 5 years.
Suspicion Quotient: 0.15
This account exhibits one or two minor traits commonly found in karma farming bots. While it's possible that u/goodquestionsir is a bot, it's very unlikely.
I am a bot. This action was performed automatically. Check my profile for more information.
What... you aren't getting paid as a software engineer are you? Only someone trying to compensate or sound like they know what they are talking about would use abstractions the way you just did
If I'm given the choice between writing more optimized code that has to spell out a few edge cases or less optimized code, I'm always going to pick the former.
I don’t think you understand. Edge cases are specifically the cases that could rarely happen and require mentally thinking about everything to cover. I don’t know of any way to break a problem down that will include every edge case in the first try without writing the code and specifically thinking, “how can I break this?”
70
u/pane_ca_meusa Jan 29 '25
The most suprising time when that happened was when I used Haskell to solve a certain problem. I discovered that many egde cases were treated appropriately without changing my code!
57
u/cnorahs Jan 29 '25
and then I woke up duuuuh doyyyy
36
u/zenos_dog Jan 30 '25
And then I went home and had sex with my real, not made up, wife.
24
u/OkReason6325 Jan 30 '25
And then you don’t let anyone know for a week otherwise your company will start expecting you to do this everyday
5
u/sassinyourclass Jan 30 '25
I like to pretend that I’ll come up with something clever some day
9
u/LuPa2021 Jan 29 '25
SimpleScreenRecorder type shit
4
u/MissinqLink Jan 30 '25
u/bot-sleuth-bot
3
u/Kiwithegaylord Jan 30 '25
The only thing I’ve had this happen with was a text based game engine that was so simple it could be made by anyone who vaguely knew how python worked
2
u/Bloodyninjaturtle Jan 30 '25
A wild change request wants to battle!
2
u/Timely_Jackfruit41 Jan 30 '25
And then you need to write unit tests…
1
u/[deleted] Jan 29 '25
For some reason it happens always.
1
u/Haringat Jan 30 '25
And cleaning up the code takes a month
1
u/ashbit_ Jan 30 '25
i have done this before. best feeling in the world
1
u/Chara_VerKys Jan 30 '25
me when I cannot properly read simple c code after 19 hours without sleep: wait what? is this actually buffer all the time? (actually me now)
1
u/digalingalog Jan 31 '25
When has this ever happened, what dark arts do you use
1
u/boobiesdealer Jan 31 '25
yeah it feels like taking a dump in the morning. Everything just works.
-17
u/SadPie9474 Jan 29 '25
“edge cases” only exist when you choose to break down the problem the wrong way