I walk through two F# 8 changes: omitting fun in member-access lambdas and updating nested records with concise syntax. I pair each feature with an older library approach, including FSharp.Core.Fluent and FSharpPlus lenses.
In this F# Advent post, I use Plotly.NET and FSharp.Data in a Dotnet Interactive notebook to chart Indian COVID cases and weekly vaccinations. I combine the series and read the chart as showing cases falling as vaccination increased.
After a poll, I chose the then-new ML.NET 0.6 for a possible F# machine-learning series. This first post lists questions I still had about its internals, GPU support and comparison with Keras, and mentions my small cleanup pull request to the samples.
I use Paket for these small Azure Website experiments. Add a .deployment file that calls build.cmd, then bootstrap Paket, restore packages, build with MSBuild, and copy the output to the deployment target.
I compare the strategy pattern in C# and F#, using functions as strategies in the F# example. The point is that a function can be passed directly where the C# version uses a class-based strategy.
I show the Singleton idea with C# and F# examples, while admitting I have used it without knowing where it belongs. I question its role in functional code, where data types often do not carry behavior.
I use C# and F# examples to consider how the factory pattern’s object-creation role maps to functional code. I suggest F# option types as one way to represent products and ask readers to review the examples.
After a difficult experience with Android Java, I compare event-handling examples in Java, C#, and F# for Xamarin Android. I argue that language choice affects the coding experience and leave Xamarin.Forms and ReactiveUI out of the comparison.
In this 2014 account, NuGet updates fail on my F# templates, Paket later hits project-file problems, and Azure deployment still needs a workaround. After more than seven hours trying to get Hello World running, I put C# in the front end and F# in a library so I can get back to coding.
I use a relationship metaphor to describe growing attached to F# while continuing to work with and respect C#. My milestones include running F# on Heroku, joining its community, and contributing templates and web examples; F# is my first choice when possible.
I combine ServiceStack and SignalR in an F# project using an OWIN startup class, then describe the Azure deployment problem that led me to remove global.asax.fs. The services run side by side, but the post does not make the web service itself real-time.
I give my first impressions of Xamarin Studio 3: debugging seemed more stable, F# had first-class support, and the designer and Xamarin.Forms caught my attention. I still had an Android/F# error on my machine, so this is an early reaction rather than a report that everything worked.
I trace how Rob Conery’s talk changed how I learned, then thank the open-source projects and F# people who helped me. The names include ServiceStack, NancyFX and several community members; I also credit the software behind this blog.
I combine Nancy, OWIN, SignalR, and F# to make a chat application, then describe the project-file imports needed for Azure deployment. I also point readers to a GitHub repository and a deployed sample.
This is my step-by-step setup for ServiceStack V4 with F# in an empty ASP.NET project: remove the C# files, add an F# AppHost and service, then add Razor views. It reflects the V4-era package and project setup described in the post.
I describe making ServiceStack F# templates, including a two-week ASP.NET hosting bug caused by copying self-host code and the crude copy-paste workaround I used to get a template working. The post later updates readers that V4 and an ASP.NET host were available.
The post introduces the then-new pure F# MVC5 template, replacing the older split C#/F# project layout. I plan to start with C#-to-F# syntax comparisons before making the examples more functional.
I introduce a planned functional web-development series, starting with F# templates for ServiceStack, Nancy, Simple.Web, and MVC/Web API. I also point readers toward Scala and Clojure options and learning resources.
I argue that functional programming deserves a place in web development as projects and user bases grow. I offer immutability as one way to reason about shared state and introduce a planned series focused mainly on F#.
I explain how I got into functional programming and why I chose F#, drawing on my earlier work with data and numbers. The post argues that functional ideas deserve a place in how we teach programming.
As a .NET developer, I argue that Rails is worth learning for its conventions and the starting point it gives MVC newcomers. I credit Rails with helping me organize ASP.NET MVC code, while noting that the Rails approach is not a silver bullet for every service.
I argue that using Entity Framework only to map a database misses features it provides, and that production use needs more thought than copying a demo. I offer a caution about the tool, not a recipe for one “right” way to use it.
I adapt Scott Hanselman and Patrick Cauldwell’s older software principles for the .NET tools I knew at the time. The list covers testing, automation, dependencies, persistence, assemblies, public APIs, authentication and what I considered done; it is explicitly a personal selection.
I look back at a C# project that grew to 14,000 lines when I wrote it as a mass of functions, then fell to 700 after I reorganized and optimized it. That experience was my first practical lesson in OOP; the rest points readers toward design patterns.
I introduce Massive through the question of why to use a Micro ORM, then explain why I often prefer writing SQL when ORM abstractions still leave me debugging generated queries. The post includes a brief Massive example and a personal case for separating database models from view models.
After weighing ORM productivity against performance, I turn to ServiceStack OrmLite and show its POCO mapping, table creation, CRUD operations, and transactions. Dapper and Massive provide context, but most of my walkthrough is about OrmLite.
I use a hypothetical large application to show how one Entity Framework model for over 1,000 tables could become slow and hard to maintain, then suggest splitting it by module. I argue that ORM-generated SQL can cost more time to inspect and tune than it saves in a high-traffic system.
I introduce ORMs through an Entity Framework example: mapping Northwind, scaffolding a repository and MVC controller, and handling CRUD without writing connection and command code. I also mention Orchard, which uses NHibernate, as a favorite for a later article.
I point .NET developers to NuGet as a way to find and install open-source packages. Knockout.js, Ninject, MEF and jqGrid are a few things I discovered there; the post sticks to NuGet rather than linking each project separately.
Before writing tests, I say, decide what behavior you want to check; then I demonstrate Visual Studio's generated unit tests for integer, float, and object-array addition. I also argue that unit tests are the developer's responsibility, unlike clicking through the application.
I describe SOA's appeal as separating interface work from business logic and letting a Java application call a service written in .NET. The post ends by turning to WCF for a later article.