Object Oriented Programming Oversold!

Well, me and one of my developer friend were recently jolted for a rather supposedly abuse of OOP; frankly to an addiction of some sorta geeky-ness in the Flash Development front. A veteran Flash developer commented and suggested, “make more …

Well, me and one of my developer friend were recently jolted for a rather supposedly abuse of OOP; frankly to an addiction of some sorta geeky-ness in the Flash Development front. A veteran Flash developer commented and suggested, “make more use of the controller. You seem to take a lot of functionality out of the Controller and keep it in the View classes which respond to Model changes. In a way it’s the right way to program OOP but as far as making it a logical way for future developers to work with your code it makes it take 10 times as long to find functionality that could just as easy sit in a controller class.”

There are lots of truth in that looking from a Flash development perspective. Me and my friends have been recently, thus, thinking a lot on the way we work, code and structure applications and trying to mend our ways before it takes a back-stage and start living in our own castles. I know we will come out of the cocoon, learning from it and perfecting our future adventures; and yes, here is a rather apt article, “Object Oriented Programming Oversold!“, for this threatening moment.

While you are there, you may click the other topic for your reading pleasure “Why I Prefer Procedural/Relational Over OOP and “OOP versus Rational“.


Don't like it? There are lots of published articles, pick a random one.

Brajeshwar posted this article on Sun, Apr 4th, 2004 at 7:23 pm
Categorized under Technology

Prev Article:

Next Article:

Archives: Visit the Archives for more articles.

Comments Post Yours

There are 2 responses so far. You can follow any responses to this entry through the RSS feed. You can skip to the end and leave a response. Pinging is currently not allowed.

  1. [quote]
    make more use of the controller. You seem to take a lot of functionality out of the Controller and keep it in the View classes which respond to Model changes
    [/quote]

    the thing is the seperation between view and controller as in classic mvc/mvp isn’t really necessary, and especially in Flash/ActionScript… where your view and presenter/controller are essentially tied to the movieclip.

    i follow a Model/UI archi (as in java’s Swing), with the UI dealing with both controller/presenter and view methods, and I find that a ton simpler and cleaner.

    granted, there could be (and in fact are) special cases where the separation makes sense, but for the most part, the supposedly loose coupling created as a result of separating them is just a facade… you just create a set of extra (and i’m even tempted to say uneeded) methods, which are inherently tied to the original methods in the veiw, in the controller/presenter.

    as to the merits of OOP/OOA&D… well its been belabored enough; i’m yet to hear anything that even comes close to being an argument… everyone who dabbles in our world, uses OOP/OOA&D and knows what he/she is about knows it is effectively a primitive in itself used to achieve other ideas such as those espoused in design patterns and the like. you also know OOP makes broad use of procedural/relational ideas… how else could methods/behavior be realized? as programmers we have to deal with the idea of ‘primitives’.OOP allows us to redefine what primitives are on a per program/project basis.

    if u do real OOP/OOA&D, you know what you’ve got… and you know it’s good … if procedural works for you, by all means, stick with it… not only that, write such articles as “OOP Oversold”… don’t forget to add the exclamation mark… who knows? you might even generate a good following ;)
    eokyere

  2. Hi Brajeshwar,

    I’m also at the point where I want to establish ‘best prectices’ before I rewrite all of my stuff. And I’ve had my doubts about the utility of OOP in Flash. It seems to create a lot of extra work. But then again, AS1 had its drawbacks too. 

    Having read through the various articles you linked to (“OOP Oversold”, etc.), I was intrigued by the concept of ‘Table-Oriented Programming.’ But frankly, I have no idea how it would work in Flash. Do you?

    You mentioned that ‘you and your friends have been thinking a lot about the way you work, code and structure applications.’ What have you come up with? Does Table Oriented Programming factor into it? I’d love to hear your thoughts.

    Thanks for the thought-provoking articles.

    Jim Kremens
    jimkremens@reelscore.com

Post yours

Sidenotes

Quick notes, scribbles, somehow related to this website and to what I do. Or perhaps I'm just plain lazy to make them into a full article.

12 Hottest Geek Girls on Twitter

So, you have seen the 12 Hottest Geek Girls (via Digg). However, they forgot to link them to their, hmmmmmm errrr, Twitter profiles so you can follow them. Or perhaps they felt -- they're popular ...13th Oct, 2009

Great Indian Developer Summit 2009

I got a Press Release of the upcoming GIDS '09 and here is an excerpt. The summit's program covers Java, REST, Unit testing, Groovy, Spring, Struts 2.0, SOA, Cloud Computing, Web Services, JRuby, RoR, Ruby, JVM, ...21st Jan, 2009

The flourishing gun market in Pakistan

VICE Travel: Darra, Pakistanby Top-Notch112 (Via: Deep Green Crystals) 20th Jan, 2009

Angry Ringtone for iPhone and others

[audio:http://audio.brajeshwar.com/angry-ring-ring.mp3] The ANGRY RINGTONE for iPhone. (Click the PLAY button above!) Download * iPhone Ringtone (.m4r) * MP3 Ringtone (.mp3) * Zipped (both .m4r and .mp3) To use it as an iPhone Ringtone; just double click the file "angry-ring-ring.m4r" and it ...15th Jan, 2009

IIM Ahmedabad's Leverage 2009

Leverage, the Venture Capital and Private Equity Club of IIM Ahmedabad and the Centre for Innovation Incubation and Entrepreneurship bring to you the 1st edition of the Venture Capital and Private Equity Conference on the ...12th Jan, 2009

View the Sidenotes Archive

Play the Penguin Game

Recommended

  • Downloads All downloads, Free and Open Source.
  • AS 2.0 Reference Reference for ActionScript 2.0 Programming Language used in Flash. Primarily stashed here for my own personal reference.
  • ActionScript 3.0 Reference Flash/Flex ActionScript 3.0 Reference.
  • o! Just Me Of colorful cultures, entertainment, media, life hacks, music, books and movies from hollywood & bollywood.
  • Not Safe for Work Ever clicked a link and felt embarrassed with the content in front of your co-workers? Ever caught unaware because the funny link your friend sent was a little beyond funny? Let’s minimize that with NSWF.
  • Ode to Apple Dedicated to Apple – Mac, iPhone, iPod, iTunes, Quicktime, Apple TV and all the awesome softwares for the Apple Mac.

Download free Brajeshwar Wordpress Theme

Brajeshwar

Brajeshwar I firmly believe in keeping things simple, easy for users and I envison pushing the technical envelop time and again for the betterment of viable commercial and practical applications. More about me.

Photos

More photos on Flickr

Member of 9rules Network

Since its inception on 11th June, 2001, "Brajeshwar" has 978 Articles and 6,656 comments, contained within 17 categories and 1,587 tags.