R
rtilley
Is there a right way and a wrong way to code in Ruby?
I just started coding some in Ruby last Friday. Since then, I've written
several small scripts on Windows using WMI with Ruby. My scripts work
fine, I just worry that I'll develop bad habits or that I'm not
programming idiomatic Ruby. Is there such as thing as idiomatic Ruby?
Python hackers call idiomatic Python 'Pythonic' and code that is not
Pythonic is frowned upon. They are rather rigid, but I like Python OK.
My goal now is to port much of my Python code to Ruby as a learning
experience. So, should I post code here for comments and suggestions?
Or, is it safe to assume if my Ruby scripts work as I expect them to
that they are OK?
Many thanks,
Brad
I just started coding some in Ruby last Friday. Since then, I've written
several small scripts on Windows using WMI with Ruby. My scripts work
fine, I just worry that I'll develop bad habits or that I'm not
programming idiomatic Ruby. Is there such as thing as idiomatic Ruby?
Python hackers call idiomatic Python 'Pythonic' and code that is not
Pythonic is frowned upon. They are rather rigid, but I like Python OK.
My goal now is to port much of my Python code to Ruby as a learning
experience. So, should I post code here for comments and suggestions?
Or, is it safe to assume if my Ruby scripts work as I expect them to
that they are OK?
Many thanks,
Brad