Accueil Le blog ebiznext

Certains développeurs sur le net ont une fâcheuse tendance à interpréter le pattern matching Scala comme un super switch. J’aimerais ici dire que j’ai compris qu’il ne s’agit pas du tout de ça.

Ce post prend volontairement un ton assez léger (les passionnés me comprendront)

Un des concepts les plus puissants de Scala est le pattern matching car il nous permet d’abstraire les algorithmes exactement comme on le faisait en mathématiques pour décrire les opérations algébriques.

Grace au pattern matching des langages fonctionnels, l’affectation est relégué à une instruction assembleur. Si si vraiment. Je m’explique:
En savoir plus >>

This note is the last in a series of posts dedicated to functional programming.  It follows that previous post

Higher Order Functions are definitely what will allow us to write less code throughs techniques that OOP cannot provide us with.
En savoir plus >>

This note is the second in a series of posts dedicated to functional programming. It highlight how FP is of great help in dealing with parallel programming. It follows that previous post

It is not a secret to anyone that “synchronisation” is your single greatest enemy in parallel programming. So how to cope with it ? Simply avoid updating any value in your program and you’re free to run on your processor at maximum speed i.e. no lock barrier !
En savoir plus >>

This is the first of a series of posts I intend to share and that address the benefits of FP over OOP.

I spent my WE trying to figure out how to convince IT specialists to shift from OOP to FP.
You can’t simply tell a OO developer that functional programming is about not modifying the state of any object but applying functions to functions.
First nobody sees the value, second, it does not make any sense.

A new paradigm succeed when it brings an added value. This added value is usually clearly in the way you are able to glue subsystems together.

PP took over AP - Ancient Programming :) - because it brought modules / procedures / functions and parameters to better assemble pieces of software

OO took over PP because inheritance and polymorphism significantly improved the way you could reuse and extend software

FP is taking over OO for the same reason. It is providing new glues and these are : Higher Order Functions (HOF) and lazy evaluation
En savoir plus >>