• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Absorbing Scala Into Java Ecosystem
 

Absorbing Scala Into Java Ecosystem

on

  • 3,456 views

Absorbing Scala In the Java Ecosystem

Absorbing Scala In the Java Ecosystem

Statistics

Views

Total Views
3,456
Views on SlideShare
3,389
Embed Views
67

Actions

Likes
6
Downloads
45
Comments
0

4 Embeds 67

http://www.slideshare.net 53
http://www.linkedin.com 10
https://www.linkedin.com 3
http://www.slideee.com 1

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Absorbing Scala Into Java Ecosystem Absorbing Scala Into Java Ecosystem Presentation Transcript

    • Absorbing Scala in the Java Ecosystem Eishay Smith kaChing
    • Who Am I kaChing - Rocking the inventing world ! Ex - Scala @ LinkedIn Blogging http://www.eishay.com Also today:          "A First Look at Scala on Google App Engine"
    • On the menu Getting started Scala and Java Runtime Build IDEs Test People
    • Getting started Silicon Valley Base camp '08 David Pollak, Bill Venners BASE: Bay Area Scala Enthusiasts Once a month Twitter (San Francisco) LinkedIn (Mountain View) Java Posse  Blogs and Twitter
    • Scala and Java  Different syntax and philosophy Unlike the Groovy (which we love !) you can't write Java syntax in Scala   Better interoperability Compiles to the same classes and interfaces Given a Jar its hard to tell where it came from Type safe  Easily sharing libraries, both ways Profiling, JMX, Serialization ....
    • Runtime Behave the same on runtime Your SysAdmin/Ops won't tell the diferance As fast as Java Static types, no introspection (see dynamic languages) Using primitives (though they look like objects) Better concurrency patterns (see Actors) Taking advantage of the JIT Makes the GC happy (immutability FTW)
    • Build Scalac knows how to read java code ! Needed for circular dependencies.
    • Testing Scala has some great Testing frameworks Specs, ScalaTest They do integrate nicely with existing frameworks  Can use bare bones JUnit (any version)  ANT JUnit plugin does not work with Scala Sources But does work with class files JUnit may use static suite() methods in the test class Problem: no static methods in Scala There is a solution
    • JUnit, ANT & Scala Instead of Use
    • Getting around static methods  
    • Your organization Integrating smartly with current Java project Use one way dependency Keeping the Scala illiterate IDEs happy Not everyone will jump on the wagon Take advantage on your IoC framework Spring/Guice Use Java interfaces to make the IDE happy
    • IDEs Good Support by the three big IDEs out there Eclipse, NetBeans and IDEA Healthy competition Soon to come: better IDE support Martin Ordersky is working on improving the IDE support with better compiler infrastructure Scala plugin does not come with the IDE Other team members may not install it
    • Get people interested Host a Scala BASE Invite Scala Speakers Lunchtime talks   TShirts
    • Getting started (for real this time) Scala is more then just nice syntax You may start writing Java code in Scala Start with testing Not with production code Test Java code from Scala Once way dependency Absorb Scala slowly, don't get drunk ! Your first Scala code will not be perfect It takes a while to understand the Scala philosophy
    • We Are Hiring !