Skip to content

retrogradeorbit/functional-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

functional-python

Functional Python Talk Given At Perth Djangonauts Meetup 7th April, 2016.

Talk Slides

The Slides

Clojure project to build the slides HTML is in the folder builder.

First Code Section

Imperative vs Functional

Code is in folder languages. To run:

cd languages
python imperative.py
python functional.py

Second Code Section

Refactoring Object Oriented Mutatey approach into Functional Approach

Object oriented code

This is found in folder derby1. Run the code with python main.py.

Change the objects to be values

This code is found in folder derby2. Run the code with python main.py. There is a version with the main simulation in a reduce call. This is in the file python main-reduce.py

Remove the objects completely and just use function and values

Didn't have time to move to this next way of coding in the talk. But check it out to see how far one can go. This code is found in derby3. Run this with python main.py

About

Functional Python Talk Given At Perth Djangonauts Meetup

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published