18F/tech-talks

Tech Talk: Functional programming in Python

tadhg-ohiggins opened this issue · 0 comments

Tech Talk Submission

Thanks for offering to give a talk at a Tech Talks meeting! We just need a bit of information from you.

Name

Tadhg

What's your talk title?

Functional programming in Python.

What's your talk about?

  • Basics:
    • Purity/side effects.
    • Immutability.
    • Testability.
    • Composability.
  • Python support: reasonable (but no tail recursion optimization so be careful with recursion).
  • map versus list comprehensions.
  • Where's reduce?
  • functools.partial.
    • Enables easier composition.
    • Adds a lot of convenience.
    • May change how you order your function arguments.
  • operator, especially operator.methodcaller.
  • itertools.
  • Missing: compose, identity, etc.—third party options exist, including toolz
    • Brief overview of toolz.

How long is your talk?

  • Lightning talk (5-10 minutes)
  • Short tech talk (20-25 minutes)
  • Long tech talk (40-50 minutes)

Do you have any preferred dates for it?

Tuesday 01 March 2022

Todo for the MC:

  • Update the TTS Guilds calendar entry for this talk to add the talk details.
  • Enable Relay Conference Captioning (RCC) via FedRelay.
  • Announce the talk(s) in #tech-talks, #dev, #18f, #18f-dev-announce when date is set
  • Announce the talk(s) in same channels on Slack in the morning, and follow up with a reminder just before they're about to begin.
  • Upload video and transcript to Google Drive.