Urs Peter

State of the union of html5 in the mobile revolution

Urs Peter

Being relatively new to html5 and mobile development I spotted an excellent opportunity to catch up with the latest trends during the QCon conference in San Fransisco where they offered a wide variety of html5 and mobile tracks.

In this blog I’ll share the insights I gained during the conference. After reading it you should have an overview of the following:

  • where html5 is right now and where it is heading to with regard to mobile development
  • the benefits and drawbacks of html5 for web-apps compared to native apps
  • how to bridge some of the shortcomings of html5 with regard to native apps
  • valuable pointers to resources helping you to get started with html5 mobile development

 Read more

Easy breezy restful service testing with Dispatch in Scala

Urs Peter

For testing a restful service API I was looking for a lean library, which would allow me to test CRUD operations of rest services with as little code as possible.

My search led me to Dispatch, which is a highly compact Scala DSL wrapper around Apache’s reliable HttpClient. This DSL, however, is not very well documented and rather hard to decipher due to it's heavy usage of symbolic method names but nevertheless highly appealing when understood.

In this blog I'll decipher it for you and show how easy it is to test restful services with mere oneliners.

 Read more

Comparing Apples to Pears in Scala - or Abstract Types to the Rescue

Urs Peter

Abstract types in Scala can make your life much easier. In this blog I’m going to recap my intellectual journey to compare 'apples to pears' in a typesafe manner, which led me to abstract types.

 Read more

Scala Options the slick way

Urs Peter

The Scala Option type is key for dealing with variables that can have values or not. Most libraries and applications make use of this handy type. However, it's usage in certain cases can lead to rather verbose code. This blog explains how to deal with this particular case in an elegant way using implicits. Read on to see how easy it is to tailor any kind of existing Scala type to perfectly fit your needs based on an example with Options.
 Read more

Visiting the breeding grounds of Scala: EPFL

Urs Peter

This week I visited the stronghold of Scala, EPFL, in order to certify as 'official' Scala Trainer. It was an impressive visit, whose highlights I have transformed into this blog.
 Read more

Configuration-hell remedy with Singleton injection

Urs Peter

One of the most heard complaints about Spring projects is the seemingly unavoidable configuration-hell that silently creeps in every bigger project after some time.

Singleton injection is a simple practice that can significantly reduce configuration and corresponding injection code. Besides that, it provides possibilities you might not have been aware of enabling you to get most out of Spring. In this blog you will learn which advantages Singleton injection provides. It illustrates how to implement it and specifies clear guidelines in which circumstances it is applied best.

Where applicable, Singleton injection can be an elegant solution that provides significant code and configuration simplification.

 Read more