Alex Rivera | Logout

Recommended ways to split some functionality into functions, modules and packages?

Asked 2009-07-22T22:05:47.193
9

There comes a point where, in a relatively large sized project, one need to think about splitting the functionality into various functions, and then various modules, and then various packages. Sometimes across different source distributions (eg: extracting a common utility, such as optparser, into a separate project).

The question - how does one decide the parts to put in the same module, and the parts to put in a separate module? Same question for packages.

Edit
Report

1 Answer

0

Actually it varies for each project you create but here is an example:

  1. core package contains modules that are your project cant live without. this may contain the main functionality of your application.
  2. ui package contains modules that deals with the user interface. that is if you split the UI from your console.

This is just an example. and it would really you that would be deciding which and what to go where.

answered 2009-07-22T22:16:23.927

Your Answer