Tuesday, October 27, 2009

Object Oriented (OO)

I like object oriented analysis and design, and presumably that means I like object oriented programming (OOP). OOP automates a lot of best practices in procedural programming. It forces modularity. Objects are practically modules already. It forces permissions management. Attributes and methods need to be declared private or protected, and occasionally public. You didn't really need to do think about setting permissions besides execute with modules hanging out in files, but you should have.

All in all OO is a good thing. Of course the thing I like most about it is that it really lends itself to a puppet show and using the word magic. The magic inventory item walks on stage and requests to know where it is and how many friends it has there, having been asked by a talking window that can only ask such things when it calls itself someone who is allowed to asks such questions. The magic window itself knows that it is actually just relaying the message from someone who not only is permitted to ask such questions but knows the secret key phrase that proves they are who they claim to be. The window doesn't actually know the secret word jumble but it brings along the magic lock's grandson and he, being a magic lock of sorts himself, knows all about secret keys, but especially about secret keys his buddy the window needs to know about. I am really thinking about starting a non-profit that promotes using cartoons and puppet shows as part of a comprehensive object oriented design methodology.

No comments:

Post a Comment