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… A few years ago, there used to be a very easy way to optimize code. If you found out that your processor-heavy code was running a bit slower than you wanted it to, the simple solution was just to wait for the…
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… Event Machine is an awesome library that brings event-based, non-blocking IO to Ruby. Instead of saying “write to this file”, and then waiting for that procedure to end, you say “write to this file, and call this function when you’re done”, and,…
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… Way back when in the 1600′s, astronomy was all the rage in Europe, due for the most part to the invention and production of telescopes. As a result, kinds of people were able to learn more and teach society more about stars…
Continue Reading… Annoyances Handling payments in the past has been a complete pain. Just looking at PayPal’s API introduction makes me want to scream. Redirects, logins, checkouts; I just want process a payment! Stripe is a much needed breath of fresh air into this…
Continue Reading…