SlideShare une entreprise Scribd logo
1  sur  18
Meetup dotTech
28 Novembre 2017
dotTech
Arthur Le Meur
Vous avez dit F# ?
@ArthurFSharp
arthurfsharp.com
Timothé Larivière
@tim_lariviere
timothelariviere.com
Programmation
fonctionnelle
Programmation fonctionnelle avec F#
Définition
Programmation fonctionnelle
Functional programming is a style of programming
that emphasizes the evaluation of expressions, rather
than execution of commands. The expressions in these
languages are formed by using functions to combine
basic values.
Hutton Ed. 2002
Langages FP existants
Programmation fonctionnelle
Haskell
Scala
Clojure
OCaml
ML
F#
(…)
Langage F#
Programmation fonctionnelle avec F#
Pourquoi F# ?
Langage F#
Simple & Concis
 Pas de bruit
 Inférence de type
 Chainage / Combinaison
 Moins de lignes pour
une même solution
Pourquoi F# ?
Langage F#
Exact
 Null interdit / Option<T>
 Immutabilité par défaut
 “make illegal states
unrepresentable”
Pourquoi F# ?
Langage F#
Concurrentiel
 Immutabilité =
Pas d’effet de bord
 Async (Ancestre de C#)
 Reactive programming
 Event-based programming
Pourquoi F# ?
Langage F#
Complet
 Langage hybride (OO)
 .NET
 Très supporté
(IDE, communauté, etc.)
Syntaxe
Langage F#
DEMO
Concepts avancés
Inférence de type
 Généricité beaucoup plus poussé que C#
Currying / Partial applications
Exhaustive pattern matching
DSL
Langage F#
Projets
Open-Source
Programmation fonctionnelle avec F#
Communauté active
Serveurs web (Suave / Giraffe)
JavaScript (WebSharper / Fable / Elmish)
Tests unitaires (FsUnit)
Package management (Paket)
Build (FAKE)
Et plein d’autres…
Projets Open-Source
Comment
démarrer ?
Programmation fonctionnelle avec F#
IDE pour F#
Visual Studio (Windows et Mac)
Visual Studio Code
Jetbrains Rider
Comment démarrer ?
Ressources
FSharp For Fun And Profit
https://fsharpforfunandprofit.com
F# Software Foundation
http://fsharp.org
Slack
https://fsharp.slack.com
Comment démarrer ?
Introduction F#

Contenu connexe

En vedette

Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

En vedette (20)

Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 

Introduction F#

Notes de l'éditeur

  1. - variables + fonctions + ``Nom long`` - inférence des types - Composition (exemple LINQ) - Record type / Class type - Discriminated unions - namespace / module - if then else / for / while - Pattern matching