Results 1 to 3 of 3
Like Tree1Likes
  • 1 Post By jim829

Thread: naming conventions in Java

  1. #1
    esolve is offline Member
    Join Date
    Mar 2015
    Rep Power

    Default naming conventions in Java

    I have a function, the name I gave to it is:


    CDF is abbreviation of cumulative distribution function
    the meaning of this method name is: set cumulative distribution function on a batch of peers

    so what is the proper name for it? is the name I gave a good one?
    or should it be




  2. #2
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Northern Virginia, United States
    Rep Power

    Default Re: naming conventions in Java

    You are over analyzing this. Just check out the Java Naming Conventions link in my signature and apply as best you can to your code.

    SurfMan likes this.
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  3. #3
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    The Netherlands
    Rep Power

    Default Re: naming conventions in Java

    There are two things you need to consider:
    1) The Java Naming Conventions that Jim mentioned
    2) The meaningfullness and usefullness of the name.

    For example, the methodname for the function set cumulative distribution function on a batch of peers: could be setCumuDisFuncBP(). Or setCumulativeDistributionFunctionOnABatchOfPeers(). Even though both these examples are valid according to the Naming Conventions, these are still not desirable. Too short and too long. So your own suggestions look about perfect.
    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2™ © 2013

Similar Threads

  1. Maven - naming conventions and directories
    By Yeoman in forum Apache Maven
    Replies: 1
    Last Post: 09-14-2015, 10:07 AM
  2. Conventions with Package Naming
    By thurstjo63 in forum New To Java
    Replies: 0
    Last Post: 11-13-2011, 06:58 PM
  3. Naming requirements and conventions ?
    By javajosh in forum New To Java
    Replies: 4
    Last Post: 11-01-2011, 04:52 AM
  4. Naming conventions
    By tim in forum Forum Lobby
    Replies: 10
    Last Post: 11-16-2008, 09:27 PM
  5. Naming conventions
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-03-2007, 09:53 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts