Ned Batchelder

Variable fonts

17 September

We’re all used to fonts coming in different weights (normal, bold), or sometimes different widths (normal, condensed, extended). Geometrically, there’s no reason that these variations need to be discrete. » more..

Don’t omit tests from coverage

29 August

There’s a common idea out there that I want to refute. It’s this: when measuring coverage, you should omit your tests from measurement. » more..

Why your mock doesn’t work

2 August

Mocking is a powerful technique for isolating tests from undesired interactions among components. But often people find their mock isn’t taking effect, and it’s not clear why. » more..

Set_env.py

21 July

A good practice when writing complicated software is to put in lots of debugging code. This might be extra logging, or special modes that tweak the behavior to be more understandable, or switches to turn off some aspect of your test suite so you can focus on the part you care about at the moment. » more..

More blog ·· audio · autism · cakes · coding · coverage · debugging · dev-mindset · development · edx · friends-&-family · gatherings · git · graphics · how-to · juggling · linters · mac · math · online · open-source · parenting · presentations · puzzles · pycon · python · testing · typography · unix · 2019 · 18 · 17 · 16 · 15 · 14 · 13 · 12 · 11 · 10 · 09 · 08 · 07 · 06 · 05 · 04 · 03 · 02 · RSS feed » more topics..

Code

software I made

  • Aptus ·· a Mandelbrot set explorer
  • coverage.py ·· for measuring Python code coverage
  • hyphenate ·· for hyphenating words with the Liang/Knuth algorithm

» more code..

Text

words I wrote

» more text..