3 ms·
> When I was trying to use modules to organize my code the response I got was that modules are more trouble than they are worth so just don't use them. Really?
by celrod 8y ago
> When I was trying to use modules to organize my code the response I got was that modules are more trouble than they are worth so just don't use them.
Really?
I normally break up my code across modules, but also across libraries.
I'd say a few of my projects are at least medium sized. I discuss an example here, where much of the code is split across many separate modules: https://bayeswatch.org/2019/01/29/optimizing-a-gibbs-sampler/ https://bayeswatch.org/2019/01/29/optimizing-a-gibbs-sampler...
I achieve roughly 1700x better performance in an example than a JAGS model. A C++ version does a bit better at 2000x when compiled with Clang.
Having all these dependencies checked out for development is not best practice, so I wouldn't recommend strictly following my example.