Being my first programming language, I initially did not have that great of an understanding of what it means to be an object oriented language. Of course, I understand the concept of objects becoming tangible instances of the abstract classes and functions we write and how these can be stores as variables to store or manipulate data (probably wrong on a technical level, but it makes sense to me for now).
However, recently out of boredom I decided to look into the process of designing an app for iOS. I'm not sure if I'll ever design one. I was just curious. To my surprise, Apple's new programming language (related to Objective-C, if I remember correctly), Swift, is already entirely intuitive to me. There are a few different conventions, such as declaring variables by prefacing the new variable name with "var" and I'm sure there are many concepts unique to app or program development that I have no conception of yet. But everything I learned about defining functions, classes, methods (including special methods), heritability, and so on translated effortlessly. What took me a full half course and part of CSC148 to learn in Python took me an hour to learn in Swift. Even though I lack the truly intuitive understanding of OOP and its relationship to other styles of programming, it's clear to me now that the concepts that make it up are easily transferable between languages.
The prompt this week is particularly vague and I think I lack the perspective of being fluent in non-OOP languages to really appreciate the concepts of OOP. However, it seems like, in a nutshell, the idea of OOP is to create robust 'structures' (or objects) such as functions, classes, and methods, to be as diverse and useful as possible for a variety of scenarios. When specific problems are needed to be solved, concepts such as heritability allow us to focus in on these situations without losing the more broad schematic (basically, superclasses and subclasses). This sort or preparation on what to keep abstract and what to define later one is very interesting to me and I can imagine it being all the more important as our assignments and problem solving becomes more complex and larger in scale.
No comments:
Post a Comment