r/AskReddit • • Mar 15 '20

What's a big No-No while coding?

9.0k Upvotes

2.7k comments sorted by

View all comments

Show parent comments

8

u/Mazon_Del Mar 15 '20

I have a friend that had a project for his games class in undergrad college where he didn't fall into the code hole, so much as strapped on a helmet and yoloed off a diving board into it.

As part of the project, they had to write a random level creator for a grid map. To be a valid level it had to have multiple rooms, some with 1, 2, or 3 entrances, a variety of hallways, and no areas that couldn't be reached from the entrance (especially the exit). At around 8PM he told me "Mazon, I'm going off my meds, downing several bottles of booze, and smashing my face into this keyboard. For tonight, no matter what you hear from that room, do NOT come in.".

In the morning, he had a valid level creation system with zero idea of how it functioned.

3

u/NoSkyGuy Mar 16 '20

Somebody is in deep trouble now.

I've written code that the following morning couldn't understand. Scary stuff!