As software projects grow larger, some aspects gain importance while others lose. In fact, most of what you read and learn about software engineering is really only applicable once your project reaches a certain scale thre

Read more

If you ever try to perform pattern matching on a Generic type (for example, List[Int]), you'll find out that you can't. Not in Scala anyway:

```scala // lets define a list of Ints val list1:List[Int] = List(1,2,

Read more

Imports (available in other languages via constructs like require, include or load), help us keep our code modular and weakly coupled with other parts of our application.

In Scala, as with many other languages, one

Read more

Sometimes (in particular if you're just starting out with Elasticsearch and using the default options), you will see error messages like this in your log:

... Caused by: /esdata/elas

Read more

Lists (and other collections) are probably the most important things you'll deal with when programming with functional programming languages, and sorting is one of the most common operations on them. Here are some

Read more

These are some recurring patterns that may arise when creating tables and classes for use with Slick 2.x.

Adding some of these to your IDE's templates (code snippets) could save y

Read more

It's very common to make timestamp and datetime have defaults that evaluate to the current time (at the time of script execution).

Since Slick associates column types to Scala/Java types, it's not (as far as I

Read more

I've had this error bug me (pun unintended) for almost a whole day.

error sreenshot

Turns out it was because my options for Slick in application.conf looked like this:



Read more


Parsing a JSON String into a JSValue

TODO Json.parse

Converting a JSObject back into a String

TODO stringify and toJson

Building JSObject piece by

Read more