Drawing the Mandelbrot set in Ruby and Haskell

Drawing the Mandelbrot set in Ruby and Haskell

Generating the wonderful Mandelbrot set in Ruby and Haskell – it’s amazing how simple math can give birth to such a sophisticated shape. It’s elegance fits Ruby and Haskell well. Come closer and see the wonders!

 
Read More

Functional ruby – a simple example

Functional ruby – a simple example

Today I’d like to present the implementation of the quicksort algorithm, starting from a naive imperative solution and improving it for elegance and clarity.

 
Read More

Top 5 trends and technologies in software development

Top 5 trends and technologies in software development

In this ever-changing world of software development it’s extremely important to keep up with current technologies, methodologies and trends. It can easily get out of hand though – simply there’s not enough time for anyone to learn all new stuff, work and live a normal life simultaneously. Selection is thus the key, being smartly selective about new things to learn so we won’t miss important stuff but also keep ‘junk’ or unimportant trends out.

I created this small and ever-incomplete list of things I feel we all should pay attention to and practice. Some items could be considered ‘old’ (read: more than a few months old) but still not grasped enough yet.

 
Read More

Dissecting the web with ruby and hpricot

Dissecting the web with ruby and hpricot

Let me introduce you to an old friend of mine: Hpricot

Hpricot has saved my life many times when I had to parse (x)html documents and extract information programatically. It features a very nice ruby-ish syntax and a blazingly fast xpath-based parser. Combine it with open-uri, and you’re in for a fun ride creating a data-extracting web spider.

 
Read More

A nice example of continuations in ruby

A nice example of using continuations in ruby: exception-continue – related to my post “Continuations and ruby“.

 
Read More

Why ruby? part three – method arguments

Table of contents for Why ruby?

  1. Why ruby? part one – a classy class system
  2. Why ruby? part two – blocks and closures
  3. Why ruby? part three – method arguments

This is the third part of my series: “Why ruby” – this time I quickly run through using method arguments, their types and some examples.

 
Read More
Page 1 of 3123