Timeline for Should I demonstrate best practices in example code or be concise?
Current License: CC BY-SA 3.0
14 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 23, 2017 at 12:38 | history | edited | CommunityBot |
replaced http://stackoverflow.com/ with https://stackoverflow.com/
|
|
Apr 14, 2015 at 19:47 | comment | added | Jongware | Fresh from the battle field, an Example of the Day. The OP copied his code from a tutorial and did not add error checking. Maybe it wasn't mentioned, I'm too lazy foo to find out -- but hey! guess what! OP is mystified as to why his code is Not Working! | |
Apr 14, 2015 at 19:13 | comment | added | Bardicer | I personally believe that if questions need 'relevant code samples', then the same should hold for answers. Unless the question specifically asks about error handling, then it's superfluous to add that in. With that said, someone who goes that extra mile would be more likely to get an upvote from me. | |
Apr 14, 2015 at 19:01 | answer | added | maerics | timeline score: 2 | |
Apr 14, 2015 at 18:36 | answer | added | George StockerMod | timeline score: 2 | |
Apr 14, 2015 at 18:35 | answer | added | Servy | timeline score: 8 | |
Apr 14, 2015 at 18:35 | comment | added | Kevin B | I try to always submit working code. If the code in the question is broken and the broken part has nothing to do with the question, I often downvote and request clarification. If it's working code and just not all that great, i generally leave it alone unless i'm feeling overly helpful that day. | |
Apr 14, 2015 at 18:34 | answer | added | user229044Mod | timeline score: 2 | |
Apr 14, 2015 at 18:34 | answer | added | Dave C | timeline score: 1 | |
Apr 14, 2015 at 18:34 | comment | added | codeMagic | I leave out a lot error checking such as checking if a number field contains a valid number but will often add in the answer that it should be done if it's obvious by the OP's code that they aren't doing this. | |
Apr 14, 2015 at 18:33 | comment | added | maerics |
@Will: ya, I also usually include comments like /* TODO: handle err */ .
|
|
Apr 14, 2015 at 18:31 | comment | added | user1228 |
Idiots gonna idiot--you can't change that. Tho, I usually mark places where I've removed stuff I normally would have with a //snip or a <!-- yadda yadda --> just to indicate I'm highlighting certain parts of what would be a complete example.
|
|
Apr 14, 2015 at 18:31 | history | edited | maerics | CC BY-SA 3.0 |
edited title
|
Apr 14, 2015 at 18:26 | history | asked | maerics | CC BY-SA 3.0 |