KarthickNarayana / toy_robot

0 stars 0 forks source link

Camel case vs snake case #10

Open scepticalcat opened 3 years ago

scepticalcat commented 3 years ago

https://github.com/KarthickNarayana/toy_robot/blob/3d570a92d5c8b027e2456ec4f7bce47223719ecf/lib/toy_robot/robot.rb#L63

While the distinction is effectively irrelevant to the language, conventions are important for legibility and maintainability and so using camel case for variables when it's Ruby convention to use snake case should be avoided.

KarthickNarayana commented 3 years ago

just flash from past - Java Vs Ruby. Snake case for Ruby.