Skip to content

For Developers

nestorpersist edited this page Aug 16, 2012 · 21 revisions

Scala Version

OStore currently uses Scala 2.9.1.

Development Guidelines

  • Use Scala formatter with default settings for all code.

  • Before checkin

    • all code (core and ui) must compile

    • all unit tests must pass. In core run

        sbt 
        test-only com.persist.unit.*
      
  • Things to (mostly) avoid

    • var
    • return
    • waits
    • Java libraries (where there is a good scala alternative)
    • semicolons (unless required)
    • null (use Option)
    • any concurrent access to mutable data
  • Things to use

    • actors
    • immutable collection types

ScalaDoc

To generate Scala doc

cd core
sbt doc
open file core/target/scala-2.9.1/api/index.html
Clone this wiki locally