Replies: 2 comments 6 replies
-
We structure our (functional) code by feature. Our system consists of several sub-systems. Every sub-system is responsible for a dedicated sub-domain. Every sub-system has its own assembly (.NET). Every sub-system contains folders for the different features it provides. Each of these folders contains multiple files. A file typically contains the types that model the domain of the functionality this file provides, along with modules that contain functions to operate on the types. That's how we structure our code, there are probably other ways as well. |
Beta Was this translation helpful? Give feedback.
-
I've been thinking about how Object-Oriented Programming has organization as a given.
We think about objects and their componentes and can make folders according to a simple object hierarchy. Like how a
car
hasdoor
s, andengine
and so on. This makes not only the programming structure clear, but also the source code folders the code where the code will reside.How can we think about organizing Functional code? Grouping source code folders by an abstract task type and then going down into the hierarchy of functions? Like how
create_edge_image
can be composed ofapply_edge_filter
andnormalize
?Please feel free to correct me if I'm mistaken about assumptions done here, thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions