<p>Yes, the code should definitely not be all in one file.</p>

<p>Any functionality that you implement that could be used by other parts of mlpack should be implemented as standalone utility functions.  Then the command-line program you write will simply process user input and use those standalone functions.  Take a look in <code>src/mlpack/core/</code> to see what I mean.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly or <a href="https://github.com/mlpack/mlpack/issues/582#issuecomment-200004317">view it on GitHub</a><img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFH8iRBMJS4aA607wr5zgQJmTDxFhks5pwE9UgaJpZM4H0q5B.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/mlpack/mlpack/issues/582#issuecomment-200004317"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>