Scala Enumerations

Should you use Scala’s built in scala.Enumeration class, or roll your own sealed class objects? The answer depends on which you value more: having a single lightweight class, or better type safety.

If you want to skip the detail, just know to use scala.Enumeration if you need to limit the number of classes; otherwise prefer case objects or classes.

Continue reading…

Tools to guide code quality

Earlier this month Noel wrote about appropriate use of code reviews.

In this post I am going to look at a couple of tools you can use to cover the mechanical aspects of code reviews. Automated tools provide a low effort way of staying on top of the health of your code base. They can not tell you everything, but they will ensure that common issues are found without it requiring a lot of human cycles.

Continue reading…

AngularJs vs React

AngularJS and React are two of the most prominent Javascript UI frameworks today. It is natural to ask which is best. Having some experience with both my opinion is that React is superior by a large margin.

I’ll get into why in a moment, but first some background so you can understand how I came to this conclusion. I’m not very experienced with either framework. I have written some small projects in AngularJS. I’ve spent about three days porting part of a medium sized AngularJS project to React, which prompted this writeup. It’s possible with more experience of both frameworks I would come to a different conclusion, but for reasons I explain at the end I don’t think this will be the case.

With that out of the way, on to my comparison.

Continue reading…

Scala Exchange New Speaker Programme Closing Soon

Scala Exchange 2014 submissions are due in only 3 weeks. For the first time, Underscore are offering assistance to new speakers. We’ve had a great uptake for our programme, and we are closing the programme to new applicants on Friday, 15 August.

What does the programme get you? We’ll help you formulate a great talk proposal, provide speaker training, and assist will writing your presentation all for free. And we’ll also help cover costs for travel and accommodation.

You only have a week left to apply, so if you’re thinking of doing so sign up now.

(If you’re thinking of attending Scala Exchange, but not speaking, you still have time to apply for assistance. That part of the programme will close much later.)

Continue reading…