adurolucis / playground

0 stars 0 forks source link

Collect Tips #1

Open msavoury opened 10 years ago

msavoury commented 10 years ago

I'm sure that as we progress we'll have small chunks of knowledge that'll be useful. We need to decide where these miscellaneous tips will go.

msavoury commented 10 years ago

classes (and objects) from scala.collection.mutable are not imported by default. ex: ArrayBuffer

flyright31 commented 10 years ago

At least for ScalaTest "-cp .:~/lib/scalatest....jar" does not compile where as "-cp ~/lib/scalatest...jar:." (notice the current directory is added at the end) does. I need to find out why, if it's on the classpath it needs to be the first one.

msavoury commented 9 years ago

Always explicitly define a return type for methods, especially in a public API, and use the most general return type that you can