Created
May 23, 2013 11:26
-
-
Save stijnvanbael/5635408 to your computer and use it in GitHub Desktop.
API naming guidelines
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Choose relevant names for types that are unlikely to exist in another library | |
public final class SealedServicesFactory { | |
// No need to repeat “my” or “service” in the method name, as the type defines the | |
// scope already. | |
public SealedServices create() { | |
return new DefaultSealedServices(new FooService(), new BarService()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment