8467 shaares
203 private links
203 private links
Key Takeaways
- Stack Overflow snippets can be buggy, even if they have thousands of upvotes.
- Test all edge cases, especially for code copied from Stack Overflow.
- Floating-point arithmetic is hard.
- Do include proper attribution when copying code. Someone might just call you out on it.
Here is why in this example