C’est avec un très grand enthousiasme que je me suis rendu lundi 21 octobre au premier meetup F# organisé à Paris, dans les locaux d’Arolla. Cela fait déjà deux ans que j’ai eu l’occasion de participer à une formation F#, également organisée par Arolla. Depuis, mon intérêt pour la programmation fonctionnelle n’a pas cessé de…
Pierre Irrmann
Evénements, Programmation
Session ALT.NET “Open-source Web Frameworks”
by Pierre Irrmann • • 0 Comments
Jeudi dernier, je suis allé assister à la session ALT.NET organisée par Rui (@rhwy) et Mathias (@mathiaskluba) autour de deux frameworks web open-source de l’éco-système .NET : ServiceStack et NancyFx. Service Stack et Nancy partent du même besoin de construire des applications et des services REST sans dépendre ni de l’ensemble de l’infrastructure ASP.NET, ni…
Programmation
RPSLS — Rock Paper Scissors Lizard Spock
by Pierre Irrmann • • 0 Comments
Let’s start with a tweet from earlier today : Leonard Hofstadter @TheRealLeonardH Anyone bored and have an android phone? play.google.com/store/apps/det… 22 Nov 12 Répondre Retweeter Favori If you follow the link, you’ll get to a Google Play application that allows you to play the (in-)famous RPSLS (Rock-paper-scissors-lizard-Spock) game. Why that tweet stroke me is that…
Programmation
Cartesian products in LINQ (fluent syntax)
by Pierre Irrmann • • 0 Comments
Have you ever tried to combine sequences in order to build Cartesian products in LINQ ? This is really easily achieved using the query expressions syntax, writing for instance : var ints = Enumerable.Range(1, 4); var longs = Enumerable.Range(1, 3).Select(i => (long)i); var products = from i in ints from l in longs select i…
Programmation
Polymorphic enums in C#, implementation revealed
by Pierre Irrmann • • 0 Comments
(pour consulter l’article précédent: Polymorhic enums in C#, generic incrementation) How can we implement a polymorphic enum to mimic the Java ones ? In a previous post, as an answer to @cyriux’s one, I showed how we could try to use a polymorphic enum in C# in order to mimic the Java ones. I have…
Programmation
Polymorphic enums in C#, generic incrementation
by Pierre Irrmann • • 2 Comments
Consultez ici l’article précédent During the implementation of my polymorphic enum, I have chosen to allow several types for the underlying “ordinal” value, as it is also possible for standard C# enums… From the MSDN documentation, the allowed underlying types for enum types are the following (although other value types such as char are eligible,…
Programmation
Polymorphic enums in C# ?
by Pierre Irrmann • • 1 Comment
Using Java as a inspiration source for C# (hmm wait, hasn’t that already been done from the start ?) A few weeks ago, I read this post by @cyriux, describing how you could use polymorphic enums in Java. Actually, I had already heard him telling that enums in C# were nothing like the ones in…
Bonnes pratiques de dév, Programmation
BDD et SpecFlow pour des tests plus lisibles
by Pierre Irrmann • • 5 Comments
Dans ce billet, je vais utiliser SpecFlow et la syntaxe Gherkin pour écrire des tests en langage naturel. Je souhaite montrer à quel point la mise en place en est facile, lorsque vous disposez de code déjà testable, et comment celle-ci vous aide à écrire de meilleurs tests en quelques minutes. SpecFlow est à la…
Outils, Programmation
Linq provider : un essai… partie 6
by Pierre Irrmann • • 0 Comments
Jammin’ Jammin’ Le mois dernier, j’ai eu l’opportunité d’obtenir du feedback sur mon provider Linq, de la part @cyriux et Jérôme, au cours de la Jam de code mensuelle d’@ArollaFr. A cette occasion, nous avons également fait d’importants changements dans le code. Le concept d’un Jam de code est simple : nous nous rencontrons une…
Outils, Programmation
Linq provider : un essai… partie 5
by Pierre Irrmann • • 1 Comment
Améliorons la boite à outils : construisons nos propres visualisations d’arbres d’expression. Dans les deux derniers billets, Linq provider : un essai… partie 3 et Linq provider : un essai… partie 4, j’ai inclus des exemples de visualisations d’arbres d’expression. Je les ai construit en utilisant un pattern Visiteur (et oui, encore !), qui produit du markup HTML. Il…