On 11/07/2011 04:20 PM, Darryl L. Pierce wrote:
I've been considering, for our newer Ruby APIs, renaming the module
names to be more like the namespaces used in C++. IOW, right now you
need to use:

connection = Qpid::Messaging::Connection.new

but I would prefer using:

connection = qpid::messaging::Connection.new

Anybody have a reason not to rename these items?

What is the general convention for Ruby modules (if indeed there is one)?

I'm not qualified to comment on that myself, but from a very quick search:

"Ruby class and module names are also constants, but they are conventionally written using initial capital letters and camel case, LikeThis."[1]

Most tutorials seems to follow that convention also [2],[3]. Any references supporting lower case modules?

[1] http://rubylearning.com/satishtalim/ruby_names.html

[2] http://ruby-doc.org/docs/ProgrammingRuby/html/tut_modules.html

[3] http://rubysource.com/net-to-ruby-namespacing-naming-conventions-comments-documentation/


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:[email protected]

Reply via email to