php - How do I separate my executable files from my library files? -
i still haven't gotten answer i'm happy with. please submit answers if have nice system python or php projects.
i'm having management issue php , python projects. both have 2 kinds of code files: files should run in console or web browser, , files should included other files extend functionality. after projects grow large namespace or module trees, starts getting disorienting "executable" files , library files lay side side same file extensions in folders. if php , python pre-compile languages, files main
function.
for example, picture have namespace com.mycompany.map.address
contained multiple .py or .php files depending on project. contain models different kinds of addresses , tons of functions working addresses. in addition, contain executable files runs terminal, providing user tools searching addresses, , perhaps adding , removing addresses database or such.
i want way of distinguish such executable files tons , tons of code files in namespace trees
if files had separate file extensions wouldn't problem. since don't, i'm thinking should separate folders or something, don't know name them. in php perform hack solution of configuring php parse different file extensions, project contain phps
or phpx
files, instance.
if has language-independent advice on how handle issue, i'd appreciate it. apply languages such c, 1 project might compile many executable files. how should 1 separate source files containing main
functions rest of them?
separate them somehow (by name, extension, location).
example:
here's layout of our test automation system (output manually sorted clarity):
$ ls -1 automation atf \ 2 major homebrew libraries, many submodules atflib / atfconfig configuration files in .py form configuration \ configuration files in .ini form res_manager / test_scripts - scripts invoked directly
then place automation
folder pythonpath
, can import atf.<smth>
anywhere. run tests, change test_scripts
.
Comments
Post a Comment