Which style of Ruby string quoting do you favour? Up until now I’ve always used 'single quotes' unless the string contains certain escape sequences or interpolation, in which case I obviously have to use 'double quotes'.
However, is there really any reason not to just use double quoted strings everywhere?
Don’t use double quotes if you have to escape them. And don’t fall in ‘single vs double quotes’ trap. Ruby has excellent support for arbitrary delimiters for string literals:
Mirror of Site – https://web.archive.org/web/20160310224440/http://rors.org/2008/10/26/dont-escape-in-strings
Original Site – http://rors.org/2008/10/26/dont-escape-in-strings