Welcome to DU! The truly grassroots left-of-center political community where regular people, not algorithms, drive the discussions and set the standards. Join the community: Create a free account Support DU (and get rid of ads!): Become a Star Member Latest Breaking News Editorials & Other Articles General Discussion The DU Lounge All Forums Issue Forums Culture Forums Alliance Forums Region Forums Support Forums Help & Search

paulkienitz

(1,449 posts)
5. video games are a perfect use of OOP
Wed Apr 2, 2014, 02:00 PM
Apr 2014

In a video game, most of what's going on is a complex real-time simulation. OOP makes perfect sense for that purpose. The active simulation is central, and any database activity is a secondary consideration. But in business applications, the real-time activity is of minimal importance, and the database content is all that really matters. For that kind of situation, manipulating your data in .Net OOP objects can easily become, in terms of practical results, nothing but an inefficient and unreliable means of implementing stored procedures.

Maybe someday we'll have OO classes which really integrate well with a database so that coding with them is a better alternative than a SQL procedure is. As far as I've seen that day isn't here.

In every large business app I've worked on, we've had a layer of OOP business objects, and mostly they've ended up being just thin wrapper layers around logic implemented inside the database. If they didn't start out that way, they soon evolved in that direction.

Recommendations

0 members have recommended this reply (displayed in chronological order):

Latest Discussions»Retired Forums»Website, DB, & Software Developers»How do you go about creat...»Reply #5