Folks,
We covered a lot of new material this week, but being UofT, of course none of us actually have anytime to completely familiarize ourselves with any of it!
But jokes aside, the idea of inheritance and recursion are so incredible!
With respect to inheritance, I think one would need to be very careful using this in an industrial strength code. It's very easy to see how inheriting a class that was defined 10,000 lines of code and then using it could seriously screw everything up. Though, I do believe that it is a Python particularity which allows for manipulation of inherited attributes/methods.
As for recursion! Such a time saving tool! It takes me a bit of time to trace through the program the first time till I am satisfied with my understanding of it. But once that is done, even a 7 year old could understand. Just copy-shrink to a smaller version-paste.
Cheers,
Slogging Along
No comments:
Post a Comment