Rails reserved words and convention

Posted by PatrickLightning on Stack Overflow See other posts from Stack Overflow or by PatrickLightning
Published on 2013-11-04T21:36:00Z Indexed on 2013/11/04 21:53 UTC
Read the original article Hit count: 316

After having spent a lot of time researching Rails reserved words and implementing, I still have a few questions regarding use.

In my example here, I'll consider the reserved word 'time'. Let's say I want to create a class 'Timepiece'. Is it not recommended to use 'timepiece' because the name begins with 'time'? Would it be recommended to use 'time_piece' or to avoid inserting the reserved word at all? My question here is also about use of the exact reserved word within the class like that.

Thank you.

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about naming-conventions