|
|
|
|
|
by brokentone
2448 days ago
|
|
This concept of reviewing every line of OSS and copy / pasting the ones you agree with is really holding PHP dev back. Embracing dependency management is an important way to focus your codebase on your application code and is just a modern practice in all languages (https://12factor.net/dependencies). This is part of why JS (particularly node / isomorphic) is continuing to take over previously PHP marketshare. The actual (vs handwavey) security risks are low especially for popular projects. In this case, if the datastructure or algorithm were useful to your project, you could:
1. Not use the algorithm / data structure at all, resulting in worse performance.
2. Hand roll your own version which is more likely to have improper implementation issues than an OSS version, likely resulting in performance or security issues and wasting your time.
3. Use the OSS version which is likely to have bugs / errors / security issues already solved. |
|
Embracing reliable development and deployment practices would prevent you from being the butt of the joke next time someone pulls a leftpad, or what have you.