Anti-OOP... stupid?

deadalnix deadalnix at gmail.com
Tue Feb 14 14:06:35 PST 2012


IMO, what would be stupid is that everything has to be object 
oriented.

You have problems where OOP is good, and other where it isn't. 
Use the tool that fit what you want to accomplish.

Screwdriver are great, but are useless when you are dealing with 
a nail.

On Tuesday, 14 February 2012 at 22:00:44 UTC, Zero wrote:
> Hello!
>
> I've recently started to work with D, and I'll start a "bigger" 
> project soon, using it. For a few days I've been thinking about 
> the approach I'll take here, and since I don't /have/ to use 
> full OOP in D, I was wondering... how crazy is it to not use 
> full OP nowadays?
>
> Naturally one would use objects, but since this isn't C#, or 
> Java, not freaking everything has to be an object. The C style 
> kinda feels more natural to me. (I know, I know, C naturally 
> can do some OOP like stuff, etc... but you get the idea, mainly 
> normal functions, some globals, yada, yada.)
>
> What I want to know from you people... is that stupid? To even 
> think about doing something like this? Basically mixing 
> procedural and OOP? I know about the dangers, and 
> disadvantages, but if those don't scare one away, would you 
> consider it bad, if someone did this, on a larger project?
>
> I'm looking forward to your answers.
>
> Zero




More information about the Digitalmars-d-learn mailing list