Adventures in Scala
Have you discovered Scala? I did and I'm keeping track of it here, recording my experiments and lessons learned. -- Steve
Loading feed
Posted by Steve Yen on January 24, 2008 at 11:40pm — 1 Comment
package scalanateimport scala.xml._Continue
import java.util.Date
import org.hibernate._
import org.hibernate.cfg._
class Event {
var id: Long = 0L
var title: String…
Posted by Steve Yen on January 24, 2008 at 7:08pm
"a calculator" should {
"provide an add operation" in {
"a" | "b" | "result" |>
1 ! 2 ! 3 |
5 ! 2 ! 7 |
3 ! 0 ! 3 | {
(a: Int, b: Int, result: Int) => { calc.add(a, b) must_== result }
}
}
}
Posted by Steve Yen on December 20, 2007 at 9:54am
mvn archetype:create -U \
-DarchetypeGroupId=net.liftweb \
-DarchetypeArtifactId=lift-archetype-blank \
-DarchetypeVersion=0.3.0 \
-DremoteRepositories=http://scala-tools.org/repo-releases \
-DgroupId=com.test… Continue Posted by Steve Yen on December 19, 2007 at 9:30pm
Loading feed
Loading feed
Loading feed
© 2012 Created by Steve Yen.
Powered by
.