Ned Batchelder

Blog · Code · Text · Site

Better error messages

posted 28 July

A simple piece of advice: If you are throwing an exception (or logging an error) about a value being incorrect in some way, include the value itself. It will make it so much easier for the poor sap who has to figure out why the exception is happening. » more..

Whitespace in Ruby and searching for code

posted 27 July

Armin's post about Whitespace sensitivity in Ruby piqued my interest. It points out that in Ruby, foo[42] is different than foo [42] and that foo/bar is the same as foo / bar but different than foo /bar. » more..

Making Peace with Autism in Korean

posted 18 July

My wife's book Making Peace with Autism is now available in Korean: 자폐아 가정의 좌충우돌 성장 이야기. » more..

Installing Python packages from Windows installers into virtualenv

posted 17 July

I'm a recent convert to virtualenv, it's a great way to maintain a number of different Python installations so that you can install packages for one project without it polluting the environment for all your projects. » more..

More blog ·· animation · art · autism · blogs · books · business · coding · crafts · development · friends & family · funny · games · google · graphics · history · how-to · language · math · movies · music · online · parenting · photos · politics · python · quick links · science · tools · typography · web · windows · work · 2010 · 2009 · 2008 · 2007 · 2006 · 2005 · 2004 · 2003 · 2002 · RSS feed » more topics..

Code

software for your use

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

Text

longer writings

I'm a software developer in my late forties. I have a good-sized family: one wife and three boys, one autistic. We live outside of Boston.» more..