Sunday, November 28, 2004

OOD - Less Is More

My primary professional development language has been C++ for as long as I remember. It still is and I have no strong desire to move to something else. That also means that, many years ago, I embraced the Object Oriented Design (OOD) methodology.

I have derived Cat and Dog from Animal many times. At first, it took a while to see the object hierarchies, but it became easier. I loved object hierarchies. The deeper, the better.

Then, I started COM programming and designing using interfaces (abstract base classes) seemed to free my mind of the implementation details. I was happy. I was using interfaces for non-COM code in no time.

Then, I started using templates. First, with the help of the STL. What a concept! Later, with the help of Modern C++ Design (Andrei Alexandrescu) and the Boost libraries. Implementing design patterns using templates was amazing. Templates allowed me to do things I thought only inheritance could. I am glad I was wrong. Suddenly, my object hierarchies are not as deep.

Then, I started to learn XML and Services. Not really programming, I know, but the concept of storing all that data in a document that could be queried so easily made me question all those class getters and setters. Even some kinds of inheritance seemed overkill. Why can't classes be more behavorial and less stateful? Let XML be the state and just pass it around.

In the end, I'm still using objects. Just less of them. I guess the data is becoming more important than the code.

52 Comments:

At 2:46 AM, Anonymous Anonymous said...

Great post, i really appreciate it.
Buy Assignment | Buy Coursework | Buy Dissertation

 
At 2:47 AM, Anonymous Anonymous said...

Great post, i really appreciate it.
Buy Essay | Buy Thesis

 
At 1:05 AM, Blogger John Petrucci said...

Thank you for this very useful information.
buy assignment | Coursework Writing

 
At 6:46 AM, Blogger polo shirts said...

History of polo ralph lauren. Polo fashions had its humble beginnings in 1968 when tie salesman Ralph Lauren gave it a kick start. By 1969 he had a boutique polo ralph lauren factory stores within the Manhattan department store Bloomingdale's. ... Brands and luxury standard. Since Ralph Lauren's first brand, Polo Ralph Lauren, was launched, the company has expanded to include a variety of luxury brands such as Polo Golf, Polo Denim, Polo Sport. You can buy cheap Ralph Lauren Clothing at Ralph Lauren outlet.Also We provide polo shirts
Ralph Lauren polo shirt, 50% OFF! polo ralph lauren outlet online is your best choice!In 2006, polo ralph lauren outlet became the first designer in Wimbledon's 133-year history to create official uniforms for the tournament. As part of this year's event, which starts next week, polo ralph lauren sale will introduces the first ... determination to maintain and enhance the values for which our two brands are famous throughout the world. The rugby ralph lauren brand brings to Wimbledon the look of timeless elegance, drawing on our rich history and traditions

 
At 3:35 AM, Blogger David said...

This comment has been removed by the author.

 
At 3:42 AM, Blogger David said...

Thanks for such a great post... finance help | programming language help | Marketing Assignment help | Assignment Help.

 
At 6:55 AM, Anonymous angel said...

Well that's amazing article! I could tell how great you are in your field of interest. You could relate in each detail very well. Thanks...Very good info, I feel a lot more people need to read this.
Essay writing
uk essay writing

 
At 6:56 AM, Anonymous jennnifer said...

Awesome article! Interesting topic what you have shared with us. Your writing skill is really very appreciative. I love when you share your views through the best articles.Keep sharing and posting articles like these.This article has helped me a lot.Keep posting this stuff. thanks
dissertation help
dissertation proposal

 
At 6:58 AM, Anonymous emma said...

Superb work! I've read your stuff before and you're just too awesome. I love what you've got here love what you're saying and the way you say it. You make it entertaining and you still manage to keep it smart. I cant wait to read more from you. This is really a great blog.
head lice treatment

 
At 7:00 AM, Anonymous umma said...

Cool site, love the info. I do a lot of research online on a daily basis and for the most part, people lack substance but, I just wanted to make a quick comment to say I'm glad I found your blog.
custom logo design

 
At 4:58 AM, Blogger deepak said...

this is nice blog regarding for online asignment Finance Assignment Help

 
At 1:54 AM, Anonymous logo design contests said...

I completely agree with you. I have no point to raise in against of what you have said I think you explain the whole situation very well

 
At 1:56 AM, Anonymous jonty said...

