...than u rule da web.
- There are GA tutorials available in several other languages, if this doesn't work for you. Btw, if a tutorial was offered in Lisp/Haskell, would we see the same suggestion?
- For Ruby/Python programmers, this isn't hard at all to read. Familiarity with non C-style languages might be something to pick up.
- Having moved to Coffee from C-style languages, I prefer coffee. But that is just my opinion.
I think HNers should be more tolerant of language choices. That argument can't really be won.
The javascript seems to be mainly horrible because of the coffeescript code being object oriented and its lack of a more powerful looping construct.
Population = (function() { Population.prototype.genomes = []; })();
This throws a ReferenceError because Population is not defined.
Genome = (function() {
Genome.prototype.values = [];
function Genome(values) {
this.values = values != null ? values : this.initial();
}
Genome.prototype.inital = function(){
return [RANDOMARRAY FROM [0-14]]
}
})();After this part Genome will be undefined.