series-functions Exploring Functional Programming We have added the code from the Robot Kata to code sandbox. Not only can you view the code and run it, but you can also fork the code to your own account and change the code to further explore the concepts.
functions Hands On: Higher Order Functions In this exercise we are going to get some hands on practice using higher order functions. We are going to have a form simulating a ticket booking UI. The user can enter the number of tickets to book and submit the form to book the tickets. Problem Statement There are three pieces of code that we will deal with in this exercise: * A Form object that accepts the number of tickets to book from the user * A book_tickets function that simulates a call to the backend with the number of tickets t
functions Understanding function composition The foundation of programming is to take smaller abstractions and make bigger abstractions out of it. In the previous articles in this series, we learned about using functions to create abstractions. Now let us look at how to join them up together using functional composition.
functions Impure functions Functions that return the same output when given the same input are called pure functions. Then what are impure functions?
functions Python Decorators You come across decorators when working in many frameworks. Here is how they work.
functions Higher Order Functions In this article we look at higher order functions, which are the bedrock of functional programming style
functions Functions as parameters In this article we take a look at functional abstractions using filter and sorted as examples.
functions First class functions Functions are "first class citizens" in python. In this article we will take a look at what that means.