From cc20365b7d5fc99fe2b089cf7071832e1404b29c Mon Sep 17 00:00:00 2001 From: Jakob Odersky Date: Fri, 1 Jun 2018 09:41:03 -0700 Subject: Add best practices for Scala --- readme.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/readme.md b/readme.md index b2888f7..88da1fc 100644 --- a/readme.md +++ b/readme.md @@ -101,3 +101,17 @@ Use `lint-staged` to auto-call prettier in a `precommit` "`script`": ## 🕸 Browsers 🕸 * Avoid supporting versions of Internet Explorer before IE11. + +## Scala + +* Formatting, style checking and linting is automated by [our common + build tool configuration](https://github.com/drivergroup/sbt-settings). + +* Start with simple code and abstract as it becomes necessary. Follow + the [Principle of Least + Power](http://www.lihaoyi.com/post/StrategicScalaStylePrincipleofLeastPower.html). + +* Avoid exposing library-specific types in shared code (such as Scalaz + etc). You're free to experiment with those libraries within + services, however a more conservative approach should be taken in + shared modules. -- cgit v1.2.3