/
githubmirror
/
adcli
Обзор
Документация
Войти
/
githubmirror
/
adcli
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
0.7.2
HACKING
29 строк
1 KB
Stef Walter
Add a HACKING document explaining a few things
14 май 2012, 07:28
14 май 2012, 07:28
2581fcc
Код
Авторство
О чём код?
HACKING adcli * Website: TODO * Mailing list: TODO * Bugs: TODO PRECONDITIONS and UNEXPECTED SYSTEM ISSUES We don't try to guarantee completely robust and problem free behavior in cases where the caller or process isn't behaving. We consider these to be outside of our control: * Broken input from callers. Although we generally use preconditions to do basic checks on arguments and immediately return. * Out of memory. It is pretty much impossible to handle out of memory errors correctly. Handling them alongside other errors is a broken concept. However we do check the results from all memory allocations. As a nod to the behavior of callers of this library, we don't abort on memory allocation failures. We use preconditions with somewhat sane results. We don't try to guarantee library state (such as locks or memory leaks) when memory allocation fails. Exception: when reading files or allocating potentially unbounded amounts of memory, we should respond robustly to memory allocation failures.