The subject of variable naming came up on the KinoSearch mailing list a little while back. This blog entry started off as part of an email reply to that thread, but then I thought better of it...
As a base, I agree with all the general rules regarding names laid out in the Slash Style Guide:
The only qualification I would make is that the preference for underscores over CamelCase is language-dependent — for instance, CamelCase is preferable for Java and JavaScript.
On top of those, here are a few more:
Each of these rules is made to be broken, of course... but collectively, they seem to have served me well.
posted 2007-Sep-05 20:53 :: permalink
This blogging software's too little! This one's too big!
Blosxom: a few hundred lines of Perl.
Angerwhale: when I tried to install it from CPAN, it asked me if I wanted to install its forty dependecies. Forty! And I already had Catalyst installed!
How about something functional in between those two extremes, please?
posted 2007-Jul-27 22:24 :: permalinkSo... after some undisclosed amount of time screwing around with various comment plugins, I'm dissatisfied. I don't feel an affinity with the Blosxom plugin architecture.
None of the available plugins seem to do what I want. Some of them are close, but not close enough, and they aren't like quite Perl modules. If they were CPAN distros, I would know exactly how to extend, test, and debug them. Since they're ad hoc files, it's less clear, and the code quality seems to be lower on average than you'd see on CPAN. They might be easier for the less skilled hacker to prepare, but they're more troublesome for me to work on.
I glanced at Bryar, and it looks more like what I'm used to -- but not many people seem to have hacked on it. Movable Type, maybe?
I'd ask y'all out there for advice... but first I'll need to turn on comments.
posted 2007-Jul-01 18:06 :: permalinkTwo posts in a year and a half! I knew I was never going to be the world's most prolific blogger, but... wow.
Let's try this one more time from the top.
posted 2007-Jul-01 17:30 :: permalink"People ask me, 'Why don't you get married?', and I tell them, 'I am married!' They say, 'You are?! When did you get married?', and I say 'I've been married since I was five years old! I'm married to the trains.'" -- somebody I met on the Amtrak Coast Starlight Express
I love the Coast Starlight, especially when it's late -- which it always is. When traveling north, you wake up somewhere in southern Oregon, and the later the train is, the more of that dramatic countryside you get to take in. Last time I was lucky -- the train was over four hours late, and I woke up in northern California!
I just wish the Coast Starlight had more electrical outlets.
posted 2006-Feb-21 19:42 :: permalinkSearchable is an interface in Java Lucene's org.apache.lucene.search package. It defines six different methods called search().
Searcher is an abstract class which implements the Searchable interface. It defines eight more methods called search().
The IndexSearcher class subclasses Searcher, so it inherits all eight of Searcher's search() methods. It also implements three of the search() methods defined by Searchable. Then there's the aptly named MultiSearcher, which, like IndexSearcher, inherits from Searcher and implements three search() methods of its own.
I wonder what it would take to rewrite all of Lucene using only methods called overload().
posted 2006-Jan-21 12:01 :: permalink