scala in eclipse - eclipsecon europe 2019 · why you should profit today. scala now or java 8...
Post on 30-May-2020
5 Views
Preview:
TRANSCRIPT
Mirco Dotta <mirco.dotta@typesafe.com> @mircodotta
For Profit & FunScala in Eclipse
EclipseCon 2013, Ludwinsburg
Agenda
• What is Scala?
• Scala PDE
• Scala or Java8?
0
25
50
75
100
20072008
20092010
Region 1 Region 2
What is Scala?
JVM language
Mature
Since 2001
Current Version 2.10
http://www.thoughtworks.com/radar
Lightweight Syntax
FunctionalObject Oriented
Statically Typed
Unifier
Interoperable with Java
Use any Java library
Mixed Scala/Java projects
Let’s see it in action!
Set up in 3 simple steps
Scala Plug-in Development Environment
• Install Scala IDE (http://scala-ide.org)
• Add Scala Library bundle in the dependencies
• Add Scala Nature to your project
Maven support for Scala
Maven, Tycho & Scala
<plugin> <groupId>net.alchim31.maven</groupId> <artifactId>scala-maven-plugin</artifactId> <version>${scala.plugin.version}</version></plugin>
<dependency> <groupId>org.scala-lang</groupId> <artifactId>scala-library</artifactId> <version>${scala.version}</version></dependency>
Scala Library dependency
Scala Mavenplug-in
2.10.3
3.1.5
Why you should profit today.
Scala now or Java 8 tomorrow?
• Java 8 ships in spring 2014
• But when Eclipse API w/ lambdas & default methods?
• Why waiting when you can use Scala today and profit?
• Concise
• Better type safety guarantees than Java.
• Extremely flexible (e.g., easy to write DSLs)
Learning Scala?
• https://www.coursera.org/course/progfun
Books
http://typesafe.com/resources/free-books http://www.artima.com/pins1ed/
Thanks!
mirco.dotta@typesafe.com@mircodotta
http://scala-ide.org@ScalaIDE
Links to all resources used in this talk
Resources
• http://www.scala-ide.org/
• https://github.com/dotta/eclipsecon-eu-2013
• https://github.com/dotta/eclipsecon-java-editor
• Based on http://www.vogella.com/articles/EclipseEditors/article.html
• https://github.com/dotta/eclipsecon-scala-editor
top related