KBD

Keith Devens .com

Sunday, September 7, 2008 Flag waving
C++ is history repeated as tragedy. Java is history repeated as farce. – Scott McKay

Archive: March 24, 2003

← March 23, 2003March 25, 2003 →

Daily link icon Monday, March 24, 2003

"On the Goodness of Binary Search"

Via Simon, Tim Bray has a great article On the Goodness of Binary Search.

There's a story I heard from a prof, that the basic Binary Search idea was around when Alan Turing was still in diapers, but that the first 18 published implementations were buggy. And I know for a fact that the first few times I coded it I got it wrong.

All that said, the core idea of binary search is mind-bogglingly simple; you have a sorted array, you look at the middle element which tells you what you're looking for is in the top or bottom half, then you take that half, rinse and repeat until done.

Writing flexible programs with metadata

Via PHP Everywhere, Artima.com: Put Abstractions in Code, Details in Metadata, part four of an interview with Andy Hunt and Dave Thomas.

Abstractions live longer than details. Details are volatile. Because details are going to change, put the details where changing them will create the least amount of friction. Typically that's outside the code base -- in a database, a properties file, or XML -- something acting as metadata. We suggest an overall architecture where you put your energy into creating the right abstractions in the code. And as much as possible, push the details out somewhere else where they are easier to change, because that is what's going to change.

Blogroll

I'm finally getting around to setting up a blogroll over on the left there. (Only on /weblog, not at the root... easy to do with my CMS without any weird conditionals (hah))

It's in progress. I'm going through my aggregator and seeing who I read regularly. Not done yet. Going to eat dinner.

← March 23, 2003March 25, 2003 →
September 2008
SunMonTueWedThuFriSat
 123456
78910111213
14151617181920
21222324252627
282930 



RSS feed RSS feed for Keith's Weblog
Atom feed Atom feed for Keith's Weblog
Weblog archive
Recent comments
  on 6 posts

Recent comments XML

new⇒I hate Norton Antivirus

Long long live AVG I love you!...

kevin sands: Sep 6, 7:31pm

I hate ASP.NET

CF, why pick that piece of trash?​Cold Confusion. Is it finally​really a OO...

ColdConfusion: Sep 5, 8:36pm

Maps of Iraq

This is for Linda, I will be​visiting that site some time in the​near futur...

Bob: Sep 5, 1:20pm

Girls, please don't get breast implants

Well alright I just read my above​comment and I wanted to add​this...I shou...

76.66.140.8: Sep 4, 7:31pm

Spider solitaire

I don't think the question was​necessarily if there are unbeatable​games.  ...

Jared: Sep 4, 12:44pm

Convert Pantone Colors to RGB and Hex - Color Conversion Chart

The colors on those website don't​seem to relate to the pantone data​we hav...

blah: Sep 3, 10:12am

Generated in about 0.044s.

(Used 7 db queries)

mobile phone