Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

When I put a hack in place as a workaround for a bug in a dependency, I always link the ticket for the dependency in the PR and the commit comment. If the code looks like someone held a gun to my head or I was on drugs when I wrote it, I'll also put it inline in a comment above the workaround.

Not only to explain why this stupid code is here, but to give the next person permission to delete it if the bug has been fixed upstream and we have pulled the new version down.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: