@codemonkeyism

the blog for developers

Experiences with Scala and Liftweb – eventsofa

Welcome back. My employer was bought by eBay at the beginning of 2011 and most of my time in 2011 was taken by work. 2012 has come and I revive this blog – beginning with this post and moderation of some hundred comments.

My wife founded a startup called eventsofa to make the German event location market transparent.

Although I’m not directly involved in development, during breakfast and dinner I obviously influence technology decisions and get feedback on those (and talking to the developer). One decision was to use Scala and Liftweb, because I thought they would greatly increase productivity.

There has been some light and some shadow. From watching a developer, Scala is more productive than Java, but only slightly. This also the experience from my own private work with Scala. You need to type less, tuples, pattern matching and functions are helping here. In Java you would need much more boilerplate. But IDE support (Intellij IDEA) is so much worse for Scala, that most of the productivity gains are eaten by errors that are only encountered during compilation.

Compilation takes much longer too and I don’t think the compiler is slow, but the reason is that Scala creates 10x more classes for your classes. And this takes time to compile. SBT seems to work though with ~compile, one problem remaining that you need to have a shell open and visible to see compilation results. Not everything without error flags in the IDE does compile.

Liftweb seems to be a mixed blessing too. CSS selectores are brilliant and beautiful – really – for separating HTML and logic. Rogue is also an excellent ORM for MongoDB. Type-checked queries are much nicer than using Strings for queries. Box is something like Option in Scala, extended with error and failure conditions. But it’s not enough integrated with Option and there is always the clash between frameworks that use Option and Lift that uses Box as an idiom. Box should be something that is part of the Scala core. I like Box better than Scalaz Validation, though people tell me Validation is more powerful. The lift tryo idiom is nice and short, converting Exceptions into Boxes.

The downsides of Liftweb are plentyful though. There is no good practice page. The existing books are introductions, but do not show good practices. With the myriad of options to do things, it seems that you always do it wrong. The mailing list results are usually not very useful, and the project has no clear direction. Why does one need to add each page to Boot? Why no annotations? While the parameter extraction for REST style URLs is nice, as it does provide variable checks, one would prefer this inside the controller class. The main downside seems to be the complexity of Lift. Onboarding developers (students) seems to be a pain. I also think I never again suggest to someone using a web framework that is dominated by one person. We had bad experiences at work with Tapestry, the same seems to be in effect with Lift.

Watching someone develop with Lift, one major issue is turn around. It’s too slow. Playing with the Play framework shows how to get fast turn around times for compilation and error checking. Comparing the error messages in Lift with the error messages in Play and how they are displayed (source in the case of Play) shows how Play is so much mor developer focused than Lift.

Ideally a framework will emerge with such good developer focus as Play, and CSS selectors and Rogue and Slashem support like Lift. I at least will not suggest Lift anymore in the future to people to use.

Those were some impressions I got when talking about eventsofa development – more impressions in some upcoming blog posts.

Opened Registration for CTO Startup School Berlin

I’ve opened the Registration form for CTO Startup School Berlin. Booked out, adding a waiting list.

CTO Startup School Berlin, 5th of March

Because many people asked me privatly about technical startup questions, I thought about batching those up and organizing a workshop for technical startup questions. Booked out, adding a waiting list.

So there will be a CTO Startup School Berlin day on the 5th of March, from 9:00 to 18:00. The number of people is limited to 20, entry is free.

Agenda

  1. Introduction (CTO role, company phases)
  2. Development (Process, agile/lean, quality, project managment, estimation, introducing change, tools/setup)
  3. Plattform (Programming languages, frameworks, storages, persistence, time to market, maintenance)
  4. Operations (Deployments, releases, hosting, cloud, architecture, hardware, monitoring)
  5. Scaling (models, costs, where/what/when)
  6. Hiring (Outsourcing, process, headhunter, interview questions, telephone screening, layoffs)
  7. Other (Portfolio management, innovation, KPIs/metrics, internal IT, backup, security, CD/DR)

There will be a registration site this week. If you miss something, leave a comment.

Guide to CodeMonkeyism

Over the last 4 years I wrote many articles on this blog. To make it easier for you to find the relevant ones, I've organized them into topics.

Top 10

6 reasons why my VC funded startup did fail

Go Ahead: Next Generation Java Programming Style

Java Interview questions: Write a String Reverser

The dark side of NoSQL

7 Bad Signs not to Work for a Software Company or Startup

Is Java dead?

Scala vs. Clojure

Never, never, never use String in Java

No future for functional programming in 2008 – Scala, F# and Nu

Clojure vs Scala, Part 2

Java Developer

Is Java Dead?

Go Ahead: Next Generation Java Programming Style

Be careful with magical code

All variables in Java must be final

Never, never, never use String in Java

Bending Java: More readable code with methods that do nothing?

NoSQL Guy

NoSQL: The Dawn of Polyglot Persistence

The dark side of NoSQL

Essential storage tradeoff: Simple Reads vs. Simple Writes

Sharding destroys the goals of your relational database

The unholy legacy of databases

Startup/CTO

Development Dream Teams

6 reasons why my VC funded startup did fail

American vs. European style of Software Development

12 Things to Reduce Your Lead Time and Time to Market

The high cost of overhead when working in parallel

Essential storage tradeoff: Simple Reads vs. Simple Writes

Job Seeker

Another Good (Java) Interview Question

7 Bad Signs not to Work for a Software Company or Startup

Java Interview questions: Write a String Reverser (and use Recursion!)

Java Interview questions: Multiple Inheritance

As a Manager: What I value in developers

Top 10 Tips (+1) to Get a Pay Raise

Agilist

What Developers Need to Know About Agile

5 Practices Better to Change in Your Scrum Implementation

Scrum is not about engineering practices

ScrumMaster and ZenMaster: The joke of certification

What is Trans-Scrum?