KBD

Keith Devens .com

Sunday, September 7, 2008 Flag waving
There are two ways of constructing a software design; one way is to make it so simple that there are... – C. A. R. Hoare

Archive: August 25, 2005

← August 24, 2005August 26, 2005 →

Daily link icon Thursday, August 25, 2005

  1. Sneaker98 at fireflyfans.net put up mp3s of all the music from Firefly. They're recorded straight from the show, so unfortunately the music isn't separate from dialogue and such, but after listening to random clips, it's still great. Downloading with Bittorrent now. Thanks Sneaker98.

       (0) Tags: [TV/Movies]
  2. Laptops are awesome. Programming on the toilet. Yeah baby!

       (1) Tags: [Personal, Programming]
  3. I need some spice in my programming life. After reading Sam Ruby's most recent post about Ruby on Rails, I think it's time for me to learn Rails. It'll be a good exercise for me to gain some intimate knowledge of Ruby as well.

       (2) Tags: [Programming, Ruby, Ruby on Rails]

When static typing gets in the way

I want to do the following in Java:

SuperClass s = Class.forName("fully-qualified-class").newInstance();
s.process(foo, bar);

I know that given what "fully-qualified-class" is I can call process on s, but Java's static typing thinks I can't, so it won't let me.

Update: I'd like to correct myself a little: Ultimately, the real reason that you can't call process on s is because on the base class the process method is protected, whereas on the subclasses I need to call it on it's public. So, you could argue that this is really a case where access controls (not static typing) are getting in the way, or a case where the access controls on this class hierarchy weren't designed well enough. I lumped this in with static typing because in a normal message-passing style of OO this wouldn't be an issue, since the message would be passed and the object would either accept or reject it.

  1. Currying and partial application:

       (2) Tags: [Programming]
  2. CHIP: Code Highlighting in PHP:

    CHIP is a simple source code highlighter designed to be used either on web-servers or from the command line. It takes C, C++, Java, Lisp, Python, PHP, HTML, or JavaScript code, and outputs an XHTML version of that code, with appropriate highlighting.

       (0) Tags: [Programming]
← August 24, 2005August 26, 2005 →
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 7 posts

Recent comments XML

new⇒Trogdor tattoo!!

Oh, so cute, wowoowow....

Kathy Mead: Sep 7, 6:07am

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.055s.

(Used 7 db queries)

mobile phone