Refactoring a year/month representation in Java, Scala, and Clojure
Java Scala Clojure
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
LICENSE
README.md
refactJavaScalaCloj.iml
refactJavaScalaCloj.ppt
typeSafetyJavaScalaCloj.ppt

README.md

refactJavaScalaCloj

A demonstration of refactoring a year/month representation in Java, Scala, and Clojure. This is the source code from the examples in my blog post: http://glenpeterson.blogspot.com/2013/09/expression-problem-java-vs-scala-vs.html

The Java files are meant to be compiled and run:

cd src
$JDK_HOME/bin/javac RefactJava1.java 
$JDK_HOME/bin/javac RefactJava2.java 

$JDK_HOME/bin/java RefactJava1
$JDK_HOME/bin/java RefactJava2

The Scala files can be compiled, then evaluated in a REPL, or just evaluated (you have to use multi-line mode if you don't compile first)

Scala Compile (optional):

$SCALA_HOME/bin/scalac RefactScala1.scala 
$SCALA_HOME/bin/scalac RefactScala2.scala

The Clojure files are meant to be evaluated in a REPL. You can open them in LightTable and make the buffer an InstaRepl.

Copyright 2013 Glen K. Peterson http://www.apache.org/licenses/LICENSE-2.0