No, I'm not a "Ruby programmer"
April 25th, 2008
Because I’m rather an enthusiastic of a person, I use to ramble on many things, ideas and any stuff in general I’m happy to fiddle with. So I talk a lot about gadgets – mostly of those I wish I had –... Read more »
Documenting your parameters
April 11th, 2008
Consider you are reading a chunk of code, and you see a method mock_person('jack', 1, 24, 72, 180) You’ll probably wonder what the parameters are. As you know, you should avoid using magic constants in your code; they make it less readable,... Read more »
An ideal language
April 9th, 2008
From the human (programmer) point of view, all computer languages suck. It’s not the fault of their designers; creating a successful programming language is very difficult, as different tasks call for different kinds of tools. By definition, a general-purpose language will be... Read more »
Snarl/Growl with rstakeout
February 25th, 2008
I modified rstakeout.rb a bit to allow platform-dependent notification via Growl or Snarl. See Pastie 152014 Update: Pastie nr. 177066 works in Linux too. Update 2: It’s likely that http://www.nomedojogo.com/2008/05/14/the-autotest-notification-gem/ contains a much better tested implementation, so maybe you should use that... Read more »
Simple mapping of deeply nested collection objects
January 29th, 2008
Again, it’s time for some Ruby luv. Coming from imperative programming background, you probably do something like the following once in a while. Now, suppose you have an instance of the class Organization, which has many departments and each department has many... Read more »
More natural mathematics with Ruby
January 21st, 2008
Ok, maybe the title has a bit too much grandeur in it, but let me get to the point. One of Ruby’s major strength lies in it’s use of blocks. They allow the programmer to benefit from lazy evaluation, or to use... Read more »
Kandidaatintyö Ruby on Railsistä ja testauslähtöisestä suunnittelusta
January 15th, 2008
Kirjoitin taannoin kandidaatintyöni Ruby on Railsillä toteutettavasta www-sovelluksesta testauslähtöistä suunnittelua käyttäen. Oheen liitetystä kopiosta on korjattu muutama painovirhe. Työ on saatavilla vain suomeksi [PDF]. Read more »
Tampere.Ruby.User.Group.reality?
October 26th, 2007
Ok, it might be a tad early, but we did have our First Meeting last night and it was pretty awesome. We expected a total of four to five people according to quick e-mail exchange we had few days before the event,... Read more »
Unit test quickie
October 23rd, 2007
Having your unit tests isolated is something to strive for. Why? because ideally, when you (or someone else) introduces a bug to the system, only a single unit test would fail, thus leading you to the source of the error quickly. If... Read more »
Mock/Stub police for your Ruby/Rails unit tests
October 3rd, 2007
I just wrote a simple unit test which indirectly resulted in calling create for the AR object. The problem is that I don’t want to create objects in my unit tests – in particular, I try to avoid hitting the database (or... Read more »
TextMatish colors for Emacs
July 23rd, 2007
If you have color-themes package installed and you use Emacs AND you envy those Mac users for ..well, for many things, you might like my initial hack for TextMatish colors. I use it for coding RoR and this is but my initial... Read more »
All tests go green
July 18th, 2007
Many rails kiddies as well as pros alike have blogged something about colorizing your test results. However, few of the hacks seemed to work in Windows without requiring other gems or fiddlings. So here’s my simple solution which borrows heavily from Pat... Read more »
Simple helper for conditional containers
July 6th, 2007
I often come into situation where I want to add a some content wrapped inside a container only if some condition is true, usually some item should be non-empty. For example, consider the following Rails view: 1 2 3 4 5 6... Read more »
Rails job board
May 7th, 2007
Not news for you rails afficionados, but Working with Rails is an excellent site for Rails developers seeking the jobs they love, as well as for companies who seek talented Ruby/Rails developers. There’s also a handy link you can put to your... Read more »
Design Patterns Made Trivial with Ruby
February 5th, 2007
Today I (again) experienced one of those moments I felt like hugging Ruby, if it was an organic being (wait.. it isn’t?). I wanted a cleaner way to handle file paths compared to treating them as just strings with appropriate methods, so... Read more »
Adding plugins to your Ruby application
November 23rd, 2006
is quite intelligent fellow. He seems to be a true Master not only in Ruby Language, but also in theoretical computing and mathematics. Every time I really read his blog I learn something new, not only from Ruby but about programming algorithms... Read more »
Why I dig Ruby, part 1
July 25th, 2006
I really like Ruby. For example, a project needed a system to sort version number strings like “3.1.41”. First I converted a recipe to Ruby, resulting in the following code: 1 2 3 4 5 6 7 8 9 10 11 12... Read more »
Tampere.rb?
May 3rd, 2006
Rubygardenissa on lista paikallisista käyttäjäryhmistä. Olisi upeaa saada Tampereelle oma RUG (Ruby User Group), joka voisi kokoontua esim. kerran kuussa. Toiminta voisi olla jotain seuraavanlaista: Ruby-aiheisia esitelmiä kokemukseni toteuttaessani foo:n Rubyllä jne Ruby-koodaussessioita laajennetaan standardikirjastoa tai korjataan siinä ilmenneitä bugeja toteutetaan jokin... Read more »
Ruby ja www-sovellukset
April 18th, 2006
Jostain syystä olen viimeisen viiden päivän aikana saanut mainostaa Ruby on Railsiä useampaan kertaan, joskus sitä on jopa pyydetty (epäsuorasti toki :) Tässä linkki artikkeliin, mihin olen aina viitannut mutta en ole muistanut sijaintia: Oma Blogi pystyyn 15 minuutissa Read more »
Ruby - täydellinen ohjelmointikieli?
March 8th, 2006
Ruby tuntuu olevan lähestulkoon täydellinen ohjelmointikieli. Se on tulkattava, puhdas OO-kieli, joka on kuitenkin toteutettu siten, että hyvin yleisten ohjelmointi-idioomien toteuttaminen ei vaadi rivitolkulla koodia. Kaikki ovat todellakin olioita kuten mm. kokonaisluvut, olioilla on yhtenäinen luokkahierarkia, kielessä on mukana tuki sulkeumille (closures),... Read more »