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

There's an old and now locked question about semicolons in JS: Do you recommend using semicolons after every statement in JavaScript?.

Not only is this question inappropriate for SO, it is subjective and it is also a poll. Even worse, there are subjective answers with a high amount of votes and an "accepted" mark. This may (and very well will) lead many visitors, especially new ones, to accept those answers as some sort of truth.

Unfortunately I cannot vote for its closure because it is somehow locked. Can somebody with enough rights please delete it?

Just to sum it up, what new users see when they enter this page: "Do you recommend using semicolons after every statement in JavaScript?" - "74 + checkmark at the top: Yes, you should use semicolons after every statement in JavaScript." Not only is this off-topic, it is FUD and SO makes it look very much like some kind of accepted truth.

share|improve this question

closed as off-topic by random, Martijn Pieters, Lance Roberts, ProgramFOX, animuson Jun 12 at 16:38

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question pertains only to a specific site in the Stack Exchange Network. Questions on Meta Stack Exchange should pertain to our network or software that drives it as a whole, within the guidelines defined in the help center. You should ask this question on the meta site where your concern originated." – random, Martijn Pieters, Lance Roberts, ProgramFOX, animuson
If this question can be reworded to fit the rules in the help center, please edit the question.

6  
Why? The Lock message says it all, doesn't it? That's exactly why it has been locked. Valuable information (possibly), so preserved. But don't ask it again. –  Bart Nov 18 '12 at 16:56
3  
I don't see the problem, but can a moderator please remove the "This answer and its opposite are intended as a poll. Vote for the one you agree with, and then post an answer with your reasons if you like." from the answers here and here. That just looks tacky, especially since you can't vote on them anymore. They could also clean up the link-only answers here and here. –  animuson Nov 18 '12 at 17:14
2  
@animuson I cleaned up the wording in the posts, but I'm keeping the link-only answers. They link to relevant information and, let's face it, given the choice between "Yes, you should"/"No, you shouldn't" answers and the answers with links here, the latter win on quality and usefulness. –  Anna Lear Nov 18 '12 at 17:33
    
Because "it is not considered a good, on-topic question for this site" only talks about question and only touches that it is "not on-topic". It doesn't say anything about it being stupid question, nor does it say anything about answers. And yes, I've seen links to this question and answer in the wild. –  Oleg V. Volkov Nov 18 '12 at 18:16
    
Semicolons, man. Those gosh darned semicolons. The bane of our existence as programmers. –  BoltClock's a Unicorn Nov 18 '12 at 18:18
3  
Just to sum it up, what new users sees when he enters this page: "Do you recommend using semicolons after every statement in JavaScript?" - "74 + checkmark at the top: Yes, you should use semicolons after every statement in JavaScript." Not only this is offtopic, this is FUD. –  Oleg V. Volkov Nov 18 '12 at 18:19
2  
I'm with Oleg, unlock and let the community decide if it's really that valuable. I don't think it is. This same debate will happen again and again all around the world, and there's always going to be a certain percentage of the population that refuses to agree on a coding standard. In short, there's no actual resolution to a problem here except to give people more talking points for the debate. +1 –  jmort253 Nov 18 '12 at 18:21
    
@OlegV.Volkov - Well, I do think it is a good idea to use semicolons. It makes the code more readable, especially considering JavaScript uses a C-style syntax like C, C++, and Java, and these are often the first languages most people are exposed to in university. So why be different and confuse the hell out of people. Not everyone has read the JavaScript spec. Whether or not everyone should read it is a different debate altogether, but people tend to do better when things are similar and what they normally expect to see. –  jmort253 Nov 18 '12 at 18:24
4  
I guess I agree with it's removal, but not because it's wrong... because it's not a constructive question for Stack Overflow. –  jmort253 Nov 18 '12 at 18:26
1  
@jmort253, I'm perfectly fine with you thinking that and actually consider the only rule to for coding style to be: "whatever everyone else is using in your project". I'm not fine with subjective answer promoted as universal truth though. –  Oleg V. Volkov Nov 18 '12 at 18:27
    
When something is a universal truth, when there's a standard, it means any programmer from anywhere in the world can drop in on your project and quickly assimilate into a development role. If everyone just does their own thing because it's cool, then that advantage no longer stands. I don't have data on this, and I'm not going to claim that I know the answer to this, but it would be interesting to see the percentage of JavaScript developers who use semicolons vs those who don't. One thing's for sure, when you see documentation/examples on sites like Google, there are semicolons...... –  jmort253 Nov 18 '12 at 18:30
2  
Alright you guys let's end all our sentences with semicolons; –  BoltClock's a Unicorn Nov 18 '12 at 18:40
3  
I'm not opposed to unlocking or removing the question if there's community support for doing that... but so far the votes on this question suggest otherwise. –  Anna Lear Nov 18 '12 at 18:50
1  
@AnnaLear It's difficult to evaluate community support by the score of the question, because there are downvotes to say “leave it locked” and downvotes to say “unlock it if you like but don't delete it”. Objectively, the accepted answer is worthless and needs deleting, whatever else happens. Stack Exchange is not just a popularity contest, useful content is a goal. –  Gilles Nov 18 '12 at 20:23
2  
@Charles, you've missed that entire question violates current policy, right? Not to mention that answer itself happens to be just another "religious preference". –  Oleg V. Volkov Nov 18 '12 at 23:06

1 Answer 1

Accepted answer:

Yes, you should use semicolons after every statement in JavaScript.

Because… No, the answer doesn't say. Nor do the comments against the answer. This is not an answer, it's a useless bit of screen estate. This answer needs to be deleted.

There are other answers that contribute reasoning and that might salvage the thread. Not all of them, there are several other answers that need deleting, but there's enough worthwhile content that could be edited into shape. For this to happen, the thread needs to be unlocked. As a close contender, delete this question and let it be reasked and answered in a more constructive way.

This is a showcase example of why historical locks are bad.

share|improve this answer
1  
If it was a short hop to making this good content, I'd be more than content to unlock it (because it means that we can make it good for the site, dammit), but this thing is a crap shoot out of the gate, which means I agree with your runner up suggestion, delete it and see if someone can reask it in a way that's suitable for the site now. –  casperOne Nov 18 '12 at 20:05
    
@casperOne, any news on this "impossible to be moderated by community" question? Year passed and it is still there. –  Oleg V. Volkov Mar 21 at 12:49
    
@OlegV.Volkov Well, since you noticed it, deleting it stealthily in the middle of the night isn't going to happen. THANKS FOR RUNING IT! –  casperOne Mar 21 at 14:56
    
@casperOne, well unlocking it and letting it go usual way would be more than enough. –  Oleg V. Volkov Mar 22 at 0:38

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