× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I agree with you.  I think where business logic could be use though is with
OO Interfaces.  Thoughts?

Aaron Bartell 

-----Original Message-----
From: java400-l-bounces@xxxxxxxxxxxx [mailto:java400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Joe Pluta
Sent: Wednesday, June 30, 2004 11:40 AM
To: 'Java Programming on and around the iSeries / AS400'
Subject: RE: framework question

> From: NGay@xxxxxxxxxxxxx
> 
> Aaron,
> 
> Hence we are
> considering rewriting all the business logic into Java code where it
will
> be nicely organized, use proper data types, inheritance and so on.

Java is good for many, many things, but one thing it is NOT good for is
programming business logic.  Inheritance is perhaps the single most overused
(and misused) feature of any language ever designed, and it almost NEVER
applies in the business world.  Business application make far better use of
composition than inheritance in well over 90% of the cases I've ever looked
at.  Try to come up with 10 places where inheritance (especially Java's
single-parent inheritance model) makes sense.

Java is horrid at executing conditional logic based on database flags, and
is also terrible at allowing quick changes to the logic for a specific
problem, both of which are required in real-world business applications.

There is a reason why nobody has really made much headway in creating a
generic set of business objects: because such a goal is very hard to
achieve.


> Then we
> would replace the exisiting 'fat' 5250 screens which currently have
all
> the
> business logic mixed in by 'thin' 5250 screens which are nothing more
than
> a UI layer calling the Java business logic in the background to do all
the
> work.

Instead, I think the proper way to go about things is to create a
JSP/servlet front end to your existing applications, then begin rewriting
them into servers as need be.  Some programs may never need to be rewritten:
for example, do you REALLY need client/server access to your chart of
accounts master?  Probably not.

Anyway, my .02.

Joe

--
This is the Java Programming on and around the iSeries / AS400 (JAVA400-L)
mailing list To post a message email: JAVA400-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/java400-l.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.