All Questions
6 questions
4
votes
2
answers
2k
views
What is control abstraction in the context of functional programming?
I understand concept data abstraction as it is relevant to OO programming. However on contrary it seems Function Programming promotes or makes use of concept control abstraction.
I tried searching ...
9
votes
7
answers
4k
views
what can go wrong in context of functional programming if my object is mutable?
I can see the benefits of mutable vs immutable objects like immutable objects take away lot of hard to troubleshoot issues in multi threaded programming due to shared and writeable state. On the ...
6
votes
3
answers
4k
views
Functional vs object-oriented style in C#
I'm learning functional programming and face the following confusion when applying it to my C# projects:
I begin by writing pure, static functions and use function composition.
After the code reaches ...
0
votes
2
answers
751
views
Is this instance of mixing FP and OOP a good design?
I had a strange-feeling pattern come up in some code I was writing. In a project with user accounts, there was a lot of code that needed to do common things such as creating accounts, deleting them, ...
0
votes
1
answer
385
views
How to make C# methods work like javascript functions? [closed]
I'll keep it simple, I want to make C#'s methods work like javascript's functions. Mainly so I can convert this -
function makeVariable(terp) {
var me = {value: 0};
return function () { terp....
54
votes
3
answers
7k
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
have ...