Right now they're still in the main noflo package, but I guess
something like noflo-core / noflo-base would make sense in the long
run.
I'd even go a bit further and move the file system handling components
to their own noflo-fs. Easier to keep track of :-)
* Core components shouldn't have dependencies outside of NoFlo and
Node.js itself
* Core components should be things you could see yourself using in
70-80% of NoFlo projects
Yep, that is definitely one benefit. We should figure out a nice
mechanism for "subclassing" components as well.
Do you have examples in mind of "subclassing"?
Regards,
Paul
Yep, that is definitely one benefit. We should figure out a nice
mechanism for "subclassing" components as well.
Hmmm... Is subclassing a good thing in FBP? I thought that we extend functionality of a "program" by means of adding different types (or more of the same) of components. If a component lacks a functionality that cannot or should not be made into its own component, should we improve on that component instead? Coming from OO I can see the value of subclassing but I don't see how it fits in FBP.
> When we say "composition" we [...] refer to [...] the fact of possessing something.
That's a very different use of "composition" than was meant by its use for FBP or when people assert composition is desirable.
Are you sure you wish to engage in such equivocation? It only costs you your credibility.
Both aggregation and composition are aspects of the same thing i.e. component (functional or not).
dmbarbour: "Are you sure you wish to engage in such equivocation? It only costs you your credibility."
Can you explain?
effect of writing some code once and then referring to that code in several other places
This approach naturally coordinated the hierarchy of processes with the stream hierarchy. In addition, since the monitoring process's other job is to stitch the composite into the main network, we could now have "black box" composite components. This facility would allow subnets to be packaged as separate load modules for distribution, which could later be linked with other components by a developer to form the full application network. This seems very attractive, as a software manufacturer will be able to sell a composite component without having to reveal its internals (as would be required by DFDM)!
Generally, as you move down the class hierarchy, you add more attributes - so start off with the set of attributes common to all vehicles. When you discover that a file record represents a Pontiac, you now know how to read the remaining attributes. This concept could in fact be added quite naturally to the descriptor mechanism of FBP.