Link Details

Link 131559 thumbnail
User 119725 avatar

By PeterStofferis
via developer.com
Published: Nov 06 2008 / 03:16

Every J2EE web application can get an immediate performance boost by eliminating common and unnecessary overhead that uses an uncommon Eclipse setting and a little discipline.
  • 5
  • 14
  • 1602
  • 540

Comments

Add your comment
User 172732 avatar

Sergey Tyulkin replied ago:

0 votes Vote down Vote up Reply

Well, these "//$NON-NLS-1$" also do not clean your code. I imagine using them in a highly loggable class ... urghhh

User 101173 avatar

yGuy replied ago:

2 votes Vote down Vote up Reply

Wow, the author is so wrong, it is unbelievable. Referencing a static final String from another class or interface uses *exactly* the same memory as if you were using the literal in place - there is *no* saving at all - the compiler produces exactly the same bytecode. And using the non-localized-string warning feature just to *detect* string literals is just plain silly. Funnily the author talks about FUD, while at the same time this is what he's spreading.

User 306525 avatar

newton_dave replied ago:

0 votes Vote down Vote up Reply

Who declares the same string 70 times in an app?

User 60102 avatar

jodastephen replied ago:

0 votes Vote down Vote up Reply

One of the worst articles I've ever read. Technically completely invalid as explained by yGuy. The sad part is that there is no way to comment on the article itself, and so many people will read it directly and never know how bad it is.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.