Was trying to show one of my students some code on Stack Overflow a little while back to help them figure something out, and they caught hung up looking over the code in the question, and I was like "No, don't look at the code from the question! It's wrong, that's why they're asking about it! Just look at the top answer!"
13 Comments
CheshireSnake@iusearchlinux.fyi · 6 pts · 3y
Ngl this made me laugh. Thanks for this.
dmegatool@lemmy.ca · 1 pts · 3y
Yeah me too. GG WP OP.
sznio@lemmy.world · 6 pts · 3y
Always skip the accepted answer and use the second or third one.
DrownedAxolotl@lemmy.ml · 2 pts · 3y
Yeah, weirdly this is always what works for me.
nepatriots32@lemmy.world · 4 pts · 3y
Was trying to show one of my students some code on Stack Overflow a little while back to help them figure something out, and they caught hung up looking over the code in the question, and I was like "No, don't look at the code from the question! It's wrong, that's why they're asking about it! Just look at the top answer!"
Denaton@programming.dev · 3 pts · 3y
I have actually done this and it worked, i didn't have the same problem as the question but the question had the solution i seeked.
PottedPlant@lemmy.world · 3 pts · 3y
On the plus side there was a SO post with an answer out there for you.
LukeChriswalker@feddit.de · 2 pts · 3y
I did that yesterday, the code seemed reasonable... Do you think I'm a programmer that could read, analyse and critically think about code?!?
Xanvial@lemmy.world · 2 pts · 3y
Their fault of showing answer with partial codes
EijiT@lemmy.fmhy.ml · 1 pts · 3y
Sometimes the solution to your problem is in the question. It is not unreasonable
MeowKittyWow@kbin.social · 1 pts · 3y
Okay but sometimes it's a really good question so surely they have good code too
0xtero@kbin.social · 0 pts · 3y
No worries! You can always ask chatGPT to fix it afterwards!
Nugget_in_biscuit@lemmy.ml · 7 pts · 3y
Yeah but chatgpt was partially trained on the broken code