Naming conventions: Difference between revisions

m
(→‎{{header|Factor}}: Explain file naming conventions)
m (→‎Constants: typo)
Line 1,274:
 
===Constants===
In ruby, constants must beingbegin with an upper case letter and are traditionally in screaming snake case (note: this is the one point of contention within the ruby community when it comes to naming conventions. A majority of ruby users use screaming snake case, but some use Pascal Case for constant names instead). Anything assignable object that begins with an uppercase letter is automatically a constant in ruby. Constant names should be descriptive as well. For example, a constant for the recursion limit could be <code>RECURSION_LIMIT</code>.
 
===Method names===
1,149

edits