A comprehensively detailed and attention grabbing review that you wrote in this article. I am really convinced the way you look. The way you describe the whole thing is simple and understandable Essay Writing UK||Essay Writing||Essay Help

 
At 4:43 AM, Anonymous Essay Writing said...

You really make it seem so easy with your presentation but I find this topic to be really something which I think I would never understand. It seems too complicated and very broad for me.
University Essays - Buy Essay - UK Essay Writing

 
At 5:53 AM, Anonymous uggs said...

Buy UGGs Classic Short Boot, UGG Boots Classic Long Boot, UGG Cardi Boot at Firshoes.

 
At 5:50 AM, Blogger Taj Wolfe said...

My friend recommended to this blog.... you have some awesome articles shear. keep it up the great work

ipad applications | how to develop for android

 
At 5:09 PM, Anonymous Mack said...

Was looking for this information, have bookmarked your site for further reference.
design company logo
design company brochure

 
At 7:58 AM, Anonymous woven sourcing said...

it was sure my pleasure to comment on this blog. Have bookmarked this site for future reference

 
At 2:38 AM, Anonymous psd to wordpress said...

Nice information, many thanks to the author. It is incomprehensible to me now, but in general, the usefulness and significance is overwhelming. Thanks again and good luck!

 
At 2:29 AM, Anonymous psd to html said...

Nicely presented information in this post, I prefer to read this kind of stuff. The quality of content is fine and the conclusion is good. Thanks for the post.

 
At 5:25 AM, Anonymous Anonymous said...

nice one

driving lesson birmingham

 
At 4:51 AM, Anonymous logo design uk said...

Great blog post. It’s useful information.

 
At 8:18 AM, Anonymous clothes donation said...

I am very enjoyed for this blog. Its an informative topic.

 
At 7:26 AM, Anonymous create a online store free said...

"Thank you for another essential article. It is possible to obtain such information in a thorough manner, such as where someone has written? I have a presentation coming week, I'd keep an eye on such information"

 
At 3:03 AM, Anonymous Kim said...

refurbished macbook pro for sale
Macbook Pro 15 for sale

 
At 8:10 AM, Anonymous Dissertation Writing Services said...

Great post, i really appreciate it.
Dissertation Proposal Writing
Online Dissertation Help
Dissertation Help London
Phd Dissertation Proposal
Proposal for Dissertation
IT Dissertation Topics
Finance Dissertation Topics

 
At 5:11 AM, Anonymous anthrax symptoms said...

The normal incubation period for anthrax is approximately seven days, but it really will take sixty days or extended for indicators to be developed.

 
At 7:05 AM, Anonymous Business VoIP Providers said...

Great post, This is much better regarding my knowledge.
business voip providers

 
At 9:20 AM, Anonymous Stryker Hip Replacement Updates said...

Glad that you are determined to do this. I can tell that you are very passionate about your craft.

 
At 4:09 AM, Anonymous Essay Writing Services said...

Nice Post. thanks.
Online Essay Writing : Custom Essay Writing : College Essay Writing : Essay Help Online : Essay Writing UK : Buy Essay Online : Essay Topics : Essay Writers : Custom Essay Help : Essay Editing : Online Essay Help

 
At 4:09 AM, Blogger essaylive said...

Great Post, Awesome.
Homework Essay Help : Essay Proofreading : University Essay Writing : Uk Essay Help

 
At 3:37 AM, Blogger Assignment Desk said...

Thanks for such a great post.
Assignment Writing Service UK, Assignment Help, Assignment Writing, Online Assignment Help, Assignment Writers UK, UK Assignment Help

 
At 3:39 AM, Blogger Assignment Desk said...

I am agree with you. nicely explain.
Coursework Help, Online Homework Help, Help with Assignment, Assignment Help Online, Buy Assignments

 
At 5:39 AM, Anonymous Anonymous said...

I’m taking a look forward to your subsequent publish, I will attempt to get the dangle of it!
Website Design,Web Design,resellers,adsl,spam free hosting,affordable web hosting,domain name registration,cheap web hosting,reliable web hosting,cpanel hosting,SVN hosting,Secure SVN hosting,Subversion hosting,Secure Subversion hosting,Search Engine Optimization Services,Cheap SEO packages,Affordable SEO packages,Reliable SEO packages

 
At 5:39 AM, Anonymous Anonymous said...

