# Workflow/file organization recommendations?

**URL:** <https://forum.juce.com/t/workflow-file-organization-recommendations/14062>\
**Category:** General JUCE discussion\
**Created:** [December 18, 2014, 7:09pm UTC](https://forum.juce.com/t/workflow-file-organization-recommendations/14062 "2014-12-18T19:09:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cpr2323](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/cpr2323/32/18682_2.png) [@cpr2323](https://forum.juce.com/u/cpr2323)\
**Post date:** [December 18, 2014, 7:09pm UTC](https://forum.juce.com/t/workflow-file-organization-recommendations/14062/1 "2014-12-18T19:09:57Z")

</div>

I'm at a point in my one of my projects that I need to break out a portion of the code to be shared amongst multiple projects, and I'm looking for the best way to manage this. In good JUCE fashion I&nbsp;use the Introjucer to generate my projects, and I think creating&nbsp;a 'juce module' for this chunk of code is a good approach, but I don't fully understand the module system. So, questions:  
  
1. Is there a way to make my module available by default in the IntroJucer? (my assumption is that I&nbsp;will need put it in the juce/modules folder, which feels slightly messy, as I am polluting my local copy of juce.)

2. Can I have module dependancies on non-juce modules? ie. I am using JuceSerial as a module, and my module depends on this.

3. Any pointers/advice from people doing something similar?

&nbsp;

---

<div class="post-metadata">

**Author:** ![dave96](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/dave96/32/8487_2.png) [@dave96](https://forum.juce.com/u/dave96)\
**Post date:** [December 18, 2014, 8:42pm UTC](https://forum.juce.com/t/workflow-file-organization-recommendations/14062/2 "2014-12-18T20:42:27Z")

</div>

I do a similar thing with a couple of modules and yes, it's definitely the easiest way to do it.

1. I think if you put it in the juce/modules folder it will automatically appear in all your projects. If not, all you have to do is add it as a path. I have a couple of projects which use a module stored along with the rest of the project's&nbsp;source code just because it was the simplest way to separate the Obj-C.

2. Yes, I don't think there is anything special about the JUCE modules, any module will be in the include path so you should be able to reference it in other modules.

3. The only thing I can think of is that sometimes it's easier to just create things in header files. I have many classes in header files that I can just include from anywhere and keep these in a "Common" repository. To ben honest I write a lot of code like this these days and only really split via .h/.cpp if the class is huge or you need to hide native code.

---

<div class="post-metadata">

**Author:** ![cpr2323](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/cpr2323/32/18682_2.png) [@cpr2323](https://forum.juce.com/u/cpr2323)\
**Post date:** [December 18, 2014, 9:30pm UTC](https://forum.juce.com/t/workflow-file-organization-recommendations/14062/3 "2014-12-18T21:30:27Z")

</div>

Thanks Dave.

---

<div class="post-metadata">

**Author:** ![cpr2323](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/cpr2323/32/18682_2.png) [@cpr2323](https://forum.juce.com/u/cpr2323)\
**Post date:** [December 19, 2014, 4:49am UTC](https://forum.juce.com/t/workflow-file-organization-recommendations/14062/4 "2014-12-19T04:49:15Z")

</div>

Hey Dave, I just downloaded dRowAudio from git, and I notice that you have two different juce\_module\_info files, and two dRowAudio.h files. Can you comment on the reasoning for this? Thanks again.
