Programming Scala - book

Anonymous's picture


Programming Scala is a new book on Scala, written by Dean Wampler and Alex Payne.

The rough cuts version of this book is released under Creative Commons Attribution - noncommercial.

The table of contents of this book are tuned from the point of view of the programmer.

The online book is available here http://programming-scala.labs.oreilly.com/

Here is a simple illustration of XML data to string conversion in Scala and assertion of the element type.

  1. import scala.xml._
  2.  
  3. val someXMLString = """
  4. <projects>
  5. <project>
  6. <name>Tacos</name>
  7. <desc>Twincling Automatic Configuration Service</desc>
  8. </project>
  9. </projects>
  10. """
  11.  
  12. val someXML = XML.LoadString(someXMLString)
  13.  
  14. assert(someXML.isInstanceOf([scala.xml.Elem])
So, check out this online book and give a boost to learning Scala.

Comments

mukund's picture

The animal on this book of

The animal on this book of Scala
It's a tapir, specifically a Malayan Tapir. Tapirs look at first blush like a "hybrid" animal; a cross between a pig and a bear, perhaps. As Scala is a hybrid of object-oriented and functional programming, so O'Rielly guys think the tapir is a great mascot.

Post new comment

CAPTCHA
Thank you for using Captcha to prevent automated spam submissions.
Image CAPTCHA
Enter the characters (without spaces) shown in the image.