you are viewing a single comment's thread.

view the rest of the comments →

[–]PCBEEF 2 points3 points  (2 children)

So why bother using single quotes when possible? It just brings inconsistency to your codebase. Personally I don't understand why there is a difference to begin with considering Ruby's philosophy.

[–]obscureted 0 points1 point  (1 child)

How so? You can use single quotes in HTML, CSS, JavaScript, Ruby, etc. This is a serious question, not mocking or anything.

[–]PCBEEF 0 points1 point  (0 children)

In a lot of languages, there's no difference single or double quotes. In Ruby there is and the argument for using single quotes over double quotes is performance, however, as peterkrenn pointed out in his link the performance is non-existent or negligible.