KBD

Keith Devens .com

Sunday, March 21, 2010 Flag waving
REMEMBERS- HEEL BARES DURID! BARE DURIDS IS STORNG FREND! – Alamo

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 →
March 2010
SunMonTueWedThuFriSat
 123456
78910111213
14151617181920
21222324252627
28293031 



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

Recent comments XML

new⇒Spider solitaire

I to am somewhat addicted to​spending too much time on SS.  I​have been stu...

stupid_horse: Mar 20, 10:34pm

I hate ASP.NET

I hate ASP... I was doing wonders​with PHP, then suddenly one of my​clients...

Johnies: Mar 17, 6:14am

Quantum physics and free will

I knew you were going to say that....

Tom Massey: Mar 15, 9:26pm

Generated in about 0.049s.

(Used 7 db queries)