Older blog entries for Archit (starting at number 120)

And some more #inject foo

def fibbo (x) (1..x).inject([1, 1]) {|a,i| a << a[-1] + a[-2]}; end


fibbo(5).each { |d| p d }

althought you can do the factorial like this too (which is more doable in every other language)

def factorial (x); return (x > 1 ? x * factorial(x-1) : 1); end

Ah the lovely #inject in ruby =D

So today I was just discussing on #ruby-lang about how Array#inject and Range#inject is a neat concept, but till haven't appreciated it since I didn't see much application of the concept for something useful.

However shortly afterwards I came up with some ultra-sweet

def factorial (x); (1..x).inject { |a, b| a*b }; end

I love Ruby (and #inject) =D

Python Flame on #ruby-lang

<siri> eek: my impression is that many of those who enjoy python are not really programmers/computer science people

Of opinions and assholes

During a recent flame war on #ruby-lang today regarding C++ and Java, which is better (idiots, its Ruby thats the best, doh!) eek said this,

<eek> dross: a number of Java programmers dislike C++; a number of C++ programmers dislike Java; this is generally irrelevant. "opinions are like assholes - everybody got one, but it is generally uninteresting to see that other guy's"

Must Give Mono a Try!

ORE v0.1 codename "Man titties" released!

The first version of ORE, my Ruby Editor for Gnome has been released. Catch the release at ORE Homepage

111 older entries...

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!