Lesson 12. Organizing code without classes
So far you’ve learned all about relatively low-level elements of F#: language syntax, tuples, records, and functions, but you haven’t yet seen how to organize larger amounts of code that should logically be grouped together. In this lesson
- You’ll review namespaces in F#.
- You’ll cover F# modules, a way to statically group behaviors in a library.
- You’ll see how to use both namespaces and modules within a standalone application.
Organizing code elements can be tricky in the OO world, not just in terms of namespacing, but in terms of responsibilities. We often spend a lot of time looking at whether classes obey concepts such as single responsibility, or moving methods from one class to another along with ...
Get Get Programming with F# now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.