jsuereth / sbt-in-action-examples

Source code examples for the book "sbt in Action"
144 stars 54 forks source link

Make names consistent with Scala style guide #4

Closed ghost closed 10 years ago

ghost commented 10 years ago

From Scala style guide:

Textual (alphabetic) names for methods should be in the camelCase style with the first letter lower-case
jsuereth commented 10 years ago

In this case, I'm going to disagree with the style guide.

The method we have is similar to the following:

object DoStuff {
  def apply(...)....
}

In code you still write DoStuff(...). I understand it's a general convention, but most factories are capitalized, hence I'm mimicking that to cause less confusion about what's happening.

In any case, if it helps, that method will go away once AutoPlugins are introduced in chapter 11.

ghost commented 10 years ago

Thanks for answer.