O'Reilly logo

Get Programming with F#: A guide for .NET developers by Isaac Abraham

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required