Codemash 2018 – Functional Programming With C# 7.1

Presenter Ed Charbaneou

  • Style Comparison
    • Functional Programming
      • Focuses on mathematical progress
      • Stateless
      • Fixed expressions that are stateless and return a result
    • Imperative
      • void method
      • black box
      • maintains state
  • A Functional Focus
    • Application doesn’t maintain state
    • Why now
      • Multithreading
      • Cloud computing
      • Stateless much better when multithreading
      • Maintaining state is hard, especially in multithreading
  • Functional Features
    • 3
      • LINQ
      • => Expressions
      • Extension Methods
    • 6
      • Expression Bodied Memebers
    • 7.1
      • Tuples
      • Pattern Matching
      • ++Expressions Bodied Members
    • .net does not yet have immutable types
      • immutable type cannot be changed after its insantiation
    • Func Delegates
      • Allow us to pass around code as a variable
    • Higher Order Function
      • A Function that either takes a function as a parameter or returns a function as a parameter
  • Method Chaining (Pipelines)
    • Don’t see pipes in .net since can method chain
  • Extension Methods
    • Yep they exist.  They have existed for a decade, not sure why going over them here.
  • Reviewed yield/return.  Another 10 year old structure.  Functional, I suppose.  I always thought purpose was to be able to act on iterated values without having to finish iteration.
  • Reviewed LINQ methods available.  OK.
  • Now onto programming excercise

Leave a Reply

Your email address will not be published. Required fields are marked *