Nice Guys Finish Last
Saturday, December 20th, 2003 09:21 amSweet. Two semesters in a row with an all-nighter finishing stuff up... after the semester officially ended. Fortunately, I shouldn't have to pull another all-nighter for a good long time.
But not only did I write an entire assignment on shading in 12 hours, including a 3 hour break for Irish music, I also wrote an entire ray-tracing assignment (using the same shading routines) in five hours. But now I have the starts of a ASCII ray tracing engine. And the code is fairly clean. Cleaner than when I spent two weeks on-and-off writing assignments.
Oh, and the following C feature can suck a sweaty potato: If you don't declare a function before you use it, it's assumed to return an integer. So if it's supposed to return a double, it may (in the one offending file only) always return 0. That was a good 30-45 minutes wasted.
But not only did I write an entire assignment on shading in 12 hours, including a 3 hour break for Irish music, I also wrote an entire ray-tracing assignment (using the same shading routines) in five hours. But now I have the starts of a ASCII ray tracing engine. And the code is fairly clean. Cleaner than when I spent two weeks on-and-off writing assignments.
Oh, and the following C feature can suck a sweaty potato: If you don't declare a function before you use it, it's assumed to return an integer. So if it's supposed to return a double, it may (in the one offending file only) always return 0. That was a good 30-45 minutes wasted.