This got long-ish as I'm partially thinking out loud about this
work-in-progress. Sorry. The whole thing got blown out of proportion
late last week and I shouldn't be doing this with Struts at all, I
think. More of a Dave's Java Playground project, this.
Adam Hardy wrote:
if you have a whole
You missed the point, Adam. No one is so daft as to be saying that
having an interface makes the implementations of that interface less
than specific implementations. The point is that you can switch them
out.
On 8/11/05, Adam Hardy <[EMAIL PROTECTED]> wrote:
> Dave Newton on 10/08/05 16:25, wro
Dave Newton on 10/08/05 16:25, wrote:
(4) Dependency Injection/Configurability.
Classes that implement interfaces can be instantiated at runtime
allowing for config-file-level application modification. This can
translate into HUGE wins over the life of an application.
As a recent thread on
apache.org [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 10, 2005 11:03 AM
To: Paranj, Bala
Subject: Why interface
--0-1585081136-1123685253=:83126
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
In Java/J2EE community, it seems that a lot of experienced develo
On 8/10/05, Laurie Harper <[EMAIL PROTECTED]> wrote:
> Carl Smith wrote:
> > In Java/J2EE community, it seems that a lot of experienced developers tend
> > to use a lot of interfaces, however, a lot of junior developers ignore
> > using interface. I am not sure why interfaces seem to be favorite
On 8/10/05, Dave Newton <[EMAIL PROTECTED]> wrote:
> Laurie Harper wrote:
>
> > As a more general example, consider if you wrote all your code to use
> > ArrayList and later found, after profiling, that you needed to switch
> > to LinkedList for performance reasons. You'd have to update all your
Laurie Harper wrote:
As a more general example, consider if you wrote all your code to use
ArrayList and later found, after profiling, that you needed to switch
to LinkedList for performance reasons. You'd have to update all your
code -- including all the clients of all the methods that accep
Carl Smith wrote:
In Java/J2EE community, it seems that a lot of experienced developers tend to
use a lot of interfaces, however, a lot of junior developers ignore using
interface. I am not sure why interfaces seem to be favorite to some experienced
developers. Can some one explain this?Can yo
Frank W. Zammetti wrote:
I think it usually comes down to three reasons...
I'd add a fourth, although really it's just a result of the reasons you
mention. But I think it's important enough to warrant attention :)
(4) Dependency Injection/Configurability.
Classes that implement interfaces
I think it usually comes down to three reasons...
(1) A class can only extend a single class, whereas it can implement
multiple interfaces (Interfaces are Java's version of multiple inheritance
in C). So, as soon as you get to the point where extending a single class
just isn't sufficient, it's n
cc
Subject
Please respond to Why interface
"Struts Users
Users Mailing List"
To
Struts Users Mailing List
cc
Subject
Why interface
In Java/J2EE community, it seems that a lot of experienced developers tend
to use a lot of interfaces, however, a lot of junior developers ignore
using interface. I am not sure why interfaces seem to b
In Java/J2EE community, it seems that a lot of experienced developers tend to
use a lot of interfaces, however, a lot of junior developers ignore using
interface. I am not sure why interfaces seem to be favorite to some experienced
developers. Can some one explain this?Can you give examples whe
13 matches
Mail list logo