This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Naming convention for constants

 
Ransika deSilva
Ranch Hand
Posts: 524
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I got very confused when I read the naming convention for constants in the Sun coding standards. Pls consider this given situation.

class TestConstants {
public static final int ----------- (1)
private static final int ---------- (2)
public static final Logger ----------- (3)
private static final Logger ----------- (4)
}
Could you please let me know the naming conventions for the above stated constant value decelerations.

Thanks in advance. Regards.
 
Campbell Ritchie
Sheriff
Pie
Posts: 47274
52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As far as I can remember you should be calling the constants MY_INT, MY_SECOND_INT, MY_LOGGER and MY_SECOND_LOGGER.
 
Ransika deSilva
Ranch Hand
Posts: 524
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the quick reply, I had the same idea, but now have some doubts, any different ideas or confirmations are mostly welcome. Regards
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic