Thursday, January 12, 2006

OO Fanaticism

As an old timer, I learned computing before the reign of Object Oriented and it is hard for me to get there. However, as oposing to the stupid Lisp that was and still is a bad idea, I do see how OO is actually a very good idea. It is important concept and should reign supreme in the programming world. I use objects when I need them and when available. What I don't like and don't appericiate is the OO fanaticism. You look at python and Ruby and everything is an object, no primitives need apply. You look at Java and C++ and while primitives are allowed, evrything else must be encapsulated in a class.
What does one have to do when all this encapsulation layers stand between him or her and what he or she wants to do. Before I can program, I have to encapsulate it, before I code what I positicely want to do, I have to throw and catch what I don't want to do and so on. Well, this is fine for full fledged programs or packages, but they want me to do that when I code even a simple script that, let's say, read a text file, parse it to certain tokens and write a comma delimitted file. In order to prevent me from reading and writing, they invented Newspeach in which the verbs read and write do not exist anymore. Instead, you persist an object! But I don't want to persist an object, I rebel against this Newspeach and I want to write a line of text.

0 Comments:

Post a Comment

<< Home