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

I am usually in favor of imports over writing my own code, but the honest answer depends on a number of other factors. I don't think there is a "best practice" in this area.

Does the imported function do exactly what you need? No not quite - maybe write your own. Is it a complex function that will require a lot of testing? yes - an import is probably best. Are you likely to use other parts of the imported library in the future? Yes, then import may be a better choice. Will it look good on your CV? Lets face it everyone does it.



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

Search: