dot.Using Making technology about computers, and computers about usability.

Posts Tagged Uncategorized

I think I really dislike Python

Ruby:
> irb
irb(main):001:0> a = [1,2,3]
=> [1, 2, 3]
irb(main):002:0> a[10] = 20
=> 20
irb(main):003:0> a
=> [1, 2, 3, nil, nil, nil, nil, nil, nil, nil, 20]

Perl:
> perl
@a = (1,2,3);
$a[10] = 20;
use Data::Dumper;
print Dumper(@a);
$VAR1 = 1;
$VAR2 = 2;
$VAR3 = 3;
$VAR4 = undef;
$VAR5 = undef;
$VAR6 = undef;
$VAR7 = undef;
$VAR8 = undef;
$VAR9 = undef;
$VAR10 = undef;
$VAR11 = 20;

Python:
> python
>>> a [...]

  • Digg
  • del.icio.us
  • Reddit
  • Technorati
  • email
  • Facebook
  • Google Bookmarks
  • Pownce
  • TwitThis

A bright idea in the middle of the day

I was reading a blog yesterday about “The sad state of open source monitoring tools” and was thinking about it for some time. Coincidently today I had a chance to look at my CruiseControl configuration files, which I wrote quite a long time ago.
I really love the DSL that CruiseControl is using for it’s configuration, [...]

  • Digg
  • del.icio.us
  • Reddit
  • Technorati
  • email
  • Facebook
  • Google Bookmarks
  • Pownce
  • TwitThis