Developers: Give Each Other a Fighting Chance
blog.interfacevision.com
blog.interfacevision.com
I think it's very important not to berate people for sharing code that isn't up to your personal standards. Write a bug report, fix it yourself, grit your teeth and keep going... But don't publicly shame them or curse their name.
But aside from that, YAGNI.
I don't spend a whole lot of my time worrying about mythical programmers having mythical problems in the future.
If I see a problem ahead of time and can prevent it easily, I'll do so. But I don't go searching for problems.
In the example, I'd like to think I'd have thought of that problem without running into it myself, but I may very well not have. It depends on how robust the API is. If it's a little 1-shot command line thing, the developers probably didn't put much time into it.