Write your story as if it just happened to you. Start with when today, last week, etc. Explain either what you were trying to do or the problem you noticed. Tell us what you realized when you debugged the problem and finally end with FMC (F my code).
Example: Today I executed a SQL delete query and accidently wrote ';' before my where clause. FMC
Example: Today my code suddenly threw exceptions about the date being invalid. After rebuilding, looking at diffs and general debugging i realize it was pass midnight. It is the end of daylights saving so in 40mins it will be midnight again. The IDE and platform was reporting my computer time as invalid. FMC
-
Today my code suddenly threw exceptions about the date being invalid. After rebuilding, looking at diffs and debugging I realize it was pass midnight. It is the end of daylights saving so in 40mins it will be midnight again. The platform threw an exception because my computer time is 'invalid'. FMC
4
F_() Your Code
4
You Deserve It
-
Today I posted some old PC code to an embedded system. The app and libs preallocated most of the memory in a fixed sized static array. After the code not working with printfs not appearing I decided to comment out the main loop. Suddenly all the printfs -before- that line appeared.
After contacting the compiler maintainer he asked us to compile with a flag and send the MAP file. He discovered our app preallocated >64k of memory. Although the system has 4MB of memory it stores all static memory in a special section which is 64k and has the rest of the memory for dynamic use. Because of the 64k limit and memory wrap. The memory was being clobbered when the binary loaded thus crashing before our main() executed. FMC
5
F_() Your Code
4
You Deserve It
-
Today I played around with encryption in .NET. My code appeared to be writing to a file correctly but not reading. I looked at the aes key buffer and saw it was completely different from mine. It was also non zero which made it appear I was filling the key BUT I WASN'T! I thought I read too much or too little. Two hours later I realized the Key is a property of an array. The entire time I got a temporary copy which I filled and completely threw away. All without a single error or warning. FMC
2
F_() Your Code
4
You Deserve It
-
Today in .NET I wrote a statement to check if a session ID matches an ID in the DB. It always returns false. Puzzled I looked at ExecuteScalar than learned that an object== a string does not check for equality :(. FMC
3
F_() Your Code
7
You Deserve It
-
Today I wanted to make rash changes to my code. I committed my code through a GUI frontend and left the room. When I returned I immediately made the games. They were bad enough I wanted to revert. Than I saw my SVN GUI window still open with SVN reporting a 'lock' error on my 1man project. FMC!
2
F_() Your Code
3
You Deserve It
-
Today I look into why my app was pausing for a second or two frequently. Out of laziness I pause/resume the IDE rapidly and happen to find it. strlen(sz) in a for loop isn't optimize to be call once. sz is >8k so it is going through >8k*>8k of bytes every time. It been like this a over a month. FMC
4
F_() Your Code
2
You Deserve It