Scala

  • submit to reddit

Binding Scala Objects to Swing Components

If you do Swing application development, especially the enterprise application type you know lots of code that looks like this: public class Person { ...

0 replies - 4281 views - 07/23/11 by Jens Schauder in Articles

Scala: Rolling with implicit

We’ve been coding in Scala on my project for around 6 weeks now and are getting to the stage where we’re probably becoming a big dangerous with our...

0 replies - 3566 views - 07/19/11 by Mark Needham in Articles

Daily Dose: Miguel Garcia Talks Scala and .Net

Miguel Garcia, a member of the Scala group at EPFL, gave an insightful, informative interview at scala-lang.org regarding his Microsoft-funded efforts to make...

0 replies - 21133 views - 07/18/11 by Jim Moscater in Daily Dose

Scala: Pattern matching a pair inside map/filter

More than a few times recently we’ve wanted to use pattern matching on a collection of pairs/tuples and have run into trouble doing so. It’s easy...

1 replies - 5841 views - 07/14/11 by Mark Needham in Articles

Scala: An attempt to eradicate the if

In a previous post I included a code sample where we were formatting a page range differently depending on whether the start page and end pages were the...

0 replies - 3202 views - 07/13/11 by Mark Needham in Articles

Datatype generic programming in Scala - Fixing on Cata

The paper Functional Programming with Overloading and Higher-Order Polymorphism by Mark P Jones discusses recursion and fixpoints in a section Recursion...

0 replies - 3114 views - 07/12/11 by Debasish Ghosh in Articles

Cloud Computing Heterogeneity will require Cloud Integration - Apache Camel is already prepared!

Cloud Computing is the future – if you believe market forecasts from companies such as Gartner. I think so, too. But...

0 replies - 5283 views - 07/11/11 by Kai Wähner in Articles

Scala: Traits galore

We recently came across a problem where we had some logic that we wanted to be used by two classes. Our original thought was to pull it up into an...

2 replies - 3973 views - 07/10/11 by Mark Needham in Articles

Scala: Self type annotations and structured types

A few days ago I tweeted that I didn’t really see the point in structured types in Scala… Not sure I understand where you would use structural types...

0 replies - 4710 views - 06/27/11 by Mark Needham in Articles

Apache Camel and Scala: A Powerful Combination

I really like the integration framework Apache Camel and I also like Scala a lot. This article shows the basics of this combination. It is NO introduction...

1 replies - 7891 views - 06/27/11 by Kai Wähner in Articles

Scala/Mustache: Creating a comma separated list

We’re using the Mustache templating engine on my project at the moment and one thing that we wanted to do was build a comma separated list. Mustache is...

1 replies - 3939 views - 06/23/11 by Mark Needham in Articles

Scala: val, lazy val and def

We have a variety of val, lazy val and def definitions across our code base but have been led to believe that idiomatic Scala would have us using lazy val...

1 replies - 3656 views - 06/23/11 by Mark Needham in Articles

Composing Heterogeneous DSLs in Scala

When we use DSLs to model business rules, we tend to use quite a few of them together. We may use a DSL for computing date/time, another one for ...

0 replies - 3265 views - 06/14/11 by Debasish Ghosh in Articles

Scala: Setting a default value

We wanted to try and generate a build label to use for the name of the artifacts archive that gets generated each time we run the build but wanted to...

4 replies - 3285 views - 06/13/11 by Mark Needham in Articles

A few short notes on converting SBT plugins to 0.10.x

I just finished converting my FindBugs SBT plugin “findbugs4sbt“ to SBT 0.10.x. FindBugs? What’s that? – Go have a look at its website, and then use...

1 replies - 2965 views - 06/10/11 by Joachim Hofer in Articles