JavaNaming

From EggeWiki
Revision as of 22:26, 5 June 2007 by Brianegge (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

theInventionOfCamelCaseNamingHasBeenAGreatHelpToJavaProgrammers_IHaveFoundItUsefulInAllMyJavaProgramsAndWouldLikeToProposeASlightExtensionToTheStandard_youSee_SometimesYouHaveAMethodOrVariableNameWhichRequiresMoreThanOneSentenceToDescribe_inSuchCases_IProposeReplacingThePeriodAtTheEndOfTheSentenceWithAnUnderscore_additionally_theUnderscoreCharacterCanBeUsedToReplaceOtherPunctuation_suchAsCommas_furthermoreIProposeUsingTwoUnderscoresToCreateANewParagraph__theseNewChangesWillBeMostUsefulForJavaProgrammersWhoLikeToGiveMethodNamesVeryDescriptiveNames_forExample_

  public void testWhenTheCustomersBankAccountReachesZeroGetStatusReturns_NoAvailableFunds_unlessOfCourseTheAccountIsClosed_ifTheAccountIsClosedThenItShouldReturn_AccountClosed_() {
      assertEquals("No Available Funds", fixture.getAccountWithZeroBalance().getStatus());
      assertEquals("Account closed", fixture.getAccountWhichIsClosed().getStatus());
}