I turned up the font size I use in VSCode tonight.
Why ?
Because I spent the last two weeks trying to run down a bug with weirdness in redrawing items in a game port I was working on.
It was a capital I instead of i (both are in scope, I is a global) in the red box... 🤦♂️
#inthedark #c #C64
Mark Gardner
in reply to Walker Boh🛡 • • •It could be worse, you could have had a variable named l in there too.
Single-letter variable names for anything but throwaway iterators are terrible: wiki.c2.com/?SingleLetterNamed…
Global variables are bad too: wiki.c2.com/?GlobalVariablesAr…
Walker Boh🛡
in reply to Mark Gardner • • •@mjgardner yeah I know on both counts. This is 8 bit cross compiled code on a space budget, so some static global for state are a necessity.
The capital I was defined in an include file by mistake, and the lower I was supposed to be a throwaway iterator.