scala

TwitterFacebook
Get flash to fully experience Pearltrees
macros

scaladays2012

This lesson covers testing with Specs, a Behavior-Driven Design ( BDD ) Framework for Scala. extends Specification nested examples Execution Model Setup and TearDown doFirst doBefore doAfter Matchers mustEqual contains sameSize? Write your own Mocks Spies run in sbt extends Specifcation Let’s just jump in. import org.specs._ object ArithmeticSpec extends Specification { "Arithmetic" should { "add two numbers" in { 1 + 1 mustEqual 2 } "add three numbers" in { 1 + 1 + 1 mustEqual 3 } } }

Scala School - Testing with specs

http://twitter.github.com/scala_school/specs.html

Scala 2.8 Collections API -- Performance Characteristics

http://www.scala-lang.org/docu/files/collections-api/collections_40.html The previous explanations have made it clear that different collection types have different performance characteristics. That's often the primary reason for picking one collection type over another. You can see the performance characteristics of some common operations on collections summarized in the following two tables . Performance characteristics of sequence types. Performance characteristics of set and map types.
http://twitter.github.com/effectivescala/

Effective Scala

Table of Contents Other languages 日本語 Русский 简体中文 Introduction Scala is one of the main application programming languages used at Twitter.
Other Languages: Русский About Scala school started as a series of lectures at Twitter to prepare experienced engineers to be productive Scala programmers. Scala is a relatively new language, but draws on many familiar concepts. Thus, these lectures assumed the audience knew the concepts and showed how to use them in Scala. We found this an effective way of getting new engineers up to speed quickly.

Scala School

http://twitter.github.com/scala_school/
collections

Escalate software is in the process of creating a series of screencasts for Scala information sharing and training purposes. The first available screencasts are provided here for free and cover the new features of Scala 2.8. In the longer term we will create training materials in the form of these videos along with supporting material that will be for sale from this and other sources as well. http://www.escalatesoft.com/screencasts

Escalate Software

scalafx

sbt

continuations

jpa

Functional Scala: Essential list functions

In the last two episodes we came up with the basic idea of persistent (read immutable) list-like data structures and how to construct and deconstruct (read pattern match) them using a sugarized notational form. We also talked big about their non-destructive nature when it comes to e.g. updating a given list or removing some elements. In this episode, we’ll finally inspect some of those commonly used list functions. http://gleichmann.wordpress.com/2011/04/10/functional-scala-essential-list-functions/

wip experiment | Scala IDE for Eclipse Space | Assembla

https://www.assembla.com/spaces/scala-ide/wiki?id=scala-ide&wiki_id=wip_experiment Requirements version 1.5.0 or newer of the Java Development Kit . There have been issues with Eclipse and Java 7 . Version 3.6.x of Eclipse (Helios).

The easy and digestable way to understand view in Scala

http://www.evolutionnext.com/blog/entry/title/The+easy+and+digestable+way+to+understand+view+in+Scala.html Views can be difficult to understand. It is presented at times in a way that can make it even more difficult to understand. In creating a Scala Koan , I decided to make a koan that makes it easy to grok what a view is all about.

Betting Exchange Research Blog: Moving from Java to Scala - One year later...

Reading this Scala evaluation please put a bit of attention to what is it about and what it is not. For sure, I'm not trying to examine Scala just by looking only at its design, syntax and other language capabilities. Instead of that, I'm aiming to answer the questions raised in the introduction above. http://blog.danmachine.com/2011/01/moving-from-java-to-scala-one-year.html
lift

Scala Examples - Advanced

To compile and run on Windows one of the above Scala programs, let's say sort.scala , we can simply proceed as follows: > mkdir classes > scalac -d classes %SCALA_HOME%\doc\scala-devel\scala\examples\sort.scala > scala -cp classes examples.sort [6,2,8,5,1] [1,2,5,6,8] The name of the Scala executable is examples.sort where examples is the name of the package containing the sort object. http://www.scala-lang.org/node/44
actors

Querying a Dataset with Scala's Pattern Matching

This post is about matching patterns against collections, combining patterns in interesting ways and defining patterns in terms of other patterns. Patterns defined in this way look and feel like a lightweight, domain specific query language. Very little supporting code is required. A Dataset and a Query
akka

Update to this post: I have upgraded the examples to Akka 1.0-RC1. this newer post might be more helpful. I recently started playing around with Scala. I had read a lot about Scala before but never got around really doing anything with it. I was looking for some (probably Java) libraries that would make a couple of things really easy: Easy concurrency Interop with Java or in Java Distributed computing nodes Event driven Highly scalable Low bandwidth usage for communicating between nodes (so no XML) Pluggable data format Easy development of message exchanges, asynchronous, one way, two way, synchronous, etc Possible (but hopefully not necessary) distributed state/database Reliable when failures happen Easy integration with a range of communication protocols / endpoints At first I found BSON as a data format, as part of the mongodb project. Quick after that I found Google Protobuf which was a better candidate for me.

Ray Roestenburg | Code: Starting with Akka and Scala