List/Grid Scala Subscribe to the RSS feed of category Scala

Gang of Four Patterns With Type-Classes and Implicits in Scala (Part 2)
Type-classes are a powerful tool for library creators and maintainers. They reduce boilerplate, open libraries to extension, and act as a compile time switch. Similarly, the GoF patterns ...

Dependency injection with Scala macros: auto-wiring
You can look at dependency injection as a fancy name for passing parameters to a function (or constructor arguments to a constructor). However usually, DI containers do much more than ...

Gang of Four Patterns With Type-Classes and Implicits in Scala
Type-classes, as they’re known within the Scala language, have a wonderful place in library development. They make code open to extension, less verbose and simplify APIs. I’ve yet ...

Futures in Akka with Scala
Akka is actor based, event-driven framework for building highly concurrent, reliable applications. Shouldn’t come a surprise that concept of a future is ubiquitous in a system ...

Using Twitter4j with Scala to perform user actions
Introduction My previous post showed how to use Twitter4j in Scala to access Twitter streams. This post shows how to control a Twitter user’s actions using Twitter4j. The primary ...

Complex Numbers in Scala
Overview I recently delivered an introductory talk about Scala at an internal geek’s event at SAP. In this talk, I used an example complex numbers class to illustrate important ...

Using twitter4j with Scala to access streaming tweets
Introduction My previous post provided a walk-through for using the Twitter streaming API from the command line, but tweets can be more flexibly obtained and processed using an API ...

Scala pattern matching: A Case for new thinking?
The 16th President of the United States. Abraham Lincoln once said: ‘As our case is new we must think and act anew’. In software engineering things probably aren’t ...

Dry parameter names
How often do you see code like this, especially when using dependency injection, single-responsibility principle, and other “good practices”? class ...

Scala: Collections 1
This post contains some info on Scala’s collections. Problem? We want a function that will take an List of Rugby players as input and return those players names that play for ...

