Presentation is loading. Please wait.

Presentation is loading. Please wait.

How to Not Write a For Loop and other stories Ivan Towlson Mindscape.

Similar presentations


Presentation on theme: "How to Not Write a For Loop and other stories Ivan Towlson Mindscape."— Presentation transcript:

1 How to Not Write a For Loop and other stories Ivan Towlson Mindscape

2 Erik Meijer Confessions of a Used Programming Language Salesman “Functional programming has finally reached the masses, except that it is called Visual Basic 9 instead of Haskell 98.”

3 Mads Torgersen Foreword to Petricek, Real World Functional Programming “Functional programming is a state of mind.”

4 Free your mind and your programs will follow with apologies to Funkadelic

5

6

7

8 It’s a functional world, Codemaniacs. Let’s go exploring! with apologies to Bill Watterson

9 What is the value of a conditional? Control constructs

10 What is the value of a for loop? Control constructs

11 A A

12 M M

13 F F

14 E E

15 M M F F A A

16 Tony Hoare’s billion-dollar mistake null

17 Generalising conditionals Programming by cases

18 Statements  expressions Loops  filter / map / expand / fold Cases  pattern matching Imperative mind, functional mind

19 Statements  expressions Imperative mind, functional mind

20 What are the steps to carry out the calculation?

21 What is the value of the calculation?

22 Statements  expressions Loops  filter / map / expand / fold Cases  pattern matching Imperative mind, functional mind

23 Composable Self-documenting Calling out similarities Calling out differences Imperative mind, functional mind

24 Petricek, “Real World Functional Programming in F# and C#” (Manning) FSharpx project (GitHub) Resources

25 Thanks! Ivan Towlson ivan@mindscape.co.nz http://mindscapehq.com/blog/ ivan@hestia.cc http://hestia.typepad.com/flatlander/


Download ppt "How to Not Write a For Loop and other stories Ivan Towlson Mindscape."

Similar presentations


Ads by Google