From owner-freebsd-java Mon Feb 22 15:31: 4 1999 Delivered-To: freebsd-java@freebsd.org Received: from pluto.plutotech.com (mail.plutotech.com [206.168.67.137]) by hub.freebsd.org (Postfix) with ESMTP id 8F9E610F51 for ; Mon, 22 Feb 1999 15:30:54 -0800 (PST) (envelope-from kelly@plutotech.com) Received: from plutotech.com (tampopo.plutotech.com [206.168.67.161]) by pluto.plutotech.com (8.9.1/8.9.1) with ESMTP id QAA13739; Mon, 22 Feb 1999 16:30:50 -0700 (MST) (envelope-from kelly@plutotech.com) Message-ID: <36D1E8AA.4661E99D@plutotech.com> Date: Mon, 22 Feb 1999 16:30:50 -0700 From: Sean Kelly Organization: Pluto Technologies X-Mailer: Mozilla 4.04 [en] (X11; I; FreeBSD 3.0-CURRENT i386) MIME-Version: 1.0 To: Mike Jeays Cc: freebsd-java@FreeBSD.ORG Subject: Re: somewhat new to java questions References: <36CDB479.65A0EFC6@chdev.com> <199902200138.SAA22208@mt.sri.com> <36CE170E.3F11D82D@statcan.ca> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > I get the feeling that the Java Emperor has no clothes. Heh heh. > The amount of code you need to write to do almost anything > in terms of a GUI implementation in Java seems to be > much larger and harder to write and understand than in > TK/TCL. This example of a MessageBox seems quite intimidating! Possibly. I like Tcl/Tk, but it's hard to write clean code in it. Particularly troublesome are dialog boxes where the state of many widgets depend on each other. Making the connections between them is hard to codify and document in code, and nearly always relies on global variables and unusual quoting. Whereas with Java, encapsulating the behavior of customized widgets within classes with well-defined callback interfaces are just a features of the language. > Furthermore, the performance seems much worse, seen from > my perspective of FreeBSD, Java 1.1 and Swing compared with > TK/TCL 8.0. No argument there. Tcl/Tk wins easily. > And inter-platform compatibility, at least between Unix and > Windows, seems about equivalent. Yep. > What am I missing? (No, its not a troll. I am genuinely puzzled.) Object orientation. Java is a *good* object-oriented language, unlike C++. Plus, it's a lot easier to write large programs in it than in Tcl/Tk. --Sean To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message