msteyvers / matjags

MATJAGS, a Matlab interface for JAGS
16 stars 10 forks source link

rearrangement? #13

Open drbenvincent opened 8 years ago

drbenvincent commented 8 years ago

Hi anyone who's interested. I'm thinking of tidying things up in order to make future development a bit easier. While what we have works, and no change is required (apart from potential mistake, #11), it might be good to clean it up a bit so that we've got faith that everything is working properly.

The plan is:

  1. Create a matjags folder to contain matjags.m, but also break out all the functions into separate files (in a private folder). The motivation is to make adding unit tests easier. The only potential (very minor) downside is that people have to add this folder to their path, rather than just make sure the matjags.m file is in their project dir.
  2. Create a separate examples folder. These could form the basis of some integration tests.
  3. Keep the core manner in which matjags.m is called the same as it is. Ie avoid breaking existing code.

Feedback welcome before I just decide to do stuff :) Previous versions of are always available to people of course.

PS It's not like I have tons of spare time on my hands, but I've been learning to improve my coding skills from the baseline of "mediocre self-taught scientist coder".