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
- Developing Rich Web Service APIs with Java
- C++, Java and .NET: Lessons Learned from the Internet Age
- Highly Interactive Software with Java and Flex
- The Cloud Computing Continuum with Bob McWhirter
- Software Quality: The Quest for the Holy Grail?
- What's Happening in the Java World?
- Fantastic Fun in Jackson Hole
- How We Hired a Team of 10 in 2 Months
- Jack's Skiing Like A Madman!
- My Future of Web Frameworks Presentation
Posted by dsuspense on February 27, 2003 at 11:22 AM MST #
Posted by dsuspense on February 27, 2003 at 11:23 AM MST #
Posted by dsuspense on February 27, 2003 at 11:25 AM MST #
Posted by Ryan Scharer on February 27, 2003 at 11:30 AM MST #
Posted by James Childers on February 27, 2003 at 01:11 PM MST #