Looping with map:
players = [new Player('foo'), new Player('bar'), new Player('baz')];
var i = 42;
players.map(function (p) {
p_ref = p;
# Usage: | |
# echo "GET REKT" | ruby pinouchonizer.rb | |
letters = DATA.read.split("\n\n") | |
puts( | |
STDIN.read.chars.map do |c| | |
letters[c.ord - 65] | |
end.join("\n\n").gsub('x', ':pinouchon:').gsub(' ', ' ') | |
) |
Looping with map:
players = [new Player('foo'), new Player('bar'), new Player('baz')];
var i = 42;
players.map(function (p) {
p_ref = p;
var ford = new Car({
model: 'ford',
power: '20'
});
var tesla = new Car({
model: 'tesla',
Will humans be reduced to manual labor, as that's the only role that makes economic sense? | |
No, robots will be better than humans at manual labor, too. | |
:) | |
http://www.reddit.com/r/Futurology/comments/y9lm0/i_am_luke_muehlhauser_ceo_of_the_singularity/ |
That said, though, MI is no picnic; mixins seem to be a better solution, but nobody has solved the problem perfectly yet. But I'll still take Java over C++, even without MI, because I know that no matter how good my intentions are, I will at some point be surrounded by people who don't know how to code, and they will do far less damage with Java than with C++.
For the most part, Ruby took Perl's string processing and Unix integration as-is, meaning the syntax is identical, and so right there, before anything else happens, you already have the Best of Perl. And that's a great start, especially if you don't take the Rest of Perl.
https://sites.google.com/site/steveyegge2/tour-de-babel
Every week I get approached by someone with a “game changing” idea. All they need is someone to execute it. “Hey, I’ve heard you are good at IT stuff, let’s start up!”. Well, no.