Re: compare with empty string uses equals method or == ??

From: Tony Morris (dibblego_at_optusnet.com.au)
Date: 07/02/04


Date: Fri, 2 Jul 2004 10:40:24 +1000


> I usually declare my 'public static final's to as String rather then
> int for a somewhat safe usage, as a compromise in absence of enums. I
> would appreciate any comments you may have on this scheme.

Comment: poor form.
Investigate the Type-safe enumeration design pattern.

-- 
Tony Morris
(BInfTech, Cert 3 I.T.)
Software Engineer
(2003 VTR1000F)
Sun Certified Programmer for the Java 2 Platform (1.4)
Sun Certified Developer for the Java 2 Platform


Relevant Pages

  • Re: XML parsing with Java
    ... We found this out after writing a few thousand lines with generics, enums, and a few other 1.5 features. ... If I had the ears of the decision makers where I work, I'd suggest to them that the risk of continuing with Java 1.4, with its insufficient concurrent memory model and slower performance than modern versions, exceeds that of the conversion to Java 5, especially in our environment which involves multiple nodes with multiple processors running multiple JVMs with various forms of communication between them processing high peak volumes of information per unit of time under tight time constraints and rigorous availability requirements. ... The fear of upgrade that I've witnessed was based on considerations of product reliability on a new platform, cost of code conversions, and operations costs associated with migration to and maintenance of the new enterprise platform. ...
    (comp.lang.java.programmer)
  • Pondering the dev tool landscape from an outsider
    ... best path for continuing development on an existing VB6 application. ... Java port leveraging the Netbeans RCP. ... Cross platform. ...
    (borland.public.delphi.non-technical)
  • Re: COBOL to Java conversion
    ... experience and at least one of them is currently working in Java. ... platform, but also to change the language to be Java. ... I have not personally seen or worked on a Unisys conversion to Unix, ... Changing a technical platform might have many reasons, ...
    (comp.lang.cobol)
  • Re: Strange problem when using a class module in VBScript
    ... > problems and is faster than Windows and VB/VBA. ... > which is essentially their version of Java. ... > The Wintel platform has been a series of compromises to preserve backwards ... Unix boxes are often faster, but it has nothing to do with Java. ...
    (microsoft.public.vb.general.discussion)
  • Re: These are identical, right? char const* and const char*
    ... > Java was originally an embedded systems programming language, ... You gain working directly with the platform API in your code and thus fully ... Windows and these are instantly available to Windows C++ programmers. ...
    (comp.lang.cpp)

Loading