4 ms·
http://www.catb.org/jargon/html/writing-style.html http://www.catb.org/jargon/html/writing-style.html > Hackers tend to use quotes as balanced delimiters like
by teddyh 9y ago
http://www.catb.org/jargon/html/writing-style.html http://www.catb.org/jargon/html/writing-style.html
> Hackers tend to use quotes as balanced delimiters like parentheses, much to the dismay of American editors. Thus, if “Jim is going” is a phrase, and so are “Bill runs” and “Spock groks”, then hackers generally prefer to write: “Jim is going”, “Bill runs”, and “Spock groks”. This is incorrect according to standard American usage (which would put the continuation commas and the final period inside the string quotes); however, it is counter-intuitive to hackers to mutilate literal strings with characters that don't belong in them. Given the sorts of examples that can come up in discussions of programming, American-style quoting can even be grossly misleading. When communicating command lines or small pieces of code, extra characters can be a real pain in the neck.
- hhjkjhkjhhlkj 9y agoI find the changing stuff that is a quotation at odds with the whole point of quoting something. I'm from the UK so the guide is actually unhelpful for me as it introduces what I'd see as bad practices. Also an ellipses is a special character not 3 full stops, even if they are a good substitute.
- rocqua 9y agoI guess that makes me a 'hacker'. I can see why we the old way might look nicer, but the hacker way is simply more precise.
- hanbura 9y agoArguments for British style quotes: - doesn't mutate the quoted string - fewer weird edge cases - encodes more information in same amount of characters (if quote might have ended on punctuation) - needs fewer rules Arguments for American style quotes - It looks more balanced if punctuation marks that use less ink than a quotation mark come before it I think there is no surprise that hackers prefer the straight-forward way that might look marginally worse
- Harvey-Specter 9y agoIn the British style what is the rule if the quotation ends in punctuation? Do they include additional punctuation outside the quotation, since presumably the punctuation inside the quotation doesn't count as ending the sentence? I'm thinking of a sentence like: > Bill said "I prefer American style." Would the British write it as follows? > Bill said "I prefer American style.".
- dghf 9y agoNo, we'd write it the first way, even if the quotation ended with punctuation not appropriate to the sentence as a whole: e.g. > Bill asked "Do you prefer American style?" even though the sentence, taken as a whole, is a statement rather than a question.
- ghaff 9y agoI assume that American-style quotes came about for typographic/aesthetic reasons. I agree that the British approach seems more logical and straightforward overall.
- SerLava 9y agoSupposedly it has something to do with typewriters malfunctioning when placing the period or comma outside. Which makes it even more annoying that it is an adopted standard.
- ghaff 9y agoI'm not sure I believe about typewriters. It doesn't really make sense to me as the characters are still adjacent to the quotes. So I wouldn't think shifting them would help with jamming the keys. I do suspect though that it's probably related to aesthetics and/or mechanical issues associated with lead type.