Thoughts while dozing lead to easy steps toward seemingly difficult goals. Niagara Method FTW. Often, as I try to get to sleep at night, or before I’m ready to roll out of bed in the morning, I think about the code I’m working on. I don’t think much about the details, because the details change every day and I don’t even try to remember them. I think about what the code does, how it does it, and how it might do it. I often fall asleep doing this. This morning, resisting getting up quite yet, I had what I think is an important insight: The thing called Cell may not be a Cell at all. It is more likely an Address, a Location, a CoordinatePair, a Point … Address being the word that first came to mind. Now, somewhere in the articles about this little dungeon exercise, I’ve commented that I really wanted a Vector class, to deal with the arithmetic involved in finding neighbors and offsets and such. I resisted writing one or importing one: it just didn’t seem to be the right time. Now isn’t…
No comments yet. Log in to reply on the Fediverse. Comments will appear here.