Results 1 to 7 of 7

Thread: OOP Industry Standard

  1. #1

    Thread Starter
    Hyperactive Member dRAMmer's Avatar
    Join Date
    Oct 2001
    Location
    strangelans
    Posts
    463

    OOP Industry Standard

    Is there such a thing as OOP Standard? This is the way how we implement OOP concepts.

    - Our classes are stateless
    - When fetching data, methods returns "recordset" (ie. dataset, datatable)
    - When updating data, methods accepts parameters of what-supposed-to-be properties of the class. To make it neat we pass a structure instead of a number of paramter. The structure's elements represent the supposed-to-be properties of the class.

    I have read all the debunking articles and praise article about OOP (I prefer the latter). I guess we have implemented OOP fair enough. Anyone who can shed light on my inquiry is much appreciated!
    live, code and die...

  2. #2
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: OOP Industry Standard

    Stateless Classes? The very nature of a Class is an intelligent data structure which implies a state-ful Object. Care to extrapolate?
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  3. #3

    Thread Starter
    Hyperactive Member dRAMmer's Avatar
    Join Date
    Oct 2001
    Location
    strangelans
    Posts
    463

    Re: OOP Industry Standard

    Hi!

    There are many articles that can be a basis for a debate about a class being stateless. But nevertheless you would agree with me that if you use a class in MTS then you can't have it as having state.

    Now, .Net offers remoting, how should classes be defined for that then? I guess they should be stateless too (or not)?
    live, code and die...

  4. #4
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: OOP Industry Standard

    I think a Class that is stateless actually becomes a service. As far as .NET remoting, it is a .NET replacement for DCOM. I don't use COM+, but I do use DCOM, and my Classes are not all State-less.

    Although I do have a DCOM Singleton which is stateless but only since it is more of a message-router than a state-ful Object.

    So I guess you will have some state-less Objects in .NET remoting, but this attribute is not decided by choice of architecture, but rather by necessity of functionality.

    P.S. As .NET remoting supplants DCOM, so Indigo supplants .NET remoting, according to Microsoft itself. Seems like this Web-Services bandwagon has everyone abandoning their loyalties.
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  5. #5
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: OOP Industry Standard

    Quote Originally Posted by Dave Sell
    I think a Class that is stateless actually becomes a service. As far as .NET remoting, it is a .NET replacement for DCOM. I don't use COM+, but I do use DCOM, and my Classes are not all State-less.

    Although I do have a DCOM Singleton which is stateless but only since it is more of a message-router than a state-ful Object.

    So I guess you will have some state-less Objects in .NET remoting, but this attribute is not decided by choice of architecture, but rather by necessity of functionality.

    P.S. As .NET remoting supplants DCOM, so Indigo supplants .NET remoting, according to Microsoft itself. Seems like this Web-Services bandwagon has everyone abandoning their loyalties.
    Gads, I hope not.... we've got parts of our system where remoting will make sense.... but not as a WebService.... I think WS has gotten out of control and we'll see a swing back in the next couple of years. And eventualy it will be replaced by something else.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  6. #6
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: OOP Industry Standard

    Sorry I can't dig up the keynote, but as I recall it was centered around WCF (pronounced In-di-go lol).

    In it, the M$ dood said that WCF is here to replace this-that-and the other, and one of them was definately .NET Remoting.

    I shuddered to think someone would suggest replacing a technology like .NET Remoting (Remote instantiation of state-ful Objects) with a technology like Web-Services (Remote method calling of state-less Objects). (Can that even work??? I think not).

    I know - the whole WS hype started to get out-of-hand about a year or 2 ago. It's mostly-pointy-haired marketing goobers who are responsible for this, similar to what happenned at Y2K. Both are real and valid mole-hills that have gotten swept up into irrationally-porportioned mountains.
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  7. #7

    Thread Starter
    Hyperactive Member dRAMmer's Avatar
    Join Date
    Oct 2001
    Location
    strangelans
    Posts
    463

    Re: OOP Industry Standard

    Thanks for the input! I'll leave this thread open for at least a week and wait for more opinions.
    live, code and die...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width