Hacker News new | ask | show | jobs
by smhenderson 4158 days ago
Most of my HTML is generated by Perl so I am the opposite. Alls string vars at the Perl level are wrapped in double quotes in case interpolation is necessary. Attributes are wrapped in single quotes so my Perl code doesn't contain a bunch of \" patterns scattered throughout.

I totally agree about consistency though; I even take the minor performance hit when interpolation is unnecessary by using double quotes anyway so that all uses of double and single quotes are consistent