aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Externalizing strings Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Externalizing strings" Watch "Externalizing strings" New topic
Author

Externalizing strings

Krzysiek Hycnar
Ranch Hand

Joined: Jan 02, 2004
Posts: 74
Hi all,

I've been revising the source code in my SCJD project again, and was thinking about externalizing string. Hmmm... does it make sense for that project, isn't it overkill?? Or maybe it would be a nice thing to mention in choices.txt in a kind of "future improvements" topic?? What do you think??

Take Care
Krzysiek
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11432
    
  85

Hi Krzysiek,

What do you mean by "externalizing Strings"? Are you talking about putting your Strings into a bundle for internationalization? Or something else?

(If you are looking at internationalization, I think it is really nice, but beyond specifications - so you wont get extra marks for it. But it would be good to mention that you thought of it in your design choices document.

Regards, Andrew


The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Lara McCarver
Ranch Hand

Joined: Dec 09, 2003
Posts: 118
Since there is a database-related requirement about "8-bit US-ASCII", I am not certain that it truly makes sense to externalize strings. If the requirements specified ISO-Latin, it might be a different story...
Krzysiek Hycnar
Ranch Hand

Joined: Jan 02, 2004
Posts: 74
Hi,

Ok, this is my fault I was not specific enough. By externalizing strings I mean what Andrew said - putting the strings that are normally hardcoded into a bundle that is located in one place and it's easily replaceable with another set. This is just a temptation, and I know I won't be given extra score for that, so I think this is one of this kind of temptations I will resist

BTW. I thought "externalizing strings" is quite common notion, but hmmm... maybe I'm to much tied to the eclipse IDE that provides that facility.

Take Care
Krzysiek
Ta Ri Ki Sun
Ranch Hand

Joined: Mar 26, 2002
Posts: 442
Originally posted by Krzysiek Hycnar:
- putting the strings that are normally hardcoded


Strings are never "normally hardcoded"

I dunno if those got me any extra points but it's force of habit.
Krzysiek Hycnar
Ranch Hand

Joined: Jan 02, 2004
Posts: 74
Haha nice shot !! It's not a good practice to hardcode them, but I bet most of us do it

Krzysiek
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Externalizing strings