I mean hey, fix the slowness (it's already as fast as python), and it's a perfect language. The whole "everything as an object" concept and easy to understand syntax makes it both flexible and simple.
And having everything as an object makes even lambdas able to be passed as single variables, so you can pass an entire function as an argument to another function, without having to have that function evaluated till later.
>>7
Because that is how we do things here and if you do not like it you are more than welcome to go the fuck back to whatever shit hole you were spawned from.
Eat a bowl of dicks ``faggot''
I enjoy ruby immensenly. If I designed a language it would very much like ruby but much much terser.
Name:
Anonymous2011-06-16 7:02
Ruby uses that retarded "if then end" doesn't it? Can't I just use { and }? A certain program I use forces me to use LUA and it doesn't let me to do so. Does Ruby? If I can use { and }, then I'll start using Ruby right away because otherwise it looks awesome.
And having everything as an object makes even lambdas able to be passed as single variables, so you can pass an entire function as an argument to another function, without having to have that function evaluated till later.
WOW I NEVER SAW THAT FEATURE BEFORE
NOT EVEN IN C
MAD
also *lambdae
>>28
Those commie fags don't even have the internets.
Name:
Anonymous2011-06-16 12:44
Embracing the atmosphere of Baekdu Mountain,
Nest for the spirit of labour,
The firm will, bonded with truth,
Will go forth to all the world.
The country established by the will of the people,
Breasting the raging waves with soaring strength.
Let us glorify forever this Korea,
Limitlessly rich and strong.
It doesn't offer me anything I haven't found in other languages, and it doesn't challenge my mode of thinking. I look for languages with alternative paradigms and different methods of doing everything to exercise my critical and creative thinking, and I look for languages with useful and original features because doing everything myself is a gigantic pain in the ass.
The "everything is an object" idea isn't something that hasn't been seen a dozen times before, in Python, for instance. According to the author, Ruby is intended to be a language to make programming easier and more fun, which is all fine and well; I've got no problem with it if people enjoy it. But it doesn't introduce anything new.
>>39
Don't be blaming that shit on Perl. Perl's linguistic influence is at least meaningful. And thank fuck you can't write 5.times in Perl. Or 5->times for that matter.
Name:
Anonymous2011-06-17 0:38
Reasons why ruby sucks?
Blocks are not lambdas are not procs are not methods are not blocks are not procs are not lambdas are not blocks are not methods. In a decent language they're all the same. (a decent language has a multiple dispatch object system with generic functions if any)
Other reasons? end
end
end
end
Variables are not declared (or declaration looks the same as assignment) variable = 1; variabIe = 2; if variable == 2 then puts "foo" end
>>41
It's only as slow as Python. RoR is Ruby as fuck, thanks to all the damn monkey patching. Moot point I guess, Ruby wouldn't be cool without its coke habit.
I prefer end to } 9 days out of ten.
Name:
Anonymous2011-06-17 2:35
I prefer end to } 9 days out of ten.
Why? It's arbitrary.
x = do this
that
somethingelse $ do
more stuff
more
andThen $ do
morestuff
>>40
My pleasure: perl6 -e 'use MONKEY_TYPING; augment class Int { method times($c) { $c.() for (1..self) } }; 5.times: { say "fuck off" }'
fuck off
fuck off
fuck off
fuck off
fuck off
Ruby is very well capable of not looking like crap, but there is absolutely no problem with letting the programmer go nuts if he so pleases. Adding restrictions only makes a language worse.
For any do end block you can use { and } instead... everything else I can't help you with, but luckily vim uses different syntax coloring for an end to an if/else/case statement than it does for a class/module/method/block definition.
>>1
Because all Ruby programmers are pretentious gen-Y faggots with no background past Java or PHP who think first-class functions are a subset of OOP.