This is the second article in the three-part series. If you missed the first one, you can find it here Celluloid has a ton more awesome tools to make concurrent programming incredibly easy in Ruby. Let’s take a look at them. Futures…
Continue Reading… This is the second part of a two-part article. Please read the first article if you haven’t already. Reproduction The chromosomes are reproduced with the weighted random (i.e. roulette machine) code that we just added to the Chromosome class. The idea is…
Continue Reading… Charles Darwin produced the theory of the “survival of the fittest” (though the term was coined by Herbert Spencer), which means that the fittest and quickest adapting organisms in a specific environment will always prevail over the others. This makes a lot…
Continue Reading… If you have never seen or written any XML thus far, consider yourself very lucky. XML started out as a very friendly and sane way to represent data so that it would be human readable and machine readable at the same time.…
Continue Reading… Disclaimer: There are several Graph database projects available, including open-source and commercial projects, projects that aim to be APIs to Graph databases, and projects that are specialized in Distributed Graph Processing. For the articles in the series “Using a Graph Database with…
Continue Reading… Redis is a key-value store that stands out from others, like memcached, in that it has built-in support for data structures like lists, sets, and hashes, and that it can persist data to disk. As such, it is quite useful as both…
Continue Reading… If you’re not familiar with this series, please consider reading the introduction. Arrays in Ruby are pretty important. I know…reading that sentence you might be thinking “Arrays are important in all languages” but that’s not really true. There are a lot of…
Continue Reading… In part one of this series, we looked looked at the basics of functional programming and visited in detail immutability and side-effect free code. Today, we’re going to look at higher-order functions and currying, two amazingly useful functional style features that Ruby…
Continue Reading… What’s Diaspora*? Diaspora can be viewed from two different perspectives: first, from an end user’s, who could find Diaspora much similar to other social networks like Google+, Facebook, or even Twitter. I used to think that Diaspora was different, having some unique…
Continue Reading… Just about every type of datastore has some form of indexing. A typical relational database, such as MySQL or PostreSQL, can index fields for efficient querying. Most document databases, like MongoDB, contain indexing as well. Indexing in a relational database is almost…
Continue Reading…