« My Ruby on Rails Experience, Part 2 | Main | My Ruby on Rails Experience, Part 4 »

Nov 25, 2005

Comments

Jon Wood

If you're using Rails 0.14 you can override the inflector in environment.rb to define plurals as being non-standard - it's all documented either there, or in ActiveSupport::Inflector (I think) in the API documentation.

Giuseppe

Sorry but...
Syllabi IS the plural of Syllabus and fo course Curricula IS the plural of Curriculum (both from Latin language).
Bye!

Philip Caplan

Pardon a question from a non-programmer:

wouldn't it be good practice when naming things (such as classes, variables, etc) to always use non-dictionary word constructs, perhaps by putting something at the front of otherwise 'ordinary' words:

such as clSyllabus, vaTeacher

or even better make your names "personalized",

such as (when working on MySuperDuperProgram):

msdp_clSyllabus

Aren't there always going to be risks of bugs caused by using "reserved words" otherwise?

Just curious why this isn't common practice/taught behaviour?

PHILIP CAPLAN

The comments to this entry are closed.

Destiny

  • Destiny is my science fiction movie about the future of humanity. It's an epic, similar in breadth and scope to 2001: A Space Odyssey.

    To see the 18 minute video, click on the graphic below.

    Destiny17small

People