I continued working on the Object system today. After seeing Keenan's post on the forums regarding the node destroy, I went back and edited mine to account for its children and siblings. I haven't tested this yet as I am not finished with tree, and feel that it would take too long to write a stand alone test for this. Maybe I'm wrong though. I still don't always know the balance between testing and not testing, or in this case, knowing when to test.
I made my tree create which is now in charge of creating the root node. My destroy for tree is kind of crazy. I drew a small picture that doesn't express all of the potential situations very well and went off of this for my first run. I know that the logic is not all there yet as I was going off of my linear thoughts as I programmed. Tomorrow, I'll draw a nice tree out on the white board in the lab and walk through it, pointer by pointer. This should take care of more than the destroy, but rather the entire structure of my system.
I really hope that I'm on the right track with this. I feel good about it and like I'm ahead of where I'd normally be. I hope to be done well before the weekend and make this the pace for the rest of the quarter, but we will see! Tomorrow is a new day and a new opportunity to get this working as I intend! Also, no more Perforce issues thankfully;-) Hopefully, Keenan won't tell me that I'm missing a file on the day that it's due because I mis-clicked something though. Until I re-familiarize myself with it again, I'll have that little nagging concern in the back of my mind. Oh well, c'est la vie, you live and you learn.
No comments:
Post a Comment