kotct / docket-old

DISCONTINUED: A docket application.
3 stars 0 forks source link

Two Coding Style Questions #24

Closed Sammidysam closed 10 years ago

Sammidysam commented 10 years ago

What is preferred?

Single or double quotes for a Ruby string?

class: "thing" or :class => "thing"?

cg505 commented 10 years ago

Double, and for the second I don't have a strong preference, but I would generally prefer the first (newer) syntax.

cg505 commented 10 years ago

@four04?

rye commented 10 years ago

Double quotes, always. If you see something autogenerated that uses single, change it. And I would prefer the newer syntax, especially for things like link_to tags (where I believe you saw that)

Sammidysam commented 10 years ago

Okay, we will use double quotes and the newer syntax then. Thanks for letting me know.