A full day, Scala hands-on workshop, that takes your typical Java code that you use day after day, and transforms into idiomatic functional Scala code. The result? Cleaner and more concise code.
We cover the “scala-fication” of:
We will also cover new topics if you are new functional programming like:
This session is a workshop. Please come prepared.
Hello! Welcome to Scala for Java Developers!
This is a fairly straightforward workshop. Being as it may, there are a few things you need before you arrive.
Make sure that the following commands work on your command line:
javac -version
java -version
scalac -version
scala -version
This is a premier conference for Java developers so I will leave it up to you to make sure that javac and java work as expected.
As for Scala, which you may not be familiar with, the rule a similar.
Download Scala zip or .tar.gz from http://www.scala-lang.org/download
Uncompress the zip or .tar.gz into your favorite location for JVM binaries and note the location
Map a SCALA_HOME environment variable to the location where you just unzipped the Scala binary
Append to your pre-existing PATH environment variable; %SCALA_HOME%\bin for Windows and $SCALA_HOME/bin for MacOSX and Linux.
Editors
Though it is not mandatory, you may want to set up your editor or IDE of choice with a plugin that will enhance your experience with syntax highlighting and additional tools in the Scala programming language. Here are some options:
Eclipse - The Eclipse has an IDE plugin for Scala called aptly scala-ide. All the information about the plugin can be found at http://scala-ide.org including an easy to follow along video located at http://scala-ide.org/docs/current-user-doc/gettingstarted/index.html
IntelliJ - IntelliJ has a Scala plugin that can be found by going to Settings -> Plugins, clicking on 'Browse Repositories' button and searching for the 'Scala' plugin on the left. Right click on the 'Scala' and choose 'Install'. IntelliJ will prompt you to restart the IDE, do so, and enjoy.
NetBeans - Currently, Github user 'dcaoyuan' hosts a NetBeans Scala plugin at the address: https://github.com/dcaoyuan/nbscala. I have not tried this out since the number of NetBeans users has shrunk in recent years. If you are an avid NetBeans user, and wish to try it, you can let me know the results during the session. There is additional information at: http://wiki.netbeans.org/Scala
Emacs - Github user 'aemoncannon' has created 'ENSIME' (ENhanced Scala Interaction Mode for Emacs) at the address and has a great following. https://github.com/aemoncannon/ensime with some documentation at http://aemoncannon.github.io/ensime.
VIM - For VIM users you can use https://github.com/derekwyatt/vim-scala as a VIM plugin that offers Scala color highlighting
That's all and see all of you real soon.
Daniel is a programmer, consultant, instructor, speaker, and recent author. With over 20 years of experience, he does work for private, educational, and government institutions. He is also currently a speaker for No Fluff Just Stuff tour. Daniel loves JVM languages like Java, Groovy, and Scala; but also dabbles with non JVM languages like Haskell, Ruby, Python, LISP, C, C++. He is an avid Pomodoro Technique Practitioner and makes every attempt to learn a new programming language every year. For downtime, he enjoys reading, swimming, Legos, football, and barbecuing.
More About Daniel »