Re: Rails'' inflections are messy

davidcelis
Fri, 27 Jul 2012 15:00:59 -0000

I don''t think that''s really a good option. Some Rails
internals already
rely heavily upon the inflections; there have to be some pluralizations
loaded by default (whether from within the framework, or an inflections
gem). If they WERE to be extracted into a gem (which is what I did), it
would still need to be bundled by default. Inflections are used in routing,
mapping between models and controllers, and a lot of other places within
Rails. They need to be there.

On Thursday, July 26, 2012 6:21:26 PM UTC-7, Rafael C. de Almeida
wrote:
>
> One thing that have always bothered me about the inflector and this
> pluralize business is that it only work in English. That make rails newbies
> from non-english speaking countries have a harder time learning the
> technology than they should. I know ruby''s keywords are already in
English,
> and so are method names and so on. But reading a foreing language is
> easier; and so is using already defined names. However, a person who
> doesn''t know English very well will not do a good job in naming
his own
> variables and models in English. A famous quote from computer science field
> goes: "There are only two hard things in Computer Science: cache
> invalidation and naming things". Imagine naming it in a language
you
> aren''t proficient.
>
> Perhaps inflection should not be the default. Maybe it should be optional.
> If you want it, then you can load your language''s inflection gem,
if it''s
> available.
>

--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit