First Impressions
One word: Recursion. Holy shit. Stuff messes with my head in loops like no other. Writing out a recursion flow chart thingy isn't too bad with the examples and all. Figuring out a recursion code without the docstring is a bit trickier, but writing recursion code itself is the stuff of nightmares. One trick I've found so far is to always keep in mind the original goal, as a function pertaining to counting or finding out the largest number will always have to come up. As usual, I suppose more practice should do the trick. If you have any other tricks...feel free to share them for the greater good of my sanity.
Other than recursion, the concepts in python haven't been too bad. Classes are okay, although I'm still not entirely too sure how to use them very effectively, particularly when it comes to assigning __str__ and __repr__. Sub-classes are neat, but I feel like I should probably be writing more code in the super-class and then inheriting it. Oh well!
Coding's been pretty fun so far, though admittedly it takes up time. At least it's rewarding when the code finally runs!
(-o-o-)
No comments:
Post a Comment