3 ms·
* I look at the code and determine, subjectively, whether this was written by first-rate developers or monkeys. I will consider this from various angles ranging
by kazinator 11y ago
* I look at the code and determine, subjectively, whether this was written by first-rate developers or monkeys. I will consider this from various angles ranging from the overall program organization, to the details of how the programming language is used. If I spot bugs in this inspection, I will skip the project and look for something else. In particular anything that is a security flaw or could cause a crash is an instant deal-breaker. Not because everyone should be perfect and write error-free code the firs time, but because I was able to find it just by casually looking, whereas the maintainers have been working with that code for months and are blind to it---that erodes my confidence in the developers.
* I will look for a regression test suite: how extensive is it? If you don't see any tests, that's a big warning sign.
* If you don't see any documentation, another warning sign: the behavior is not specified and could change.
* Who uses it? If the code is reasonably widely used, that de-risks it for you quite a bit, particularly if the existing uses resemble your intended use. They trod through the code paths before you and uncovered the bugs.
* Lastly: if need be, can I just maintain this myself? How easily forkable is the thing? This point can overcome some other issues. If some code is 95% of the way there, and is organized in a good way that I can take it the last 5%, I might just do it.
- bazMVP 11y agoThank you for the insight, the last point (self maintenance) is something I've thought about too. I think the risk is lower if the project would not longer be supported and the skill to continue it could be hired or learned quickly. Great point on regression tests and associated coverage.
- partisan 11y agoKeep in mind that the last 5% might mean a heck of a lot of time. There is usually a reason why some things go unimplemented in open source projects and the complexity and time required are usually high on the list.
- kazinator 11y agoThe last 5% is my last 5%, not (necessarily) the project's 5%. I.e. the difference between what is there and what I require, not between what is there, and the project's goals.