Simon Willison’s Weblog


16 items tagged “nedbatchelder”


Find a level of abstraction that works for what you need to do. When you have trouble there, look beneath that abstraction. You won’t be seeing how things really work, you’ll be seeing a lower-level abstraction that could be helpful. Sometimes what you need will be an abstraction one level up. Is your Python loop too slow? Perhaps you need a C loop. Or perhaps you need numpy array operations.

You (probably) don’t need to learn C.

Ned Batchelder # 24th January 2024, 6:25 pm


Here’s a common piece of advice from people who create things: to make better things, make more things. Not only does it give you constant practice at making things, but it gives you more chances at lucking into making a good thing.

Ned Batchelder # 28th June 2020, 2:29 pm


Internet explorer mystery #1376. IE executes function definitions inside an “if (0)” block. That frightens me. # 3rd December 2008, 9:04 am

280slides and Objective-J. 280 slides uses an Objective-C clone written in 13KB of JavaScript. I have to admit I’m completely baffled as to why you would want to use Objective C instead of JavaScript, but evidently it worked fantastically well for them. # 7th June 2008, 4:09 pm

Apache proxy auto-re-loader. Neat trick: set your 502 (Bad Gateway) error document to include a meta refresh tag, automating the refresh needed should a server you are proxying to be temporarily unavailable. # 18th February 2008, 9:44 am


Http-https transitions and relative URLs. Finally, a reason to use those weird protocol-relative URLs (// and the like). # 18th October 2007, 11:57 am

Stopping spambots with hashes and honeypots. Ned’s analysis of how spambots work, along with some relatively simple tricks that should fool most of them. # 23rd January 2007, 1:39 pm


Subversion branching quick start. Ned Batchelder’s branching tutorial. # 29th October 2006, 3:27 pm


Ned Batchelder: Css-discuss wiki. Ned says nice things about the Wiki. # 2nd February 2005, 8:23 pm


Python Parsing Tools (via) Ned’s compilation of Python parsing libraries. # 30th November 2004, 2:53 pm

Ned Batchelder: Interfaces. Ned on interfaces. # 10th November 2004, 1:03 am

Ned Batchelder: Showing C header structure. Using Python to maked other languages less painful # 4th February 2004, 1:19 am

Ned Batchelder: handyxml. Yet another XML object wrapper for Python, this time with full DOM method support included # 26th January 2004, 2:52 am


A better definition of Metadata

Ned Batchelder: Metadata is nothing new. Ned includes a far better definition of metadata than the standard “data about data” phrase:

[... 77 words]

Verbose Regular Expressions

Ned Batchelder describes Verbose Python regular expressions. This is one of the things I’ve known about (as in known that they exist) for ages but have never got around to using. I’ve been working with some pretty heavy regular expressions recently that could really do with the clarity of being defined in verbose format with comments.

[... 96 words]