O'Reilly logo

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

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

Book Description


Get Programming with F#: A guide for .NET developers shows you how to upgrade your .NET development skills by adding a touch of functional programming in F#. In just 43 bite-sized chunks, you'll learn how to use F# to tackle the most common .NET programming tasks.

About the Technology

Your .NET applications need to be good for the long haul. F#�s unique blend of functional and imperative programming is perfect for writing code that performs flawlessly now and keeps running as your needs grow and change. It takes a little practice to master F#�s functional-first style, so you may as well get programming!

About the Book

Get Programming with F#: A guide for .NET developers teaches F# through 43 example-based lessons with built-in exercises so you can learn the only way that really works: by practicing. The book upgrades your .NET skills with a touch of functional programming in F#. You�ll pick up core FP principles and learn techniques for iron-clad reliability and crystal clarity. You�ll discover productivity techniques for coding F# in Visual Studio, functional design, and integrating functional and OO code.

What�s inside

  • Learn how to write bug-free programs

  • Turn tedious common tasks into quick and easy ones

  • Use minimal code to work with JSON, CSV, XML, and HTML data

  • Integrate F# with your existing C# and VB.NET applications

  • Create web-enabled applications

  • About the Reader

    Written for intermediate C# and Visual Basic .NET developers. No experience with F# is assumed.

    About the Author

    Isaac Abraham is an experienced .NET developer and trainer. He�s an F# MVP for his contributions to the .NET community.

    Table of Contents

    1. Copyright
    2. Brief Table of Contents
    3. Table of Contents
    4. Foreword
    5. Preface
    6. Acknowledgments
    7. About this book
    8. About the author
    9. Welcome to Get Programming with F#!
    10. Unit 1. F# and Visual Studio
      1. Lesson 1. The Visual Studio experience
      2. Lesson 2. Creating your first F# program
      3. Lesson 3. The REPL—changing how we develop
    11. Unit 2. Hello F#
      1. Lesson 4. Saying a little, doing a lot
      2. Lesson 5. Trusting the compiler
      3. Lesson 6. Working with immutable data
      4. Lesson 7. Expressions and statements
      5. Lesson 8. Capstone 1
    12. Unit 3. Types and functions
      1. Lesson 9. Shaping data with tuples
      2. Lesson 10. Shaping data with records
      3. Lesson 11. Building composable functions
      4. Lesson 12. Organizing code without classes
      5. Lesson 13. Achieving code reuse in F#
      6. Lesson 14. Capstone 2
    13. Unit 4. Collections in F#
      1. Lesson 15. Working with collections in F#
      2. Lesson 16. Useful collection functions
      3. Lesson 17. Maps, dictionaries, and sets
      4. Lesson 18. Folding your way to success
      5. Lesson 19. Capstone 3
    14. Unit 5. The pit of success with the F# type system
      1. Lesson 20. Program flow in F#
      2. Lesson 21. Modeling relationships in F#
      3. Lesson 22. Fixing the billion-dollar mistake
      4. Lesson 23. Business rules as code
      5. Lesson 24. Capstone 4
    15. Unit 6. Living on the .NET platform
      1. Lesson 25. Consuming C# from F#
      2. Lesson 26. Working with NuGet packages
      3. Lesson 27. Exposing F# types and functions to C#
      4. Lesson 28. Architecting hybrid language applications
      5. Lesson 29. Capstone 5
    16. Unit 7. Working with data
      1. Lesson 30. Introducing type providers
      2. Lesson 31. Building schemas from live data
      3. Lesson 32. Working with SQL
      4. Lesson 33. Creating type provider-backed APIs
      5. Lesson 34. Using type providers in the real world
      6. Lesson 35. Capstone 6
    17. Unit 8. Web programming
      1. Lesson 36. Asynchronous workflows
      2. Lesson 37. Exposing data over HTTP
      3. Lesson 38. Consuming HTTP data
      4. Lesson 39. Capstone 7
    18. Unit 9. Unit testing
      1. Lesson 40. Unit testing in F#
      2. Lesson 41. Property-based testing in F#
      3. Lesson 42. Web testing
      4. Lesson 43. Capstone 8
    19. Unit 10. Where next?
      1. Appendix A. The F# community
      2. Appendix B. F# in my organization
      3. Appendix C. Must-visit F# resources
      4. Appendix D. Must-have F# libraries
      5. Appendix E. Other F# language features
    20. Basic F# syntax, types, and functions
    21. Discriminated unions, pattern matching, and lists
    22. Index
    23. List of Figures
    24. List of Tables
    25. List of Listings