It is possible to create a generic class, that would have parts of it aware of the actual class of its type argument. Without reflection and linked in compile time. Here is how.
Read more…Ever seen "Failed to initialize compiler: object scala.runtime in compiler mirror not found." error? Delete a corrupted JAR file.
Read more…Am I using Scala's string interpolation too much?
s"${ph.firstName} ${ph.lastName}${ph.credentials.map(", " + _).getOrElse("")}"
JVM engineers published JMH to Maven recently, it is finally simple to benchmark java code performance
Read more…There is a simple command to remove a prefix in a camelCase formatted string keeping the format correct
Read more…Documentation on the Squeryl site is a bit outdated, so I decided to write a short howto on the topic.
Read more…This is a bit of rare task to exclude something from a sourceset without knowing exactly what to exclude, but it is doable.
Read more…Local variables could be trickier than you think in Gradle
Read more…