Quote:
Originally Posted by JustASpectator
I stumbled across a John Conway video on Youtube, and I had a flashback to my high school Qbasic programming class (so yeah, high school was a while ago for me). It was probably the coolest class I took in high school, because although we had a textbook, our assignments were basically to write what we felt were cool/interesting/useful programs and show them to the teacher. Sometimes we had some general guidance, but mostly it was up to us.
And I remembered that one of the programs I had written was a Conway's Game of Life simulator. And I remembered that it ran like crap, and I'm pretty sure I had some of the rules wrong also.
So today I spent a couple hours writing a working version from scratch in Qbasic. Which probably sounds like a painful chore. But it felt really good to complete something like that after all these years.
So after doing the above I've been bit with the retro programming bug. I had several Visual Basic 6.0 programs that were anywhere from partially done to quasi-complete, sitting untouched for nearly 20 years on my development server. I started them around the time I took a VB class in college, and these were just side things I wrote back then to make use of some of the things I was learning.
One was an Arkanoid type game, where I had some really funky collision detection between the ball and the blocks, resulting in the occasional "ball bounces off a block but the block doesn't disappear" type scenarios. Totally uncommented code, of course. And a Gosub without a consistent return, along with a block IF statement with a totally misplaced End IF that somehow still allowed the program to function. There was a lot of SMH going on when reviewing it... So the first thing I had to do was figure out WTF the code was doing, and then I wiped pretty much everything out and rewrote it in a much cleaner way, and got it finished. Felt pretty good.
Next was a game of Mastermind where I had it pretty much done, except I didn't have code to start a new game, and I didn't have a drag icon set for when you drag a peg onto the board, and the peg graphics in general were effed up and needed to be redone.. Minor stuff, but good to get it done.
The final one was a Minesweeper clone. I can still remember where I was sitting when I started this program in class, but I got stuck trying to work through the logic of, when a user clicks a box that has 0 neighboring mines, go through and uncover all neighboring boxes that also have 0 neighboring mines, and also uncover the edges of this region. The inability to figure that out at the time caused me to give up on the program completely. So when I looked at it again a few days ago, I was in the same boat. But after a little bit of thought, I came up with a straightforward process to do this that I was able to implement. This one felt the best to complete, since it was essentially me figuring out something that had stumped me for 18 years (although I hadn't given it any conscious thought for probably 17.99 of those years).
Anyone else go back and work on unfinished programs from decades ago?