avatar

Andres Jaimes

Who pays wages?

It is not the employer who pays the wages. Employers only handle the money. It is the customer who pays the wages. - Henry Ford

A purely functional example using Scala

On this tutorial we’re going to explore the basics of purely functional programming using Scala. One of the principles with purely functional style, is that we have to define concepts in terms of functions.

The basics: Comparing a number

We’re going …

Examples of ‘for’ queries with Scala

On this page you are going to find some examples of ‘for’ queries.
Let’s start by defining the following database:

 1case class Book(title: String, authors: List[String])
 2
 3val books: List[Book] = List(
 4  Book("structure and interpretation …

PlayFramework – Java

So far I have really liked this concept. The only con is that some times is difficult to find full examples that use the latest version.

Installing sbt

We need sbt for compiling and running Play applications.

brew install sbt@1

Executing a first …

How to run a custom update using Java JPA

From time to time it is necessary to execute a query without using Java’s JPA infrastructure.

In order to do it, we have to define a NamedQuery to execute. In this example, I will run an update against the database.

@Entity
@NamedQueries ({ …