JavaNaming: Difference between revisions

From EggeWiki
No edit summary
mNo edit summary
Line 7: Line 7:
}
}
</pre>
</pre>
[[Category:Java]]

Revision as of 22:33, 30 September 2007

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());
}