Java Mailing List Archive

http://www.junlu.com/

Subjects
Home
mod jk2 https
Donation of JAXP 1 3 Sources to Apache
R annoyances
RE: Finding out when the aspnet admin worker process has recycled
Favorite Linux Distribution
eigenvalues of a circulant matrix
Apache Install
Reachin apache from outside
Ant should have an ext directory
Warning: Documentroot doesn 't exist
Can this be Done?
RE: Multilanguage Application
RE: Simple Question On setting up Sub Domain site
Lack of independence in anova()
How to close connection instead of sending 403?
winning the case for ANT
Re: adding php
New Ant GUI 'Ant 's Nest '
Narrowing Down A Strange Problem
Ant Task: sshexec
R Graph Gallery : categorization of the graphs
I 've been hacked, I need some help please
RE: Anyone working with DotNetNuke?
RE: Exception Handling Opinion
hex format
RE: IIS stopped working :(
<for > Build Failed:problem
RE: Separation of Objects from Logic
RE: Tracking pages with long request execution time
sending email to multiple destination
Web Site
ant UI
Easy cut & paste from Excel to R?
Win32 Apache Restart
Improving Tasks
HELP! PLEASE!
RE: Adding Controls to a Page
read table
RE: ASPNET account doesn 't exist!
Best way to uninstall Apache2 on red hat
from win to linux how to web page
XMLParseException changes and creation of XMLLocator2
Re Post: rewrite backslash to forward slash
Target or macrodef?
Page display problem XPSP2
Authentication problems
Dynamic Dictionary Data Type?
Newbie unable access my www from outside
off topic question: Latex and R in industries
Conflict between xtable and Hmisc when using Sweave?
Very old problem without any new solution
mod rewrite help
Basic Authentication question
RE: Code Security
calling ant from java program
prevent double signing
Re: Controlling Copy/Paste/Print
Using R to illustrate the Central Limit Theorem
web server slow too much slow
access to user directories
Links
Home
Official R Project Site
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
RE: Separation of Objects from Logic

RE: Separation of Objects from Logic

2004-12-10       - By Terry Voss
Reply:     1     2     3     4     5     6     7     8     9     10     >>  

Phil,

I use #1 because I want each class responsible for the proper things,
itself. My #1 classes have load, save, and delete and are subclasses off
another layer.

One of your negatives was that they are always there even if you don't use
them. Being subclassed they are light, and small anyway.

If Microsoft in future is going into ObjectSpaces, I think you will find
derived classes there will have save,load,delete built into them.

Designing classes is about who is responsible for what and keeping things as
simple as possible within the demands of the software environment.

HTH,

Terry Voss
http://www.computer-consulting.com
MS MVP - ASP.NET
MS MCP


-----Original Message-----
From: Phil Winstanley [mailto:phil@(protected)]
Sent: Thursday, December 09, 2004 3:56 PM
To: aspnet-architecture@(protected)
Subject: [aspnet-architecture] Separation of Objects from Logic

Hello,

I'm having a discussion with a colleague of mine at the moment about the
benefits of differing architectures, specifically two different
architectures: -

1. Where each object is responsible for loading and saving it's data so has
both methods and properties. Intelligent objects one might say.

I want to go in what I see as both the pros and cons for each, so here goes

Advantages

a) No need for a separate business logic layer.
b) Logic for managing objects is always at hand as one of the methods of the
object.
c) Bindable.

Disadvantages

a) The methods are always there even when they're not used.
b) ... erm ?

2. Where each object is just a class with properties, light weight, but
completely dumb. All logic is performed through a separate Business Logic
Layer.

Advantages

a) No tight coupling with the business logic layer, objects can be used
independently.
b) Objects serialize happily as they're just made up of simple types,
string, int & Guid generally.
c) Light weight and can be moved between layers very easily.
d) Bindable
e) It's the wasy Microsoft seem to do things looking at the Provider Models.

Disadvantages

a) The objects have no concept of how they should behave.
b) You need to know what in the Business Logic layer to use for
saving/loading your objects with data.

Now, I'm a fan of #2 for the reasons outlined above, but I don't know enough
about #1 to make an informed choice so would like to hear how others
approach this.

Datasets are not out of the question though I'd prefer to stay away from
them and their typed brethren.

What do you guys use and why? What do you think of the above two?

Thanks,

Phil.



Need SQL Advice? http://sqladvice.com
Need RegEx Advice? http://regexadvice.com
Need XML Advice? http://xmladvice.com



Need SQL Advice? http://sqladvice.com
Need RegEx Advice? http://regexadvice.com
Need XML Advice? http://xmladvice.com

©2008 junlu.com - Jax Systems, LLC, U.S.A.