Fork me on GitHub

Lifeboat blog

A random blog about software

Skip to content
  • Home
  • Archives

When O(N) is better than O(log N)?

We are used to think that O(log N) is always better than O(N), but it is not always true.

Read more…

Posted On Tue 05 May 2015 by Lex Vorona

Category: Coding

Tags: scala / coding / howto /

Scala Option performance cost

I wanted to measure how much extra cost does Scala Option incurs.

Read more…

Posted On Sat 10 January 2015 by Lex Vorona

Category: Coding

Tags: scala / coding / performance /

Pattern matching around type erasure

Better way to work around JVM type erasure in Scala pattern matching

Read more…

Posted On Mon 08 December 2014 by Lex Vorona

Category: Coding

Tags: scala / coding /

Referencing Scala object from Java

This is a bit of functionality that I keep googling up over and over again.

Read more…

Posted On Wed 15 October 2014 by Lex Vorona

Category: Coding

Tags: scala / coding /

Scala - the life saver

Scala is very complex, and yet the features I love the most are among the simplest pleasure it provides

Read more…

Posted On Wed 17 September 2014 by Lex Vorona

Category: Coding

Tags: scala / coding /

My favourite Scala compilation error

Scala error message could be quite cryptic, but there is one which I love the most. It is caused by smallest of the errors with the message insanely far from actual cause.

Read more…

Posted On Wed 17 September 2014 by Lex Vorona

Category: Coding

Tags: scala / coding /

Custom insert-or-update conditions with Squeryl

Squeryl is very smart, but some time you want to alter a bit of its logic. Here is one of the methods.

Read more…

Posted On Tue 10 June 2014 by Lex Vorona

Category: Coding

Tags: scala / coding / howto / squeryl /

How to resolve conflicting methods error in Scala

The error "class XXX inherits conflicting members" is almost obvious by the compiler message, but stop just one step short of the full solution.

Read more…

Posted On Tue 10 June 2014 by Lex Vorona

Category: Coding

Tags: scala / coding / howto /

 

Post navigation

Older posts →
 
Proudly powered by Pelican, which takes great advantage of Python.
The theme is Decode, ported by Lex Vorona and Ken Mathenge, thanks!