What If I Don't Actually Like My Users?
Posted Apr 4, 2008 21:42 UTC (Fri) by
jzbiciak (
✭ supporter ✭, #5246)
Parent article:
What If I Don't Actually Like My Users?
Whoo hoo! I see fputs made the list. It's in the family of functions I complained about last week.
Some years ago, I wrote a bunch of code that treated the VT-100 display as a "frame buffer." You'd doodle on an array representing the screen, and then you'd call an update function to refresh the display. Nothing too earth shattering. My intention was to get the C code working, and then whittle it down into a tiny graphic hack as an IOCCC entry.
Well, the IOCCC entry never happened, but I found myself instead using the code for more and more things. I threw all sorts of stuff into the stew. The resulting code was a nightmare, particularly on the topic of coordinates. I had no fewer than 3 separate conventions:
- (x, y) with zero based coordinates
- (x, y) with one based coordinates
- (row, col) with one based coordinates
Oy. Thankfully I can say that was almost half a lifetime ago for me.
(
Log in to post comments)