27 ms·
> Who here hasn't copied some code off stack overflow? How do you know it’s correct for your need without actually reading and internalizing it? It might even
by gumby 3y ago
> Who here hasn't copied some code off stack overflow?
How do you know it’s correct for your need without actually reading and internalizing it? It might even be correct…but not compute what you thought it does.
Plugging code from SO into your program is like assuming that if your program compiles it must be correct.
- drited 3y agoWhy do you jump to the conclusion that they didn't read and internalise it after they copied it? That would be stupid and most on here are not stupid.
- gumby 3y agoThen it’s not copying, is it? It’s using SO as a reference site, like any other reference, which is a perfectly sensible thing to do.
- drited 3y agoCtrl C plus ctrl V is copying. Why assume that no verification, testing or checking came after that though?
- gumby 3y agoUnfortunately I formed this opinion by reading other people’s code. I wish I could add a sarcasm marker but I see chunks of dumb code inserted in public repos, NPM, etc all the time. I can only hope that my bank’s phone app has been subject to reasonable code review.