Business logic layer - what to use?

Matthew Carpenter matt
Mon May 17 11:58:57 PDT 2004


Alma J Wetzker wrote:

>
> I write the simplest, cleanest code I can and have a different 
> attitude towards servers.
>
>     -- Alma
>
Ditto.  It seems so many people are so reliant on their IDE that they 
don't write (or worse, clean up) their own code other that to "generate" 
it from a GUI IDE.  Drag and Drop programming is sloppy, and although it 
may allow less-technical to write code, is that what we want?  VB makes 
code easier to write as well, as to 4GL's, but look at where it got 
Microsoft.  I will admit that C and C++ can possibly compile faster code 
than Java.  Being the fastest wasn't the point.  The point was a great 
language, a great platform, and cross-platform.  Any other 
"cross-platform" code which is in any way similar in capabilities to 
Java are script languages like Perl.  
And with the Java JIT's (Just-In-Time compilers) well written code is 
nearly as fast as C code once loaded into memory.   And Java Compilers 
are still being actively worked on for performance.</rant>

As for coding smart, IBM did an in-depth study a few years back and 
found some important facts about performance hits, where they occur and 
how to avoid them.  You should search for "Java Performance" on IBM's 
web site (perhaps on developerworks or alphaworks).  They found that 
object-reuse saves a considerable hit versus creating new objects all 
the time, "Synchronized" methods incur a huge performance hit, and many 
others.  Also they recognized that in the battle to make Java much more 
inherently stable than C, the standard Java spec made a great many 
methods synchronized to avoid headaches with multi-threading.  If an 
object will not be used concurrently ever, creating a non-syncronized 
version of that method has saved quite a bit of processor time.

Check it out.  It's a good read.





More information about the Linux-users mailing list