All Posts
-
Push-based GenStage with acknowledgement (16 Nov 2019)
These days I wanted to have a strong grasp at the inner working of GenStage so that I could use it efficiently at work.
-
The joy of ActiveRecord (11 Apr 2016)
Today I’ve stumbled on a clearly annoying behavior of ActiveRecord. Basically the problem is that, when given a
long
as parameters for a timestamp in the constructor, it silently skips it and putnil
instead. -
Always specify the exception in RSpec (28 Feb 2016)
This week-end I’ve upgraded all tests (1000+) in one of my projects from old RSpec 2.14 to RSpec 3.4. I did this according to RSpec site. It went all good - except for CarrierWave tests, which relies on a deprecated protocol.
-
It's not about the language ... (19 Jan 2014)
I’ve been a Java programmer for the last seven years, I’ve mostly used it in a professional context. But when coding during my spare times I often looked at other programming languages, in no particular order : Python, Ruby, Groovy, Scala, Clojure, Erlang, Elixir, …
But why would I look anywhere else if I have such proficiency in Java ?
-
Gradle plugin for TestFlight (13 Sep 2013)
Since august I’ve got a new job. We are currently a team of three developers working on a client/server application. The server is developed in Rails. The client is developed on the Android platform.
A few months ago Google decided to use the excellent Gradle build system as its tool for building Android applications, instead of Ant + Ivy combo. I really see it as a huge improvement. I won’t discuss the pros and cons of Gradle here, there are plenty of resources on that topic on the web.Gradle makes it easy to add custom tasks and plugins, and that’s what I want to discuss here.
-
A little surprise from Gradle (06 Sep 2013)
First I’d like to say that I’m new to Gradle and I use it in an Android project, within Android Studio (0.2.7 at this moment).
Moreover I couldn’t reproduce the problem after fixing it which may indicate that there were other things going on under.
-
Scala constructors (25 Aug 2013)
Scala constructors can behave differently from Java ones. The most visible difference is the way you can declare the so-called primary constructor directly in the class declaration as you will shortly see.
-
The case for testing Java code with Groovy (15 Jun 2013)
I’ve always loved tests, ever since the beginning of my programming experience, about fifteen years ago.
I find them invaluable in terms of correctness of algorithms and business requirements, and also in terms of design : if you’re struggling with how to test your code, if you have more lines of code to launch your tests than you have production code, it indicates there’s probably a problem with your code or your tests. -
Mapping XML dateTime to Date and other customizations (22 Mar 2013)
When working with XML schemas, I often find the generated classes ugly by default. That’s why I always customize the generated classes. Although you’ll find many good tutorials and articles about this on the net, I just wanted to show you the basic customizations I usually apply.
-
Subtle behavior difference between OpenJPA and Hibernate (16 Dec 2012)
Recently I’ve stumbled upon a weird snippet of code in a project I’ve been involved into. The previous developer set some entity relations to null before deleting it. I was wondering why he did so. The project uses Hibernate.
So I decided to investigate this.
-
Custom display resolution in VirtualBox (29 Nov 2012)
Sometimes you want you virtual machine to have a custom display resolution, eg. 1366x768 but your guest OS doesn’t show it in the display preferences.
-
Java 8 lambdas not that useful (28 Oct 2012)
I’ve just read a french article about Java 8’s lambdas about the usefulness - or lack thereof - of them in day-to-day programming with some frameworks. As we do lot of Swing and GWT programming at work it seemed interesting to know if lambdas could speed up the development and improve the readability, thus the maintanability.
-
Learning new technologies (06 Oct 2012)
These days I get bored with Java. Don’t get me wrong, Java is a nice language. After all I couldn’t do Java programming as a living if I didn’t like it, trust me ;).
But I need something new, a new way of viewing problems. And also a new way of solving them.
-
Recursive structure in SQL (30 Sep 2012)
In my current project I have to store a hierarchical structure into an SQL database.