[clug] Why isn't Java popular on the Linux Desktop?

Sam Couter sam at couter.id.au
Sun Jul 12 05:33:37 MDT 2009


Francis James Whittle <fudje at grapevine.net.au> wrote:
> This is great for class-wide callbacks where only the data changes (and
> even when normally only the data changes), but sometimes you want a
> different method for each object.

Then each object is a different class. You're trying to fool with types
at run-time, which some languages support (Python), some languages don't
even know about because they don't have object types (C) and some
languages don't allow (Java).

> C, which also doesn't spam your build tree at compile time with files
> named like interface$number.class *for every relevant object* that have
> to be included in the distributed bundle.

Meh. Who cares? Ant/Maven/jar don't, and neither should you. Just don't
look, there's nothing to gain by doing so.

> On the other hand it makes things like reading from files painful to my
> file handle addled brain: First make an object that owns and refers to
> the file handle.  You'll refer to THIS using another object that handles
> buffering.  If you want any file position information, you'll need to
> use a particular subclass of the buffer class that is capable of
> retaining this information.  Why is this?  Why not just try anticipating
> what people want from a file and implementing that in one class?

Because files and streams are different, and shouldn't duplicate each
others interfaces.
-- 
Sam Couter         |  mailto:sam at couter.id.au
OpenPGP fingerprint:  A46B 9BB5 3148 7BEA 1F05  5BD5 8530 03AE DE89 C75C
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://lists.samba.org/archive/linux/attachments/20090712/088e3427/attachment.bin


More information about the linux mailing list