Author Archives: Eric Lefevre-Ardant

About Eric Lefevre-Ardant

Member of the PolySpot Tech Team.

Io Language: adding slots to messages

Week 2 of the Seven Languages in Seven Weeks book is about the Io Language. Day 3 is more specifically on how the flow of control (how messages are passed to an object or to its parent) can be hijacked … Continue reading

Posted in misc | Leave a comment

Create hidden files in Apache VFS with the RAM filesystem type

Apache VFS is a great way to access different file systems in the same way. I particularly like the custom RAM filesystem in my unit tests in order to check code that eventually accesses the actual file system. For example: … Continue reading

Posted in java, test | Leave a comment

Cleaning up test code

My former colleague David just posted an example of verbose test code on his blog (the parts in French have been translated to English by myself): /** * */ @Test public void testGetCustomerOK() { LOGGER.info(“======= testGetCustomerOK starting…”); try { CustomerDTO … Continue reading

Posted in java | 3 Comments

More data on productivity of small teams

“Adding manpower to a late software project makes it later”. The so-called Brooks’s Law on productivity of software project is well known, since Fred Brooks’ seminal work The Mythical Man-Month, first published in 1975. That is one of the reasons … Continue reading

Posted in java | 3 Comments

Worse than static methods or final classes?

Do you know what’s worse that static methods or classes marked as final? I’ll tell you what’s worse: static methods that return final classes. That only provides private constructors. Here I was, merrily testing my way through a piece of … Continue reading

Posted in java, tdd | 3 Comments

I avoid method variables in my test methods

Here is a typical example of a test method @Test public void should_search_by_path() { Searcher searcher = new Searcher(); Path location = new Path(“somewhere”); String data = “data”; searcher.putAt(data, location); assertThat(searcher.findAt(location), is(data)); } It seems that many developers consider this … Continue reading

Posted in java | 5 Comments

Java’s varargs are for unit tests

At Devoxx last week, Joshua Bloch argued during his talk “The Evolution of Java: Past, Present, and Future” that varargs are only “somewhat useful”. I think he is overlooking some usages, particularly in tests. Here is my case. A reminder … Continue reading

Posted in conferences, java, tdd | 2 Comments

Play Framework and Guice: use providers in Guice modules

Play Framework has a Guice module. Unfortunately, its use is fairly limited compared to what Guice can do. In this post, I describe how it is configured on my current personal project. In general, when I test classes that have … Continue reading

Posted in java, test | Tagged , , | 1 Comment

CITCON London 2010

I’m returning from CITCON London 2010. What a great conference (and I’m not just saying that just because I helped organize it)! In fact, I feel it has been the best CITCON so far. I was a bit afraid of … Continue reading

Posted in citcon, java | Leave a comment

Why aren’t there more Agile luminaries developing and selling software?

Have you noticed that few Agile luminaries earn a living from writing and selling software? Many do write code as consultants. Other are respected authors of non-commercial open-source development tools. Some do work for software companies such as RallyDev or … Continue reading

Posted in agile | 13 Comments

How to use LogMeIn under Linux

For my Remote Pair Programming session with Alexandru Bolboaca, I wanted to work on our actual code, not toy programs. It was hard finding a technical solution to allow this (despite the many suggestions I received on Twitter; the biggest … Continue reading

Posted in pair programming | 7 Comments

How we use Git at Algodeal

I’ve talked recently with the CTO of a small-but-successful company, trying to explain how we do software development. I realized that many things are difficult for them to copy from us, mostly because we have a different approach to implementing … Continue reading

Posted in algodeal, source control | Leave a comment

Bob Martin on TDD in Clojure

Robert “Uncle Bob” Martin has just blogged on the differences in TDD styles using Clojure, as compared to more traditional languages such as Java. Though I am a Clojure-newbie, I mostly disagree with his conclusions. His main point is that, … Continue reading

Posted in tdd | Leave a comment

AppArmor: how to fix the Create New User issue with logprof

We have started to use AppArmor as a way to strengthen the security on our platform. A reasonably good tool for which you can find rather straightforward tutorials. Portrait of a young woman dressed as Boadecia or Mother England by … Continue reading

Posted in unix | 6 Comments

Predictions for CITCON Europe 2009

Last year, at CITCON Amsterdam 2008, a few of us stayed late into the night, drinking beer and discussing the state of the world. And what to do when you have 21 geeks with time on their hands? Why, predictions, … Continue reading

Posted in citcon | Leave a comment