12 karma · joined Nov 18, 2010 (16y ago) · 6 submissions
comment 16y ago · link · parent
comment 16y ago · link · parent
This argument, that you almost never need to pass in more than one block to a method, is true, only because Ruby doesn't as elegantly support the alternative. If it did, then you'd probably have plenty of multiblock methods like do:separatedBy: as you do in Smalltalk.
"With that said, you may disagree, but you can see where I'm getting at. Just because something did it _first_ doesn't mean they did it best."
So Smalltalk's blocks, which are versatile enough to be the basis for the language's control structures, are inferior to the block, proc, lambda trifecta of Ruby? Are you seriously telling me that you wouldn't prefer Ruby just have procs (real objects) with the block syntactic sugar and maybe also lamdbas, for their different return behavior?
"Smalltalk is a fine language, but I can't get into the whole image thing."
I used to feel the same way, but that was because I didn't understand the image. To me it was some digital blob with code and program state in it; I was always scared of breaking it or losing code. Then I learned how to actually use it, thanks to Squeak/Pharo by Example. Now I wouldn't have it any other way.
"While we're on this whole "educate others about language features" kick, Rubyists almost never use curly braces. One-line blocks are the only time. ;)"
Ruby is a curly brace language even if Rubyists opt not to use them; syntactically it belongs to the C family of languages, which are the "curly brace" languages.
comment 16y ago · link · parent
Not as readable as Smalltalk.
"...and doesn't punish you with too many horrible compile errors"
Yes, it absolutely does. In fact, Ruby is probably the most syntactically complicated language after Perl and C++. Smalltalk has six reserved words and its syntax fits on an index card.
"It's a real language and you can point to a lot of apps using it and people who've made lots of money doing so. Kids are smart enough to get irritated if you just hand them something that isn't a real thing. My little cousin is mercenary enough that the mention of this being used in a large number of new things that made lots of money was really exciting to him."
Smalltalk is a "real thing" and has been used professionally for years in the financial sector and recently has experienced a bit of Renaissance in web apps, and even found use in a YCombinator startup (Auctomatic). Granted, the community isn't as big as Ruby's, but it is quite healthy and continues to grow.
"There seems to be a proportionally higher number of people in the Ruby community who are into helping kids learn to program."
No, there aren't. Squeak _started_ as an educational project, and the Smalltalk community still has a heavy educational bent to it.
comment 16y ago · link · parent
The Ruby community is both ahistorical and insular. Most Ruby programmers came to Ruby from Java, PHP or some other mainstream language and have an uninformed opinion about Ruby's merit as a language and its place in the wider world of programming languages. The proof of this is their tendency to excessively tout features that Ruby borrowed from Lisp, Smalltalk and Perl, often with an implication that these features are unique or somehow special to Ruby when they have sometimes existed in other languages for decades (e.g., blocks, metaprogramming or flexible, TIMTOWTDI syntax) and often in a better form. (Compare Smalltalk's blocks, which are always real objects, to Ruby's, which need to be converted into Procs if you wish to treat them like objects).
The main issue I have with Hackety Hack is the existence of a mature, Smalltalk-based alternative named Squeak. Smalltalk is a much, much simpler language than Ruby and has a history of being used to tech children programming dating back to the 1970s. Squeak also has Scratch, EToys and Morphic. What exactly does Ruby bring to the table, other than nicer looking websites, bigger egos and curly braces? Would it kill Rubyists to learn a little bit about the languages that influenced Ruby and other non-mainstream or academic languages, to at see what they might be missing out on?