From: Cameron Ball Date: Thu, 26 Mar 2020 03:13:38 +0000 (+0800) Subject: Speaker notes more or less done X-Git-Url: http://cameron1729.xyz/?p=fp-lecture.git;a=commitdiff_plain;h=d5468b743004025d147a7383d6b4da35126fc6bf Speaker notes more or less done --- diff --git a/index.html b/index.html index 48c2400..48df5e9 100644 --- a/index.html +++ b/index.html @@ -153,7 +153,8 @@ function readFileAndAdd2(string $filePath) : int { return $number+2; } is impure because it could be called with the same input and give different outputs (if the contents of the file at $filePath change). -
  • I/O can be pure, but that's beyond the scope of this talk (maybe another dev training?)
  • +
  • So how can you possibly do I/O in a pure functional language?
  • +
  • It is possible, but that's beyond the scope of this talk (maybe another dev training?)
  • @@ -402,7 +403,7 @@ function readFileAndAdd2(string $filePath) : int {
    -

    Hot tip!

    +

    Interactive Slide!

    -

    Hot Tip!

    +

    Interactive Slide!

    -

    Hot Tip!

    +

    Interactive Slide!

    -

    The section on composition!

    +

    The Section on Composition!

    @@ -821,11 +822,11 @@ threeFs = repeat("f").substr(0,3);
    -

    Coins and pipes!

    +

    Coins and Pipes!

    -
  • Stop reading here!! After getting to the "What's this got to do with FP" slide, come back pls :)
  • +
  • Stop reading here!! After getting to the "What's this got to do with FP" slide, come back pls :)
  • - + Remember to go back to the previous slide!
    @@ -871,6 +870,7 @@ threeFs = repeat("f").substr(0,3);
    +

    Composition Power!

    - + Do we get one ultimate developer to smash out the whole thing? idk about you, but I wouldn't be keen to work with this person. Check out this story.
    @@ -933,6 +929,7 @@ threeFs = repeat("f").substr(0,3);
    +

    Teamwork!

    -

    Why was all that relevant?

    +

    Why Was All that Relevant?

    =<< Closing Notes >>=
    -

    Very big brain thoughts:

    +

    FP is awesome because:

    -

    Functional programming is awesome because:

    -
    +
      +
    • By taking away convenient, but dangerous tools we are left with tools that are incredibly powerful, but more difficult to wield
    • +
    • In particular
      • -
      • By taking away convenient, but dangerous tools we are left with tools that are incredibly powerful, but more difficult to wield
      • -
      • In particular
      • -
          -
        • Atemporality: The ability to express things independant of time
        • -
        • Infinity: Infinite recursion can't stop you now!
        • -
        • Composition: The fundamental way humans solve problems is available to you at all times
        • -
        +
      • Atemporality: The ability to express things independant of time
      • +
      • Infinity: Infinite recursion can't stop you now!
      • +
      • Composition: The fundamental way humans solve problems is available to you at all times
      -
    +
    -
      -
    • New super powers!
    • -
    + New super powers!
    @@ -1020,7 +1012,7 @@ threeFs = repeat("f").substr(0,3);
  • Or we'll make life hard for ourselves real fast
  • Maybe quantum mechanics is so damn confusing because at a certain point we can't decompose things anymore?
  • - +
    @@ -1043,7 +1035,7 @@ threeFs = repeat("f").substr(0,3);