For this example, we will configure the Java compiler to allow JDK 5.0 sources....– From Maven’s getting started guide. Not exactly what I would call simple, though. In SBT I write “javacVersion := 1.5” and that’s it …  http://maven.apache.org/guides/getting-started/index.html
GeekGirlMeetup Berlin 2012
emilymaygreen: I’m organising a tech conference for women. I’ve been involved with this in both London and Stockholm, and now I want to do the same in Berlin. It’s a nice chance to get women who wouldn’t normally speak to speak, and it’s also just super lovely to totally geek out in all-female company. It makes a lovely change to usual. Sign up is...
If only I knew better: Using pom.xml in SBT
I want sbt to get the dependencies from an existing pom.xml (Maven) file. Reading through the sbt documentation it seems like sbt should actually do that automatically if an pom.xml is there. It doesn’t do it for me though (sbt 0.11.3). Since I couldn’t find anything on the web and the IRC channel couldn’t help out either here’s my makeshift solution: ivyXML :=...
The Fun Club: What is Functional Programming? →
thefunctionalclub: First meetup of The Fun Club was last night. The topic was “What is Functional Programming?”. We were graciously hosted in the SoundCloud offices, and they even provided us some lovely pizza and beer. Thank you! We started off with a quick talk from myself and Markus to explain some of…
Seriously - you can’t make an argument that a language is better, or...– dpratt99 on “How to avoid scaring off beginners with advanced [Scala] answers?”
Scala Trivia: Streams
In Scala a Stream is a lazy list, that is a list whose elements will only be evaluated when they’re actually requested. This makes it possible to create infinite lists, which can be very handy. To demonstrate one of the possible use cases I take a scenario I’ve just had: While going through a list of items I want one item (e.g. the first one) to get special treatment. Coming from a...
Java Unit Tests, ScalaTest and SBT
Say you have a mixed Java/Scala project and you have a couple of Java unit tests. While sbt automatically runs tests from the usual Scala test frameworks (specs, ScalaCheck, ScalaTest) it won’t run your Java tests per defaut. Building Java sources with sbt is no problem, though. It comes for free, given the following project structure: src | |-- main | | | |-- java | ...
Scala Trivia: collect
In today’s (first) Scala Trivia post I’m gonna say a word or two about the method named collect, which you can use on collections. For me this was new since I’d always thought that collect - knowing it from Smalltalk - was simply the same as map, which it is not. The difference is that while map requires a complete function, collect only needs a partial one. I also use Ruby...
I decided that I should start blogging quite some time ago already, but only recently have I started doing it. Looking for the right platform for this I ended up with the following options: Wordpress Tumblr Posterous My own creation Now reinventing the wheel doesn’t make much sense most of the time. So I scratched the last one pretty fast. My first little blog entry I’ve created...
Scala Maps & Arrays
The first thing a Java developer switching to Scala will notice about arrays is that you don’t access their elements using brackets. Instead you use parentheses. val arr = Array[String]("hallo", "welt") arr(0) = "tschüss" require arr(0) == "tschüss" I’ve already known about apply making objects look like functions, which is used here for accessing the array’s elements. What...