26
votes
1answer
2k views

Why is an anemic domain model considered bad in C#/OOP, but very important in F#/FP?

In a blog post on F# for fun and profit, it says: In a functional design, it is very important to separate behavior from data. The data types are simple and "dumb". And then separately, you ...
12
votes
5answers
1k views

What is the functional-programming alternative to an interface?

If I want to program in a "functional" style, with what would I replace an interface? interface IFace { string Name { get; set; } int Id { get; } } class Foo : IFace { ... } Maybe a ...
8
votes
5answers
835 views

Any alternative main stream programming methodologies to OOP using C#?

As far as programming languages go, I love C#, and for that matter all the good that comes from the .net framework (LINQ, etc). My main concern is I seem to be churning out too much code, and using ...
2
votes
1answer
1k views

Which are C# 4.0 programming paradigms?

Which are C# 4.0 programming paradigms? In what category does extension methods fall into? A programming language can support multiple paradigms. For example, programs written in C++ or ...