Building Up and Looking Back:
This week, I'll be looking back at a post I wrote, and examine how I could improve upon it, and how my views of the course of changed.
Due to that, I'll be reviewing my post that deals with troubleshooting, seen here.
I chose this post, because it represents a skill that I think that will always be useful in this discipline.(even if we don't do it in the way I described in the course.)
So, in that regard I would agree with past me. I would disagree with past me in that printing every step of the way is an efficient method later on when we're throwing large amounts of data around.
When you have to slog through that much data to find one small error, and then go find the code that produced the wrong result, and then spend a ton of time trying to bugtest? It's horrible!
(Interestingly enough, while printing a play-by-play is effective for small problems, it becomes much worse the more complex the code you have. It's like Big O!)
That's why another post of mine, last week's post on doc tests is the other article I'm going to reference. The doctest post, in theory, is quite similar to my older post on troubleshooting.
However, if each function has a doctest, it's very easy to figure out where a problem is localized, since upon running we're given a notification saying where the issue is.
It's quite interesting, since this is the biggest part of learning; adapting the old things you knew, and refining them for future usage. I feel like my classmates would all agree on that, regardless of what post they're comparing or what knowledge they're comparing.