[Rails] Re: Rails vs Grails
> The information I have come across from people who know both frameworks
> and languages well is that Rails is better designed and easier to work
> with than Grails.
>
> My former boss wrote probably the largest Groovy project in the history
> of the language. He later switched his business over to being a Rails
> consultancy. I think it's significant that with all his Groovy
> experience, he didn't choose Grails.
That is interesting.
> To the OP: you think an underscore looks like an *operator*? What
> operator does it look like? What are you in danger of confusing it
> with?
Part of the problem for me is that I really can't see well. this-that
and this_that kind of look the same to me.
Also, I do a lot of scala recently. That language uses _ as a
wildcard, so using _ in variable names (even though that isn't very
idiomatic of the platform) would be incredibly confusing.
Anyway, I can probably live with the underscores even though I've been
typing camelCase for 10+ years. The API is the real worry. I don't
like how many of the methods/functions are named. I think, was it
really so hard to call to_s to_string? When I type in an IDE, I
literally type "t" and press ctrl-space and select the method I want.
I can ctrl-shift-space and it'll just guess and type the rest of it
for me.
> Personally, I'd rather use underscores. Their width looks more like
> spaces and lets me parse words more quickly. I find that
> my_variable_name reads almost like spaced text, whereas myVariableName
> looks clunky, computerish, and undifferentiated. (Larry Wall basically
> said the same thing in one of his Perl style guides, FWIW.)
Part of this is experience. If you've been using perl, php, etc., then
the underscores look okay. If you haven't, then they don't.
Consistency is the key. That's also my problem with them. In PHP, you
never know if it's "teardown" or "tear_down". There are so many
problems with the API in PHP that it just left a massive sour taste in
my mouth. Of course, the same problem happens with camel case, but the
ide support for java has been much better than php, so it was less of
a problem ;)
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home