Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link

Why not add a line stating your intentions? Something like:

I am currently editing in an explanation of the above code.

Then, provided you actually finish the answer, you get to be the fastest gun without adding to the pile of crap answers. That said, a temporary code-only answer can still be problematic.

Depending on the question, posting code-only answers can reinforce the "give me the code" mentality where stackoverflow is used to outsource the mental faculties of the questioner. Adding an explanation (and perhaps slightly generalized code instead of something that they can plug in) helps the questioner appreciate what this site is about.

So try to post some explanation. If it's a couple lines of code, you can probably get away with a sentence that takes 20 seconds to write.

Example:


var foobar = $("foo").bar();
var foo = foobar.foo;
var bar = foobar.bar;

Just use jquery to create a foobar object. The raw foo and bar objects are stored as properties.


1st edit

var foobar = $("foo").bar();
var foo = foobar.foo;
var bar = foobar.bar;

Just use jQuery to create a foobar object. The raw foo and bar objects are stored as properties. You can of course do this without jQuery (shown hereshown here) but it takes a lot more code and jQuery should be used in all web projects anyway. etc.


But, realistically, a few seconds makes a difference when you are playing fastest gun (because questioners often don't know better). And since (in practice) you are rewarded for this behaviour, it's going to keep happening.

So at least commit (publicly) to adding an explanation ASAP. Better than nothing. And make sure your answer isn't just a placeholder while you finish it (this is cheating). It needs to actually be a useful answer when first posted.

It's also possible to have excellent code-only answers (here & here). But they usually take longer to write than a simple explanation.

Why not add a line stating your intentions? Something like:

I am currently editing in an explanation of the above code.

Then, provided you actually finish the answer, you get to be the fastest gun without adding to the pile of crap answers. That said, a temporary code-only answer can still be problematic.

Depending on the question, posting code-only answers can reinforce the "give me the code" mentality where stackoverflow is used to outsource the mental faculties of the questioner. Adding an explanation (and perhaps slightly generalized code instead of something that they can plug in) helps the questioner appreciate what this site is about.

So try to post some explanation. If it's a couple lines of code, you can probably get away with a sentence that takes 20 seconds to write.

Example:


var foobar = $("foo").bar();
var foo = foobar.foo;
var bar = foobar.bar;

Just use jquery to create a foobar object. The raw foo and bar objects are stored as properties.


1st edit

var foobar = $("foo").bar();
var foo = foobar.foo;
var bar = foobar.bar;

Just use jQuery to create a foobar object. The raw foo and bar objects are stored as properties. You can of course do this without jQuery (shown here) but it takes a lot more code and jQuery should be used in all web projects anyway. etc.


But, realistically, a few seconds makes a difference when you are playing fastest gun (because questioners often don't know better). And since (in practice) you are rewarded for this behaviour, it's going to keep happening.

So at least commit (publicly) to adding an explanation ASAP. Better than nothing. And make sure your answer isn't just a placeholder while you finish it (this is cheating). It needs to actually be a useful answer when first posted.

It's also possible to have excellent code-only answers (here & here). But they usually take longer to write than a simple explanation.

Why not add a line stating your intentions? Something like:

I am currently editing in an explanation of the above code.

Then, provided you actually finish the answer, you get to be the fastest gun without adding to the pile of crap answers. That said, a temporary code-only answer can still be problematic.

Depending on the question, posting code-only answers can reinforce the "give me the code" mentality where stackoverflow is used to outsource the mental faculties of the questioner. Adding an explanation (and perhaps slightly generalized code instead of something that they can plug in) helps the questioner appreciate what this site is about.

So try to post some explanation. If it's a couple lines of code, you can probably get away with a sentence that takes 20 seconds to write.

Example:


var foobar = $("foo").bar();
var foo = foobar.foo;
var bar = foobar.bar;

Just use jquery to create a foobar object. The raw foo and bar objects are stored as properties.


1st edit

var foobar = $("foo").bar();
var foo = foobar.foo;
var bar = foobar.bar;

Just use jQuery to create a foobar object. The raw foo and bar objects are stored as properties. You can of course do this without jQuery (shown here) but it takes a lot more code and jQuery should be used in all web projects anyway. etc.


But, realistically, a few seconds makes a difference when you are playing fastest gun (because questioners often don't know better). And since (in practice) you are rewarded for this behaviour, it's going to keep happening.

So at least commit (publicly) to adding an explanation ASAP. Better than nothing. And make sure your answer isn't just a placeholder while you finish it (this is cheating). It needs to actually be a useful answer when first posted.

It's also possible to have excellent code-only answers (here & here). But they usually take longer to write than a simple explanation.

replaced http://meta.stackoverflow.com/ with https://meta.stackoverflow.com/
Source Link

Why not add a line stating your intentions? Something like:

I am currently editing in an explanation of the above code.

Then, provided you actually finish the answer, you get to be the fastest gun without adding to the pile of crap answers. That said, a temporary code-only answer can still be problematic.

Depending on the question, posting code-only answers can reinforce the "give me the code" mentality where stackoverflow is used to outsource the mental faculties of the questioner. Adding an explanation (and perhaps slightly generalized code instead of something that they can plug in) helps the questioner appreciate what this site is about.

So try to post some explanation. If it's a couple lines of code, you can probably get away with a sentence that takes 20 seconds to write.

Example:


  
var foobar = $("foo").bar();
var foo = foobar.foo;
var bar = foobar.bar;

Just use jquery to create a foobar object. The raw foo and bar objects are stored as properties.


  

1st edit

var foobar = $("foo").bar();
var foo = foobar.foo;
var bar = foobar.bar;

Just use jQuery to create a foobar object. The raw foo and bar objects are stored as properties. You can of course do this without jQuery (shown here) but it takes a lot more code and jQuery should be used in all web projects anyway. etc.


  

But, realistically, a few seconds makes a difference when you are playing fastest gun (because questioners often don't know better). And since (in practice) you are rewarded for this behaviour, it's going to keep happening.

So at least commit (publicly) to adding an explanation ASAP. Better than nothing. And make sure your answer isn't just a placeholder while you finish it (this is cheating). It needs to actually be a useful answer when first posted.

It's also possible to have excellent code-only answers (herehere & herehere). But they usually take longer to write than a simple explanation.

Why not add a line stating your intentions? Something like:

I am currently editing in an explanation of the above code.

Then, provided you actually finish the answer, you get to be the fastest gun without adding to the pile of crap answers. That said, a temporary code-only answer can still be problematic.

Depending on the question, posting code-only answers can reinforce the "give me the code" mentality where stackoverflow is used to outsource the mental faculties of the questioner. Adding an explanation (and perhaps slightly generalized code instead of something that they can plug in) helps the questioner appreciate what this site is about.

So try to post some explanation. If it's a couple lines of code, you can probably get away with a sentence that takes 20 seconds to write.

Example:


 
var foobar = $("foo").bar();
var foo = foobar.foo;
var bar = foobar.bar;

Just use jquery to create a foobar object. The raw foo and bar objects are stored as properties.


 

1st edit

var foobar = $("foo").bar();
var foo = foobar.foo;
var bar = foobar.bar;

Just use jQuery to create a foobar object. The raw foo and bar objects are stored as properties. You can of course do this without jQuery (shown here) but it takes a lot more code and jQuery should be used in all web projects anyway. etc.


 

But, realistically, a few seconds makes a difference when you are playing fastest gun (because questioners often don't know better). And since (in practice) you are rewarded for this behaviour, it's going to keep happening.

So at least commit (publicly) to adding an explanation ASAP. Better than nothing. And make sure your answer isn't just a placeholder while you finish it (this is cheating). It needs to actually be a useful answer when first posted.

It's also possible to have excellent code-only answers (here & here). But they usually take longer to write than a simple explanation.

Why not add a line stating your intentions? Something like:

I am currently editing in an explanation of the above code.

Then, provided you actually finish the answer, you get to be the fastest gun without adding to the pile of crap answers. That said, a temporary code-only answer can still be problematic.

Depending on the question, posting code-only answers can reinforce the "give me the code" mentality where stackoverflow is used to outsource the mental faculties of the questioner. Adding an explanation (and perhaps slightly generalized code instead of something that they can plug in) helps the questioner appreciate what this site is about.

So try to post some explanation. If it's a couple lines of code, you can probably get away with a sentence that takes 20 seconds to write.

Example:

 
var foobar = $("foo").bar();
var foo = foobar.foo;
var bar = foobar.bar;

Just use jquery to create a foobar object. The raw foo and bar objects are stored as properties.

 

1st edit

var foobar = $("foo").bar();
var foo = foobar.foo;
var bar = foobar.bar;

Just use jQuery to create a foobar object. The raw foo and bar objects are stored as properties. You can of course do this without jQuery (shown here) but it takes a lot more code and jQuery should be used in all web projects anyway. etc.

 

But, realistically, a few seconds makes a difference when you are playing fastest gun (because questioners often don't know better). And since (in practice) you are rewarded for this behaviour, it's going to keep happening.

So at least commit (publicly) to adding an explanation ASAP. Better than nothing. And make sure your answer isn't just a placeholder while you finish it (this is cheating). It needs to actually be a useful answer when first posted.

It's also possible to have excellent code-only answers (here & here). But they usually take longer to write than a simple explanation.

Source Link
DanielST
  • 14.1k
  • 17
  • 11

Why not add a line stating your intentions? Something like:

I am currently editing in an explanation of the above code.

Then, provided you actually finish the answer, you get to be the fastest gun without adding to the pile of crap answers. That said, a temporary code-only answer can still be problematic.

Depending on the question, posting code-only answers can reinforce the "give me the code" mentality where stackoverflow is used to outsource the mental faculties of the questioner. Adding an explanation (and perhaps slightly generalized code instead of something that they can plug in) helps the questioner appreciate what this site is about.

So try to post some explanation. If it's a couple lines of code, you can probably get away with a sentence that takes 20 seconds to write.

Example:


var foobar = $("foo").bar();
var foo = foobar.foo;
var bar = foobar.bar;

Just use jquery to create a foobar object. The raw foo and bar objects are stored as properties.


1st edit

var foobar = $("foo").bar();
var foo = foobar.foo;
var bar = foobar.bar;

Just use jQuery to create a foobar object. The raw foo and bar objects are stored as properties. You can of course do this without jQuery (shown here) but it takes a lot more code and jQuery should be used in all web projects anyway. etc.


But, realistically, a few seconds makes a difference when you are playing fastest gun (because questioners often don't know better). And since (in practice) you are rewarded for this behaviour, it's going to keep happening.

So at least commit (publicly) to adding an explanation ASAP. Better than nothing. And make sure your answer isn't just a placeholder while you finish it (this is cheating). It needs to actually be a useful answer when first posted.

It's also possible to have excellent code-only answers (here & here). But they usually take longer to write than a simple explanation.