Sunday, 5 April 2015

Concepts of Object Oriented Programming

Seemingly forever ago, about the turn of the millennium, i attended a high school where I was taught C++ by an ex-TTC systems designer.  He militantly drove the tenants of this new (to us) Object Oriented Programming into his class.  He was appalled at the condition of my peers goto statements, and our overwhelming lack of decent professional laziness.

Mr. Little, went on to show us that the compartmentalization of code made it easier to read, easier to understand, more powerful, and primarily: shorter.  Showing how one could build up a library of tools that one could use to challenge just about any task and how, with due consideration, in the future only the barest amount of effort would be needed to maintain it.

I also vaguely recall talk of hunting down people who made code purposefully more cryptic..

That was the first computer sciences course i had taken that taught more than typing.  The idea that people survived in coding prior to OOP is still somewhat shocking to me.  Modularity is good.

Impressions of tracing recursion

Tracing recursion was one of the most aggravating tasks we have been put to in this course.   Every time I thought I had it, i would then trace too much, or worse still,  to little, and thus miss steps.

It was, thankfully, as equally fruitful.  Once one had made it through.

In general call oriented tracing is very illuminating for learning an algorithm or process in computer sciences as it forces the person to behave in as rote as possible a manner; forcing them to confess all the work they would normally take for granted.  Furthermore the concept of tracing only so much into the past captures the idea of encapsulation in recursion.

All in all, a frustrating but fruitful exercise.