Casper Weiss BangforCasper Weiss Bang's blogcwb.hashnode.net·Oct 27, 2022FeaturedSearching for third-party details in a microservice architectureMotivation When you are developing a domain model, you want it to be as concise as possible - only containing abstractions related to the problem you are trying to model. This, however, can become an impediment if you want to expose a search engine w...Discuss·19 likes·204 readsModelling a Kanban board in F#F#
Ankur KashyapforF# - Think Functionallythinkfunctionally.hashnode.net·Mar 8, 2023Basics 18 - Result Pipeline with Map and Bindhttps://youtu.be/idlWuiWPwRo Learning-FSharp/Ch18-ResultPipeline/Program.fs Learning-FSharp/Ch18-ResultPipeline/Comprehensive.fs Check out all the comments that are placed in the source file. Limitation of Option Container In the last article, we d...Discuss·5 likes·34 readsF#
Casper Weiss BangforCasper Weiss Bang's blogcwb.hashnode.net·Sep 13, 2022Strongly typed Id in f#Motivation Way too often I see code where someone defines an id as a simple int or Guid or something along those lines. This is a classic case of the Primitive Obsession smell and has a variety of potential problems, as well as may pollute your code ...Discuss·2 likes·77 readsModelling a Kanban board in F#F#
Charles FarrisforSleeping Bear Systemscharlesfarris71.hashnode.net·Apr 14, 2023ArtShowTools: Part 3In the previous post, I used event sourcing to handle commands and recreate the current state of the Artwork entity. In this post, I'll be adding validation to the value objects used to implement the command and event objects. The ArtworkId Value Obj...Discuss·1 likeArtShowToolsF#
Charles FarrisforSleeping Bear Systemscharlesfarris71.hashnode.net·Apr 3, 2023ArtShowTools: Part 2In my previous post (ArtShowTools: Part 1), I created the first draft of the domain model. In this post, I'll describe some of the prototyping I've been doing in F#. While I've worked with C# for nearly 20 years, I've only been working with F# for ab...DiscussArtShowToolsF#
Ankur KashyapforF# - Think Functionallythinkfunctionally.hashnode.net·Mar 25, 2023Basics 26 - Computation ExpressionsWhat are Computation Expressions? Computation Expressions (CE's) in F# are all about syntactic convenience. There are two different aspects: Using existing CEs: seq, query, async, task and lazy Building new/custom CEs, aka building CE builder types...DiscussF#
Ankur KashyapforF# - Think Functionallythinkfunctionally.hashnode.net·Mar 24, 2023Basics 25 - Classes and InterfacesLearning-FSharp/Ch25-OOP-Classes/Program.fs Check out all the comments that are placed in the source file. The objective of this article is to give you an overview of classes and interfaces in F# through various examples. Before We Begin Throughout t...Discuss·26 readsF#
Ankur KashyapforF# - Think Functionallythinkfunctionally.hashnode.net·Mar 17, 2023Basics 24 - Active Patternshttps://youtu.be/GPCOoB778DM This article is a continuation of Basics 09 - Pattern Matching (Basics). Learning-FSharp/Ch24-ActivePatterns/Program.fs Check out all the comments that are placed in the source file. Before We Begin Let's take a simple ...Discuss·32 readsF#
Ankur KashyapforF# - Think Functionallythinkfunctionally.hashnode.net·Mar 11, 2023Basics 23 - Types (Part 2) - Extending Typeshttps://youtu.be/7sNpvt8MUqg Learning-FSharp/Ch23-ExtendingTypes/Program.fs Check out all the comments that are placed in the source file. Extending Your Types Here's an example of a discriminated union with static and instance members: // Discrimi...Discuss·29 readsF#
Ankur KashyapforF# - Think Functionallythinkfunctionally.hashnode.net·Mar 11, 2023Basics 22 - Inline Functionshttps://youtu.be/pHXPFHSFI00 A Simple Case... Not Really Let's take a simple example: let add x y = x + y let result = add 1 2 So far so good. We created a function named add. Since no type declarations are used, we assume that x, y and return va...Discuss·48 readsF#
Ankur KashyapforF# - Think Functionallythinkfunctionally.hashnode.net·Mar 10, 2023Basics 21 - Recursive Functionshttps://youtu.be/4Dbr0CSi9I4 What are Recursive Functions Recursive functions are the ones that call themselves. Recursive functions are commonly used in F#. The keyword rec is used for creating recursive functions: let funcName = .... let rec func...Discuss·27 readsF#
Ankur KashyapforF# - Think Functionallythinkfunctionally.hashnode.net·Mar 10, 2023Basics 20 - Namespaces and Moduleshttps://youtu.be/SnbrJJs1lNo Both namespaces and modules are used for organizing the code in a hierarchical, logical way. Namespaces Namespaces can contain: Nested namespaces Modules Types Modules Modules are compiled to static classes in .NET...DiscussF#
Ankur KashyapforF# - Think Functionallythinkfunctionally.hashnode.net·Mar 8, 2023Basics 18 - Result Pipeline with Map and Bindhttps://youtu.be/idlWuiWPwRo Learning-FSharp/Ch18-ResultPipeline/Program.fs Learning-FSharp/Ch18-ResultPipeline/Comprehensive.fs Check out all the comments that are placed in the source file. Limitation of Option Container In the last article, we d...Discuss·5 likes·34 readsF#