You really know your stuff... Keep up the good work!
web hosting south africa,hosting in south africa,web hosting provider,web hosting,website hosting,domain registration,dedicated servers,broadband adsl,email2fax,fax2email,hosting,Windows Hosting,Linux Hosting,Reseller Hosting,MS Sql Hosting,ASP.NET Hosting

 
At 12:57 AM, Anonymous cheap nike shox said...

Gamal said, then sat up, hand to come up with a walking stick from beside the bed, pointing to standing at the shadow of the bed.

 
At 10:46 AM, Anonymous donate toys said...


Great blog post. It’s useful information.

 
At 9:31 AM, Blogger William Davis said...

I'm a relatively new programmer with C++ as my primary language as well. I self-study most of the time and I definitely value what experienced programmers have to say about a certain language, other softwares, and more. Thanks for sharing this helpful insight. You may also want to visit my blog here

 
At 7:04 AM, Blogger alex john said...

guest house in pakistan

 
At 6:33 AM, Blogger Willie Sager said...

Nice post with awesome points! Can’t wait for the next one.

HP - 14"EliteBook Notebook 8 GB Memory - 500 GB Hard Drive - Gunmetal

HP - 14"ProBook Notebook 4 GB Memory - 320 GB Hard Drive

HP - 12.5"EliteBook Notebook 4 GB Memory and 128 GB Solid State Drive

HP - 17.3" ENVY Laptop - 8GB Memory - 750GB Hard Drive - Nero Black/Natural Silver

HP - 14"EliteBook Notebook 4 GB Memory - 500 GB Hard Drive

HP - 15.6"EliteBook Notebook 4 GB Memory - 500 GB Hard Drive - Platinum

HP - EliteBook LJ542UT 14" LED Notebook - Intel Core i5 i5-2520M 2.50 GHz

HP - 12.5"EliteBook Notebook 4 GB Memory - 320 GB Hard Drive

HP - 14"EliteBook Notebook 4 GB Memory - 500 GB Hard Drive - Platinum

HP - 17.3"ProBook Notebook 4 GB Memory - 500 GB Hard Drive

 
At 7:10 AM, Blogger brandon dosuza said...

Toronto Roofer

nice work

 
At 12:56 AM, Anonymous Bridal lehenga said...

Thank you, I have just also been looking for information approximately this specific subject for ages as well as yours would be the greatest I have came upon till now. However, precisely what concerning the bottom line? Are you currently sure concerning the supply?

 
At 5:19 AM, Blogger Mark Wright said...

It seems to collect a lot of different ideas in the Word document. I do it in different sheets of paper in my notebook. You have what you do now?
Nursing Essays
Uk Essay Writing Service
Essay Writing Service Uk
nursing essay writing service

 
At 6:33 AM, Blogger Alex jones said...

This comment has been removed by the author.

 
At 8:43 AM, Blogger Michael Jones said...

This comment has been removed by the author.

 
At 8:22 AM, Anonymous Make My Assignment said...

Make My Assignments|Assignment help make customized assignments. Our team of experts is ready to make your assignments 24x7. We provide 100% Plagiarism free work

 
At 2:03 AM, Anonymous Leadership Assignment Help said...

Get the best assignment help service from leading assignment help service provider in UK, USA, and Australia- www.makemyassignments.com
Assignment help |
Homework Help
Make My Assignment

 
At 9:25 AM, Anonymous IB Maths tutor in Gurgaon said...

IB Math Tutor has been helping students excel in IB Math tutor in Gurgaon , IB Physics tutor in Gurgaon , IB Chemistry tutor in Gurgaon , IB Economics tutor in Gurgaon and Business Management(HL,SL) by providing the right skills for success.

 
At 9:26 AM, Anonymous IB Maths tutor in Delhi said...

IB Math Tutor has been helping students excel in IB Math tutor in Gurgaon for success.

 
At 5:39 PM, Blogger Bogdan Yanov said...

This is very much a work in progress whenever I find out about one who is more beautiful than any of these I will add her and kick out http://awriter.org/freshessayscom
number ten Thanks for sharing the informative post.

 
At 6:10 AM, Blogger Joanne Criss said...

Very Informative post you gave to us, really helpful I would like to share something really helpful for education. Best Assignment Helper

 
At 4:14 AM, Blogger Priya Desai said...

Good blog. Thanks for share it. If you love eye wear then choose the best one from Eyewear Sunglasses Store .

 

Post a Comment

<< Home