Scala Enumerations – Return of the (Java) Jedi

Second part of Scala enumerations, after some discussions. Looking at enumerations libs overheads, and Java enums as an alternative.

Similar

How to use a Java HashSet by example

What is a HashSet A HashSet is an unordered collection containing unique elements. It has the standard collection operations Add, Remove, Contains, but since it uses a hash-based implementation, these operations are O(1) Learn with a Programming Question ... (more…)

Read more »

The Modern Java Platform

Many developers were burned by the overly complex world of Java back in the early 2000s. The Gang of Four patterns and middleware / J2EE / Java EE led to ridiculous levels of alleged decoupling as is evident in this sequence diagram from an open source J... (more…)

Read more »