Thursday February 27, 2003
How do you manage your Constants?
I'm sure most of you Java Developers have a methodology for handling your "constant" values. I've seen a couple of different techniques, and I'd like to see what everyone else is doing. Currently, I use a Constants.java file that has a bunch of public final static String lines in it. I got this technique from the struts-example app when I first started working with Struts. I recently came across (can't remember where) a technique where the Constants.java file was an Interface and it was simply implemented. How are you handling this in your apps?
Secondly - do you ever use these Constants in your JSPs, or do you just use the actual values? I use the actual values - less typing.
Posted in Java
at Feb 27 2003, 09:40:01 AM MST
5 Comments
Search This Site
Recent Entries
- Wine Tasting in Napa Valley
- How to build a Shot-Ski
- Bus Project Update
- Farewell to the 2011-2012 Ski Season
- Cruising around the Western Caribbean
- Spring Break!
- A Spectacular Trip to Stockholm and Madrid
- Comparing Web Frameworks and HTML5 with Play Scala at Jfokus 2012
- Play Framework 2.0 with Peter Hilton at Jfokus
- Secure JSON Services with Play Scala and SecureSocial
Posted by dsuspense on February 27, 2003 at 12:22 PM MST #
Posted by dsuspense on February 27, 2003 at 12:23 PM MST #
Posted by dsuspense on February 27, 2003 at 12:25 PM MST #
Posted by Ryan Scharer on February 27, 2003 at 12:30 PM MST #
Posted by James Childers on February 27, 2003 at 02:11 PM MST #