cuckoobox/cuckoo — Issue #17: Overall modularity of the system to fine grained
Author: reliable61
Created: 2011-12-16 05:14:31+00:00
State: open

Often I find that the code is too modular as in f.e. the logging module is made up of four files which could be easily put into the __init__.py file and thus be available with a simple "from cuckoo import logging" . Why splitting logic to that extend. It not a bad programming practice to define two/more classes/functions in the same file unless they are huge and/or have a completely different purpose which is not the case in the above example. The reason to put them together is much easier readability of the code for example if it would be only a logging.py file in the cuckoo directory. Besides putting empty directories in the source tree is absolutely unnecessary and confusing to the reader. Those can easily be created during runtime where they belong to anyway.