Giter VIP home page Giter VIP logo

fsharpddd's Introduction

FSharpDDD

This repo contains the result of some exercises stretching lessons from the excelent book Domain Driven Desing Made Functional from Scott Wlaschin

Scott wrote an excelent book about how f# is an awsome language for modeling typical business dailly job, due to type inference that gives an great balance between flexibility and compile time safety, .net eco-system great maturity, and f#'s great balance between conciseness and redability that levereges it´s functional first aproach.

But the code in the book repo (https://github.com/swlaschin/DomainModelingMadeFunctional) was written in .net framework and also didn´t compile.

So I took the adventure to write it in a outside-in manner writting the public api first with all the related types and then the implementation letting the compiller complain about the COMPUTER EXPRESSION's and (functor/monad)'s lackness.

this gave me a great vision on f#'s function composition and computation expression, in fact f# lacks high kinded types, but in most cases it takes really few strokes to writte something lik 'Asynk.map'.

this repo isn´t exactly a port from the original repo, since a lot has changed in the language and I have my personal biasses as well. Anyway here are some of the conce well streeched here

  • Type-Driven Development
  • Functions and Type composition
  • Property-Based-Testing (Used the test the Computation-Expresssions implmentations)
  • Computations-Expressions (kind of F# way to Monads, altough not as restrictive)
  • Ubiquotous Language
  • Monads and Applicativs (the validations were all applicatives and the rest of the workflow as implemented in Monadic way)
  • Buonded Contexts
  • Partial Application and DI

fsharpddd's People

Contributors

jr-jesse123 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.