News for hackers. Stuff that matters.

Ask HN: How do you quote?

In contexts where it doesn't matter what kind of quotes (' vs ") you use, which do you use for strings? Singles seem "cleaner" in some cases but I tend to carry over doubles from use in other languages.
( 3 comments | 5 points | on HN )
Re:Ask HN: How do you quote? by AndrewGCook on Thursday September 29, 2011 @07:51PM (#3054855)
Single quotes as much as possible, unless it's a MySQL call or HTML.

I hack in PHP mostly.

Re:Ask HN: How do you quote? by kragniz on Thursday September 29, 2011 @07:14PM (#3054747)
I always use single quotes if I can, one less keypress. I'm a Pythonist.
Re:Ask HN: How do you quote? by parthshah on Thursday September 29, 2011 @10:00PM (#3055225)
I personally prefer single quotes. There are some advantages of double quotes like you don't have to close quotes every time you use variable. But I prefer singles because its cleaner and it helps me read my own code better.