Code

Libraries, Style, and Projects

One of my specialities is writing effective Python, Javascript, or other languages as needed and I’ve written about some of that work here.

  • a quick guide to os fork in python A tutorial on process-level parallelism using os.fork() directly — useful for understanding what higher-level libraries like multiprocessing are abstracting.
  • an introduction to plotting in python An introduction to matplotlib using NumPy arrays; covers line plots, histograms, and scatter plots with a MATLAB-familiar syntax.
  • an introduction to pythons types Part 1 of a typing series: a tour of Python’s built-in type system — primitives, collections, and iterables — as a foundation for the type hinting articles that follow.
  • integrating sms with twilio A 2017 walkthrough of sending SMS via the Twilio Python SDK; the API surface has since changed but the integration pattern (credentials, client setup, message dispatch) is still representative.
  • python type hinting Covers Python 3.5+ optional type hints and static analysis with mypy — the mechanics of adding hints without enforcing them at runtime.
  • reusable charting with d3 A pattern for building reusable, configurable chart components in D3 using ES6 classes, written around a 2018 Boulder D3 Meetup talk.
  • the good the bad and the ugly of tuple unpacking Best practices for handling multiple return values in Python — where tuple unpacking helps readability and where it becomes a liability.
  • the python typing module Deeper into Python’s typing module: Union, Callable, TypeVar, and type aliases for annotating more complex function signatures.