What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 122 Stack Exchange communities.

I have seen many people (mostly those sloppy people who make a lot of grammatical/spelling mistakes) putting a space before punctuation, especially before a question mark .

Is this a widely spread habit shared by programmers?

share|improve this question
2  
I think that's valid on some languages. –  YOU May 14 '11 at 8:21
1  
@YOU What language do you have in mind? I see it in English sentences. –  sawa May 14 '11 at 8:22
1  
And if I put 5 spaces before it, why would you care ? Some just consider it cleaner. –  Xeo May 14 '11 at 8:23
9  
@Xeo I don't get what you mean. –  sawa May 14 '11 at 8:24
    
for organizing .. maybe! –  jjj May 14 '11 at 8:25
1  
why did you call them sloppy people ?! .. i mean everybody make mistakes –  jjj May 14 '11 at 8:27
13  
@jjj Because they often coincide with not capitalizing the beginning of the sentence, writing I in lower case, omitting periods, apostrophes and commas, and making grammatica/spelling mistakes. Sorry, I don't mean to offend you. –  sawa May 14 '11 at 8:31
4  
The other things can be explained by sloppyness/laziness, but putting a space before a punctuation is different, and I couldn't understand the reason for doing it. –  sawa May 14 '11 at 8:47
13  
@Xeo: I care because it often causes the punctuation mark to break to a new line, separating it from the rest of the sentence. –  Cody Gray May 14 '11 at 8:48
3  
1  
    
@YOU yep, and automatic space removal has been disabled on French SE. –  Pops Apr 13 '12 at 15:33
2  
Here in germany we call this "plenking" and it's annoying like hell! It ! looks ! totally ! unnatural! However, when dealing with code it sometimes actually makes sense for readability's sake... But in plain text it's just ugly. –  ThiefMaster Jan 12 '13 at 18:22
1  
@sawa It's valid (in fact, formally required AFAIK) in French. As in: "Voulez-vous un café ?" and "Je m'en fiche !" –  H2CO3 Aug 7 '13 at 15:02
add comment

closed as off topic by Wesley Murch, Toon Krijthe, yhw42, jonsca, Austin Henley Jan 13 '13 at 5:38

Questions on Meta Stack Exchange are expected to relate to the software that powers the Stack Exchange network within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

3 Answers

up vote 7 down vote accepted

In some languages, like French, it is required and carried over into English by some users.

I am not aware of any research into this topic. One can speculate it comes from the use of command-line interfaces where parameters are separated by spaces. Forgetting to separate by a space leads to angry error messages and the anxiety this causes carries over into written English.

share|improve this answer
    
I see. That can be one factor. But I also see people who seem to be native English speakers doing it. –  sawa May 14 '11 at 8:34
1  
@sawa: low quality English is the norm in some Internet sub-cultures. Even my Polish colleague, who has a Ph.D. in biochemistry (and know how to write proper English), use this hard-to-read English in email. But it is a lost cause to try to change such habits. –  Peter Mortensen May 14 '11 at 8:50
    
I understand that, but I can usually distinguish a sloppy English native writing from low quality English written by non-natives. They both make mistakes, but the quality is different. In majority of the cases, it does not seem that putting a space before question mark is due to being a non-native speaker. Some cases may be, though. –  sawa May 14 '11 at 8:53
8  
I disagree with your speculation. A punctuation mark at the end of a sentence would no more be a "new parameter" than would a trailing slash at the end of a directory path. If anything, using a CLI would train users not to insert superfluous spaces! –  Cody Gray May 14 '11 at 9:08
add comment

Quoted from about.com

Two-part punctuation marks In French
a space is required both before and after all two- (or more) part punctuation marks and symbols, including : ; « » ! ? % $ #

share|improve this answer
3  
I see. Maybe that can affect their English. But, I still don't think that the majority of people doing it are native French speakers. By the way, thanks for the quote. I didn't know that. –  sawa May 14 '11 at 8:38
add comment

I occasionally add a space before punctuation to avoid confusion. For example, "I dislike String#upcase!, but I really like String#upcase !".

I'd say it's not so much common with programmers, but any user generated content on the Internet, especially that written by idiots. You'd probably see it with YouTube comments as well. I asked a similar question on Japanese Language and Usage: Is Japanese that lacks proofreading likely to contain bad spelling or grammar?.

Bad English must be chotto muzukashii when you yourself have put a fair amount of effort into learning the language, ne?

share|improve this answer
1  
You might think that avoids confusion, but I have no idea what that sentence says. –  Cody Gray Apr 13 '12 at 0:44
    
@TheEstablishment edited accordingly. –  Andrew Grimm Apr 13 '12 at 0:50
    
So, what you actually mean is: "I dislike String#upcase!, but I really like String#upcase!" :-) –  Cody Gray Apr 13 '12 at 0:51
    
Yes. That's the feeling I have. –  sawa Apr 13 '12 at 1:02
add comment

Not the answer you're looking for? Browse other questions tagged .