473,473 Members | 1,419 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

A non OO programmers approach....

Hi,

I have been building asp.net 2.0 apps now for a few years. In general I use
MS Ajax and the MS Data Enterprise Application Block to manage the connecting
and getting data from the database.

My apps work very well espiecially with the introduction of MS Ajax.
However, I dont take the normal OO approach. Obviously the .Net framework is
OO based but when writing apps I take a different approach to what is the
norm I'd imagine....

I would create a number of classes to handle the calls to the SQL stored
procedures in the database. For example I would have a Person class with
public shared subs such as Person_Create or Person_Delete. These just call
stored procedures to execute the sql. I may have a Customer class with public
shared subs to Customer_Create etc etc

The rest of the code behind pages would typically have a lot of event
handlers and they would call the classes above (all of which are in the same
namespace) as needed.

So I have a lot of business logic in the stored procedures but I find this
approach very manageable for small applications. Most of my apps would not
have more than 30 tables so we are not talking about enterprise level
applications.

Anyone take this approach, maybe you think its a terrible approach and I
need to learn OO?

I find it very maintainable and logical, but maybe thats just me!
Oct 19 '07 #1
1 1242
Anyone take this approach, maybe you think its a terrible approach and
I need to learn OO?
The rise of the OO culture and its emphasis on object-oriented design has
caused many procedural programmers to feel like they are somehow doing
something wrong, myself included. I love objects, and I use them as you
do, but not in a "pure" OO manner, but more as components and a convenient
way to encapsulate code and realize all those nice object benefits.

I'm currently reading "Object Thinking" by David West and I HIGHLY
recommend if for all programmers, OO or not. He reveals that, as I long
suspected, even ardent OO enthusiasts seldom practice pure OOD. He also
makes persuasive arguments of why we should try, however.

As for your coding style, it is my opinion that a program is a good program
if it does what it is supposed to do AND it is maintainable - meaning both
that bugs can be fixed easily and without introducing new bugs, and
extensible - new functionality can be added, again, without creating bugs.
From your description it sounds like you are there.

To try and change your style for style sake alone would be a mistake.

kpg
Oct 19 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

29
by: Damian Brown | last post by:
www.phpexpert.org
16
by: hicinbothem | last post by:
GLOSSY: The Summer Programmer Of The Month Contest is underway! Deadline is September 30, 2005 http://dinsights.com/POTM...
242
by: James Cameron | last post by:
Hi I'm developing a program and the client is worried about future reuse of the code. Say 5, 10, 15 years down the road. This will be a major factor in selecting the development language. Any...
176
by: basecamp | last post by:
just checking the average age of programmers using this group -- thanks
48
by: Chad Z. Hower aka Kudzu | last post by:
A few of you may recognize me from the recent posts I have made about Indy <http://www.indyproject.org/indy.html> Those of you coming to .net from the Delphi world know truly how unique and...
16
by: lawrence k | last post by:
I've made it habit to check all returns in my code, and usually, on most projects, I'll have an error function that reports error messages to some central location. I recently worked on a project...
2
by: Rythin | last post by:
Hi everyone. We are looking for a volunteer co-programmers for a MUD's gamedriver project. As of now, a gamedriver is divided into two separate but tightly interconnected systems - C++ driver and...
8
by: Chris Asaipillai | last post by:
Hi there I have some questions for those experienced Visual Basic 6 programmers out there who have made the transition from VB6 to Vb.net. How long did it take you to learn at least the basic...
93
by: lorlarz | last post by:
Here, let's see what you JavaScript programmers have got Here is a place to share your large or larger full-blown JavaScript applications: real.comp.lang.js.apps (a new google group) Here is...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.