Get the latest tech news

What Can a Coffee Machine Teach You About Python's Functions?


Let me tell you about one of my favourite analogies

I had bought one of those old-fashioned-looking manual grinders with a metal funnel, a crank, and a tiny wooden drawer to collect the ground coffee. Sorry!—and join me for this journey that will, hopefully, brew some fresh insights in Python functions, one sip at a time. And this article convinced you (I hope) that this analogy describes many of the basics of functions exceptionally well—put a tick next to the second law, too.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of python

python

Photo of functions

functions

Photo of coffee machine

coffee machine

Related news:

News photo

Python 3.13 Sees Last Minute Delay Due To Performance Regression

News photo

Typewise (YC S22) Is Hiring a Senior AI Back End Engineer (Python, Europe)

News photo

Show HN: Bringing multithreading to Python's async event loop