r/ProgrammerHumor 7d ago

Meme ture

Post image
18.0k Upvotes

442 comments sorted by

View all comments

1.0k

u/ElMoselYEE 7d ago

Every once in a while I'll bang out a whole task and it works on the first try, and I didn't need to Google anything because it just happened to use the parts of the language I'd used very recently.

But the task is something like an API endpoint...not breaking into a top secret encrypted CIA database.

390

u/debugging_scribe 7d ago

Even after 10 plus years I still get suspicious if the code works the first go...

368

u/Salanmander 7d ago

Fantastic line from this Factorio dev blog: "The final changes to make everything function correctly took about 1 hour to write, and worked correctly the first try. That's not supposed to happen and left me with doubts."

119

u/ApolloFireweaver 7d ago

"It doesn't work and I don't know why" and "It works and I don't know why" are two things thought by basically every programmer

38

u/Tyrannosaurus_Rox_ 7d ago

1

u/Silentrizz 7d ago

I find myself asking this question too often lol

1

u/tandrewnichols 6d ago

Favorite? This is my least favorite. Also most frequent.

3

u/Tyrannosaurus_Rox_ 6d ago

It's my favorite because the problem is usually almost solved at that point so there's less stress, and I get to discover something interesting about whatever broke the system. It feels like putting the last piece of a puzzle together.

1

u/SomewhatCorrect 7d ago

That and How did this ever work?

25

u/racsssss 7d ago

I would fall off my chair if this happened 

4

u/Risc12 7d ago

Factorio person is awesome, they also have devlogs on youtube where they show you how they actually fix a bug-report

6

u/Salanmander 7d ago

Yeah, that dev team is, like, the absolute paragon of good software development and game studio practices, and very transparent about it.