Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / August 2006

Tip: Looking for answers? Try searching our database.

How not to hardcode

Thread view: 
newsnet customer - 07 Aug 2006 13:56 GMT
Hi

Heres a general question: How to avoid hard coding? anyone like to share some tips to avoid hard coding?

Cheers
ST
John_Woo - 07 Aug 2006 13:56 GMT
> Hi
>
> Heres a general question: How to avoid hard coding? anyone like to share some tips to avoid hard coding?

1. Read from resource/properties file
2. Rad from database
3. passed arg[] to execute app, like java myApp a_value
Christopher Benson-Manica - 07 Aug 2006 16:17 GMT
> [-- text/plain, encoding quoted-printable, charset: iso-8859-1, 8 lines --]

Please post in plain text, if possible.

> Heres a general question: How to avoid hard coding? anyone like to share some tips to avoid hard coding?

You've gotten some simple suggestions; you can also look at frameworks
such as Spring that allow more sophisticated flexibility.

Signature

C. Benson Manica           | I *should* know what I'm talking about - if I
cbmanica(at)gmail.com      | don't, I need to know.  Flames welcome.

Luc The Perverse - 07 Aug 2006 21:04 GMT
>Hi
>
[quoted text clipped - 3 lines]
>Cheers
>ST

Lesson number 1 - do not post in HTML

I see you use Outlook Express.

To fix this default behaviour:
1. Go to tools menu
2. Choose options from the menu
3. Select the send tab
4. Under News Sending Format, select Plain Text

--
LTP

:)


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.