Topic: When to omit parenthesis?
I know with ruby, one can omit parenthesis from a method call in many cases. However, I am wondering generally what are the standards or best practices with this? In rails, I've been omitting them except where required. For example:
def create
@product = Product.new params[:product]
end
def update
@product = Product.find params[:id]
@product.update_attributes params[:product]
end
<%= link_to image_tag('pic.png'), product_path %>But im wondering if this is really the best way to go. Look at the ASP.net for example, where MSDN lays out the standards on naming conventions and so forth.
Thanks for your input