Skip to content

Instantly share code, notes, and snippets.

@mayankkushal
Last active February 21, 2017 14:32
Show Gist options
  • Save mayankkushal/b1c91394beeb92d2392abe4d9f6d2085 to your computer and use it in GitHub Desktop.
Save mayankkushal/b1c91394beeb92d2392abe4d9f6d2085 to your computer and use it in GitHub Desktop.
Most challenging experience
Writing about the most challenging experience is the most challenging experience.
In the small amount of time that I have been working with all the technical things, I think there is a challenge in whatever new project you start. What seems very challenging at that moment, seems very trivial once the problem is sorted.
So, I was making the classic snake game, the game where the snake eats berries and keeps growing and dies if it hit the wall. I finished writing the code, compiled it. 0 errors. Yes, 0 errors.
That is something impossible, but I thought maybe, just maybe, I was going to be the next coding genius. So with hopes all high and ego inflated I ran the program and BOOM, nothing worked. Nothing at all.
If your compiler gives you an error, consider it a blessing because you have some idea where the error is at. But if the compiler doesn't give any error then your nightmare begins. So, with no idea what was wrong I started searching for errors in the program.
Days went by, I couldn't find any errors. My hopes and ego coming back to its place. Finally one fine day, I found the error. It was sitting in the main event loop of the game. An error so shameful, I couldn't even look at myself in the mirror and say that I code.
It was the king '='. Instead of using '==' to compare I used '='. *Ashamed*
So, no coding genius.
PS
Maybe you wanted more technical answer or maybe not. But late at night this is all I could think of. Most Challenging experience.
Thank You.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment