Desgrange.net

Aller au contenu | Aller au menu | Aller à la recherche

lundi, janvier 4 2010

Post XP Day BeNeLux 2009

As we say in french “mieux vaut tard que jamais”, here is my post about XP Day BeNeLux 2009.

In November I went to XP Day BeNeLux as expected. First time in Benelux, second time this year (after XP Day France 2009) and the fourth time in total.

The thing that I have seen already in France is the shift to Lean and in fact at XP Day Benelux, there was no sessions about eXtreme Programming!

If you read this blog quite often you know that I don’t really like goodies, and XP Day Benelux is now a reference to me. When you get there they give you a small time table with all the sessions and some cards to take notes. That’s all I need when going to a conference, nothing more, nothing less. But in fact there was also a amazingly wonderful gift ;-), a small white board with a pen to write on it (and since it took me several months to get real white board at work, I used the one given at XP Day in the meantime).

A space for programmers’ training: lessons from the coding dōjō experiment

Emmanuel did a quick history on how the coding dōjō idea came to life, what is the purpose of it, rules to respect, etc.

What I remember from that session:

  • It’s like kata in martial arts, a way to learn how to resolve automatically and elegantly a problem by doing it over and over again. So when you face a similar problem in real life you can tackle it right away with a proper solution instead of doing a quick and dirty hack.
  • It matters that things are done the right way, and coding dōjō help learning to recognize and understand why something is beautiful or not. I think, unlike what people usually say, that beauty is not subjective only (see this post on theory of centers for instance).
  • Lots of ideas on how to organize and maintain a coding dōjō.

You can find if there is a coding dōjō near you on the coding dōjō website.

I never went to a coding dōjō but it’s really something I would like. I spent 3 years in Paris knowing there was a coding dōjō and never went to any session, and now I’m in Brussels and there is no coding dōjō (I also still have to visit the Eiffel Tower and the catacombs). I think Emmanuel did one on Monday evening but I had to leave quite early so I was not able to attend it.

The Toyota way management principles for sustained lean and agile

All the information shown in this session are available.

I already went to a presentation of the Toyota way by Pascal but this session was more dense, so I can’t say that I remember something in particular. The first time I didn’t get that all the practices/values/etc. were linked together so Lean works better as a whole (see the first page of the Toyota Way handout).

What I learned from burning down my house

This session was about how a crisis can be a good thing and help moving to a more agile/lean way of working. What I learned from it: I need a crisis at work! ;-)

User stories and estimating for enterprise agile

Not really what I was expecting, a bit of it was a presentation of their product. Anyway, there was still some interesting stuff to listen to.

Agile politics

This one was a game showing that we all are playing politics in a way or an other. Helps understanding why and when politics are happening.

Solve conflicts without compromise

In that session I learn (and already forgot :-( ) a “tool” to help solving conflicts by asking simple questions in a specific way. Very interesting and it surely requires a lot of practice (the “coaches” were amazingly better than me at asking the good questions the right way).

The yellow brick road - agile adoption through peer coaching

This one was an agile fairy tale by Portia. This game simply reveals to yourself that you already know how to solve the problems you encounter and it’s very powerful.

Misc
  • good
    • Lots of interesting things to learn.
    • New ideas to think about.
    • Saw amazing people.
    • Beer.
  • not so good
    • There was some Aikido sessions but I didn’t attend any of them.
    • I was not able to stay after the dinner.
    • It was raining.
    • I did not spoke/share with a lot of people.
    • Some sessions were not that good.

lundi, décembre 7 2009

Goodbye TB

A long time ago (2004?) I bought a LaCie Bigger Disk Extreme 1TB. At that time it was quite a huge hard drive (by size and capacity), biggest single disks were about 250GB (given the size I supposed that the LaCie was made of 4 250GB disks in some RAID-0 or JBOD array).

IMG_0001.jpg

IMG_0002.jpg

So five years later (last week) it died. But even now, losing 1TB of data is a bit disappointing. Hopefully there was not much important data on it (I store important data on a RAID-5 array or on a TimeMachined part of my Mac).

So, what to do with a dead disk? Dismantle it of course.

First unscrew the back panel:

IMG_0003.jpg

IMG_0004.jpg

Push the content / pull the case:

IMG_0005.jpg

IMG_0006.jpg

Unscrew everything else:

IMG_0008.jpg

So yes, there was 4 Maxtor MaXLine Plus II 250GB hard disks inside. I already tested 2 of them, one is dead, the other one is fine. I hope only one is dead so I will be able to reuse 750GB of the original 1TB.

In the overall I think it’s the third hard drive dying this year. Last year it was two mother boards. Why electronic hardware is so unreliable lately? (and I try to do my best to take care of it but it looks like it’s not enough, hardware is still failing at some point)

I still have somewhere an old Victor computer from the 80s (I can’t find it on the internet, but it’s not a Victor 9000) and it’s still working (at least last time I plugged it in).

lundi, novembre 16 2009

Des CD

IMG_0243.jpg

J’ai du avoir mon premier CD vers 1996, 13 ans plus tard à force d’achats, de magazines, de conférences, de pilotes de matériels, de graver tout et n’importe quoi, j’en ai maintenant un petit stock dont une bonne partie dont je souhaiterais me débarrasser.

Bien évidemment, il ne s’agit pas de les mettre à la poubelle pour qu’ils finissent incinérés ou que sais-je encore.

Le mieux bien évidemment est de les réutiliser. Certaines personnes les accroches au bout d’une ficelle dans leurs cerisiers pour faire peur aux oiseaux, d’autres comme support de bougies… Malheureusement, je ne vois pas quelle utilisation je pourrais en faire.

Par le plus grand des hasards j’ai eu l’occasion, il y a quelques années, de donner un grand nombre de boîtiers “crystal” pour qu’ils soient réutilisés d’une façon à laquelle je n’aurais pas pensé : en œuvre d’art.

art.jpg

(Œuvre de Monique Deyres, Instants donnés, Église du Chuzeau, Isère, 2003)

Si je ne peux pas réutiliser mes CD et DVD (et je ne compte certainement pas donner mes vieux CD de backups ;-)), il reste le recyclage, 90 % d’un CD est recyclable. En France les CD et DVD ne font pas partie de la liste des déchets d’équipements électriques et électroniques (DEEE). Du coup des sites se sont développés pour revaloriser les CD et DVD usagés. Il semblerait que 1 tonne de CD/DVD vaille entre 400 et 600 €, ce qui peut donc être intéressant pour une entreprise de recyclage (une étude a été faite en 2005 par un étudiant de l’École Polytechnique Fédérale de Lausanne).

L’association CDmoi, en Lorraine, assure la collecte et la revente à des société de recyclage des CD et DVD. Il y a aussi la société Coldisk sur l’île-de-France.

En ce qui concerne la Belgique, j’ai lu sur certains sites web que certaines déchetteries disposent de conteneurs pour les CD et DVD. Cependant l’agence régionale de propreté m’a indiqué qu’il n’existe pas de filière pour le recyclage des CD/DVD/Cassettes/Disquettes (et donc de les jeter avec les ordures classiques si je n’ai pas moyen de les donner/réutiliser).

Si quelqu’un à une idée, je suis preneur. Pour le moment je vais me contenter de les stocker…

Quelques idées en vrac :

  • Produire moins de CD/DVD. On en trouve de partout, même dans les paquets de céréales. Avec du matériel informatique il n’est pas rare de trouver 2 ou 3 CD, pourquoi ne pas tout mettre sur un seul ?
  • Le tri sélectif c’est bien, ça sensibilise les gens, mais je me demande dans quelle mesure c’est efficace. Ne serait-ce pas plus simple d’embaucher des gens pour faire le tri des déchets lors de leur arrivée dans les usines de traitement ? (le tri serait certainement mieux fait et systématique)

lundi, novembre 9 2009

Restaurant japonais : Hama-Shin

Depuis ma déception précédente j’ai essayé un autre restaurant japonais à Ixelles, le Hama-Shin.

Population

J’y suis allé en sortant du travail, et à 19h il n’y a pas grand monde encore dans les restaurants, d’ailleurs j’étais le premier client. Quelques personnes supplémentaires sont arrivées pendant que je mangeais, une seule personne japonaise. Bref, je n’y suis pas allé au bon moment pour voir quel type de population fréquente ce restaurant.

Ambiance

Bof. C’est une ancienne maison transformée en restaurant comme on en voit beaucoup, donc de base pas japonais du tout. Quelques tableaux style japonais accrochés aux murs et c’est à peu près tout.

Nourriture

La partie la plus importante :-). Je ne sais pas si le restaurant a une spécialité mais la carte est plus étendue dans la section sushi/sashimi/maki que pour le reste, j’ai donc opté pour le menu avec un assortiment de sushi/sashimi/maki.

En entrée j’ai eu une soupe miso (ça c’est toujours bien), des brocolis vapeur avec une sorte de mayonnaise (pas mauvais) et du calamar (ou du poulpe ? un truc avec des tentacules, plutôt bon).

Suivi donc de l’assortiment de sushi/sashimi/maki. Niveau quantité j’ai eu largement assez. Pour le reste, ça dépendait un peu des poissons, le thon était pas mauvais, le saumon un peu moyen et les autres poissons pas top. Rien d’exceptionnel donc mais dans l’ensemble c’était clairement mieux qu’au Yamayu Santatsu.

Prix
  • Le menu : 35 €
  • Une Asahi : 4 € (la Owa est à 5 €)
Conclusion

Restaurant japonais correcte, un poil trop cher quand même.

Remarque
  • Sur la facture du restaurant il est écrit “Restaurant Yamayu Santatsu S.P.R.L.”, une filiale du Yamayu Santatsu ?
  • Leur lecteur de carte bancaire lis la piste magnétique et pas la puce (il y en a beaucoup comme ça en Belgique, hallucinant)

lundi, novembre 2 2009

Que faire contre Hadopi ?

Faites comme moi, changez de pays.

RSF classe la France en 43ème position en ce qui concerne la liberté de la presse (35ème en 2008, 31ème en 2007). Apparemment cette chute est en partie due à Hadopi 1 et 2.

Pour info la Belgique est 11ème (le Ghana, l’Uruguay, le Mali, l’Afrique du Sud, la Namibie, le Surinam sont mieux classés que la France). Le truc qui fait le plus peur, c’est de savoir que l’Italie n’est pas loin derrière, en 49ème position, la France va bientôt la rattraper, encore un peu de courage, avec Loppsi et Hadopi 3 ça devrait faire l’affaire.

lundi, octobre 26 2009

XP Day BeNeLux 2009

After XP Day France 2009 in May, I will now attend XP Day BeNeLux 2009 in November 23rd/24th.

If you want to register, be quick, there are only 8% places left.

Here are the sessions I think I will try to attend:

lundi, octobre 19 2009

OpenBSD 4.6

The new version of OpenBSD has been released! Yes, they are more than 10 days ahead schedule, since OpenBSD is usually released May 1st and November 1st.

I upgraded my router with this new version and before doing so, you should read the upgrade page (which I didn’t).

Of course my firewall configuration was not working anymore, so I had no internet access because I was using scrub statements which are not there anymore. Rules need to be rewrite a bit.

The installer seems to have changed, some questions were different… and since I was going too fast through the process I installed X related packages (they were selected by default even if I haven’t installed them before).

Anyway, OpenBSD is still working nicely, using nearly no CPU and few MB of RAM. I really like this operating system for my router, I install it and forget it (until the subsequent release).

lundi, octobre 12 2009

CITCON Paris 2009: Mock objects

Interfaces

During the session on mock objects there was a digression about interfaces. I have seen too often interfaces in a way that I don’t like. I will use the same example as Eric:

Let’s say that you have a FileManager, providing some services to manage files I suppose ;-), you may have an interface called IFileManager. And usually there is only one implementation of IFileManager which is FileManager.

I think this is wrong for at least two reasons:

  • Usefulness. If there is only one implementation, why do you need an interface?
  • Naming. The interface name should represent the “role”, so FileManager is suitable for the interface name, IFileManager has no meaning. Then the implementation should reflect what kind of implementation you have, like LocalFileManager, DistributedFileManager or a DummyFileManager for your tests (but not an ugly FileManagerImpl).

So usually, when I see a software with that kind one 1 to 1 relationship between interface and implementation and using bad names, it raises a warning light in my head, telling me that the person who wrote that code did not really now what he was doing (only applying some old and bad coding rules without trying to understand why it was useful for). As Antonio says, prefix ‘I’ for interface and suffix ‘Impl’ for implementations are signs of code smell.

I even have seen some interfaces with only one or two methods, the implementation had a lot more methods… and the concrete class was directly used in other classes… so yes, very useful interface :-.

Sometimes, when writing tests, I need to mock some classes that I haven’t defined any interface for… and since several mock libraries are able to mock concrete classes I still not extract any interface.

I like simple classes, with simple roles, so mostly all public methods (except constructor and setters) are the “implied” interface.

So my point on interfaces is “use an interface only when you really need it” (that reminds me YAGNI):

  • when you need several implementations of a given “role”,
  • when defining some “ability” (sorry I don’t find the right term) like Clonable, Closable, Comprable, Serializable, Anything-able (if you can add “able” at the end, it’s a good sign that you might be able to extract an interface for that ;-)).
Mock objects

So yes, we also spoke about mock objects. Steve Freeman was trying to explain us some stuff, I have the feeling that there was something in his speech that was enlightening but I didn’t really get it (that’s why it’s only a feeling for the moment).

What I remember is that, when writing tests:

  • mock the collaborating classes that change the outside world,
  • use stubs, dummy implementations, etc. otherwise.

I don’t fully understand the reason yet. But something I learn recently and that was says during the session: mock only the code you own, don’t mock external resources.

So for instance, if you have a Customer object, a table full of customers in your database, don’t try to mock JDBC classes like Connection, ResultSet and so on. Create a class accessing the data, let say CustomerDAO (I don’t like the name, but hey, it’s only an example), and then you can mock your CustomerDAO in your software.

I imagine that CustomerDAO will then be tested in integration tests (it’s a class using external software/server/stuff right? Can’t really unit test it (except maybe some data storage specific logic I may have to write in it)).

Anyway, it was an interesting session.

Misc

Books recommended during the session:

Frameworks:

  • jMock (the framework I usually use)
  • EasyMock
  • Mockito (more recent, I started using it a bit at work a week ago, looks quite nice)

lundi, octobre 5 2009

CITCON Paris 2009: Goodies

This year I went to CITCON Europe 2009 in Paris, a conference about continuous integration, held at ISEP. It was a quite interesting event. Since everybody as already blogged about it, I will start with a subject I think was not yet covered: the goodies.

As I was talking about it before, I love goodies :-/. Like any conference, I got a bag with some goodies. I apologize for the crappy pictures.

CITCON Goodies Bag

The bag containing all the goodies was in plastic… I liked the recycled paper bags used at XP Day France 2009. A bit more eco-friendly.

T-Shirt CITCON Front T-Shirt CITCON Back

The mandatory CITCON Paris 2009 T-Shirt. I Think I probably have more T-Shirts than anything else in my closet, enough to wear a different one for each casual Friday of the year ;-).

T-Shirt TeamCity Front T-Shirt TeamCity Back

A JetBrains TeamCity T-Shirt. This one is kind of “home made”, don’t put it in your washing machine. JetBrains people are very good at making incredible softwares like IntelliJ IDEA and they definitely should stay in the software business, not in the T-Shirt business ;-).

Pulse Note Pad

A note pad, useful for taking notes during sessions. Sponsored by Zutubi for their Pulse continuous integration system.

Valtech Ball

A ball!!! From Valtech. I don’t know why, but in every XP teams I’ve worked in, we always had some balls. I’m not sure that “useful” is an appropriate term for this device, but clearly a “must have” in a working team ;-).

MSDN USB Key

A 2GB USB flash drive from MSDN. As I already told before, 2GB is the minimum size we can get nowadays and since I don’t have bought any USB flash drive for years, this one is now the biggest one I have. I like the credit card format, it fit very well in a wallet but I don’t really like the way it’s done, it’s not really easy to use. I think the fictional one created by Marshall in Alias is more user friendly:

alias_usb_key.jpg

ThoughtWorks CD

An evaluation CD from ThoughtWorks.

Stuff To Read

Some stuff to read, I trashed it all after fast-reading it (except the list of CITCON volunteers).

Pens

And of course, pens. A black one from Microsoft Hardware and a blue one from Open Information Foundation.

Conclusion
  • The bag: since there are goodies, we need something to hold them, but it should be done with more eco-friendly materials.
  • T-shirts: no really useful since we all already have tons of them and I think most of us can’t wear them very often.
  • Note pad and pens: Useful to take notes during sessions, but I think most of us bring our own ones.
  • Ball: that’s just for fun, actually it’s the goodies I use the most.
  • USB flash drive: the same bigger and more user friendly should be great (for me).
  • CD: come on, we can download your softwares from your website, we don’t need to have soon-outdated versions on a physical media.
  • Stuff to read: most of it was quite useless, at least it can be recycled.

It was not so bad this time, compared to some conferences where everything had to go to the trash directly.

jeudi, septembre 24 2009

Restaurant japonais : Yamayu Santatsu

Cette semaine je suis allé manger au restaurant Yamayu Santatsu à Ixelles, spécialisé dans les sushis.

Population

Lors de mon passage, il n’y avait quasiment que des européens dans la salle au niveau de l’entrée et autour du bar, par contre il me semble avoir vu plus de japonais dans une autre partie à l’arrière du restaurant. Je ne sais pas si c’est toujours comme ça, mais je préfère quand les gens sont un peu plus mélangés.

Ambiance

Je me suis retrouvé à une table pas très bien positionnée, donc pas terrible niveau ambiance, je pense que ça doit être beaucoup mieux près du bar.

Nourriture

Alors dans un restaurant spécialisé dans les sushis, je prends le menu sushi. Je dois dire que j’ai été assez déçu :

  • les sushis étaient un peu trop gros,
  • trop de wasabi (ça couvrait une bonne partie du goût),
  • le riz n’avait rien d’exceptionnel,
  • le poisson, pareil, limite j’ai trouvé le thon pas terrible,
  • pour certains sushis dont le poisson n’est naturellement pas fort en goût, ils ont rajouté des herbes ; je ne sais pas exactement ce que c’était, mais pour le coup j’ai trouvé qu’elles avaient trop de goût et là clairement pour sentir celui du poisson c’était mort.
Prix
  • Le menu sushi : 28 €
  • Une bière Owa : 4 €
Conclusion

Je ne retournerais certainement pas prendre des sushis chez eux. Surtout à ce prix là. Rue Sainte Anne à Paris, je comprendrais presque le prix (et j’aurais certainement eu de meilleurs sushis) mais là, en périphérie de Bruxelles je trouve que c’est abusé.

Par contre j’ai vu que l’on pouvait y manger des sukiyaki, et ça je doute qu’on puisse le faire mal ;-).

- page 2 de 9 -