Scott Bush

Like Facebook, but with far fewer readers.
  • rss
  • Home
  • Portfolio
    • Education
    • Career
    • Volunteer
  • About Me

The Coder-Journalist Problem

20 May 2008

Two facts:

  1. A.P. Style and just about every other grammatical reference for US English advocates placing a comma within quotes. I was a high-school journalist and continue to use AP Style when editing.
  2. PHP and every other programming language I’ve ever used require strings (that’s coder-talk for some text) to be wrapped in quotes. Function parameters need to be separated by commas.

See where this is going? When coding, I constantly find myself putting the comma correctly within the quotes and having to go back and change it to the outside. The reverse is usually not an issue: when I write, I don’t habitually put the comma outside quotes. I guess that means I’m more of a writer than a coder?

One solution: move across the pond and use British English, where commas and other punctuation go outside quotes! < Gasp! > What savages!

Categories
IT, Language
Comments rss
Comments rss
Trackback
Trackback

« Dojo demonstration (or “fire walk”) You don’t save gas money at Costco »

Leave a comment

You must be logged in to post a comment


Recent Posts

  • More than one way to skin an e-mail account
  • East vs. West
  • The Questlamation Mark
  • Another reason to love WordPress
  • Photo tagging: the next blow in online reputation management

Blogroll

  • Colby Creative
  • Crystal and Scott
  • Eric Nusser’s “I got the broken cookie” blog
  • Margielize and Jacob’s blog
  • Sean Neumann

Webdev/UI

  • 456 Berea Street
  • A List Apart
  • Digital Web Magazine
  • Nourishment to help the web grow
  • Smashing Magazine
  • UseIt.com
rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox