Skip to content

Instantly share code, notes, and snippets.

@stijnvanbael
Created May 23, 2013 11:26
Show Gist options
  • Save stijnvanbael/5635408 to your computer and use it in GitHub Desktop.
Save stijnvanbael/5635408 to your computer and use it in GitHub Desktop.
API naming guidelines
// 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