Fork me on GitHub
#component
<
2016-10-05
>
rickmoynihan15:10:02

How do people tend to organise components in a project? Do people put them in a my-app.components.foo-component my-app.components.bar-component namespace or just put them in and amongst other code/namespaces?

donaldball15:10:19

I generally have a foo.system ns which manages constructing the system, and foo.system.bar nses for each component or related group of components.

seancorfield16:10:18

We have a foo.application which is for the overall application system component, and then each "subsystem" has a nominal "lead namespace" that contains the its component and the "constructor" function that that. That way our tests (for a subsystem) can construct that component and test the subsystem independently of the main application.

seancorfield16:10:50

(that said, we’re still in the process of migrating our legacy code to Component so things are still a bit in flux)