So, the term test this morning went as well as I possibly could have hoped. I consider this as much a stroke of luck as an effect of diligence, but I'm glad nonetheless. Though I feel comfortable, I don't want to grow complacent, so I am going to revisit A2 over the next week or two and attempt to find a full solution, due dates aside.
To flesh out this entry and in light of the content of the test, here are some general thoughts on recursion:
In short: seriously unintuitive, completely logical, difficult but workable. When recursion was first introduced earlier in the course I had some strange impressions: I found the examples given in lecture to be elegant and straightforward, but trying to apply the concepts in labs and exercises nigh on impossible. I suppose this is partly due to my previous follow-the-answer approach to authoring code - I tended to trace the execution in my head, because I hadn't come across anything complicated enough to make that impossible. After a few attempts at recursive reasoning this gave way to a more abstract view, considering only the actual datum/data a function would return and not how it had been computed. I feel like this change in perspective has seriously helped me as a programmer and will easily carry into new topics.
Cheers until tomorrow!
Showing posts with label resolutions. Show all posts
Showing posts with label resolutions. Show all posts
Wednesday, November 13, 2013
Monday, November 11, 2013
Nov 11: Better late than never, object-oriented programming
Despite having badly neglected this slog, I intend to post daily about both old and new topics in the run up to the end of term. To start, I will write a little about object-oriented programming.
Though I'm no expert on programming languages, it seems to me that object orientation is a feature which allows a language exponentially more power (in one sense) than the alternative. The ability to define one's own functions and classes creates the potential for infinite abstraction, to the point where any higher-level problem can be solved with enough planning and code. While sometimes I find this abstraction very challenging to wrap my head around, the idea behind it is attractive. Furthermore, the simple modularity of this paradigm is aesthetically and logically pleasing. Though my aspiration as a programmer is to write code which is as modular and straightforward as OOP might seem to be inherently, I will sometimes attempt to solve problems by brute force or trial and error (I'm only human). To me, this is a shortcoming of OOP: it allows for lazy work to sometimes get the job done, where elsewhere more careful planning would be necessary (I imagine, again, I don't know much about other language types).
Thanks to this little meditation on OOP, I resolve going forward to plan out my code more carefully, from the top down.
Thanks to this little meditation on OOP, I resolve going forward to plan out my code more carefully, from the top down.
Subscribe to:
Posts (Atom)