These days functional programming seems to be the trend. And with the help of languages like F# , many programmers seem to embrace the functional paradigm. And these folks are very passionate about this, some of them on the verge to look like zealots which go on great length to convert the “unbelievers”.
Personally, I use very little functional programming (FP), only when it appears as a “natural” solution i.e it makes sense for the problem I’m solving to express its solution as a pipeline of functions. I have a predominant object oriented mindset which fits me very well. This means I do prefer languages like C# and I have no interest in languages like F#.
It seems like FP looks like the new golden hammer for some developers, who now hails it as the best way to do everything. I disagree with this. It certainly fits some use cases, but in my case, it’s just a tool I’m using very sparingly. And to be honest, I don’t like the F# syntax so I won’t be using it any time soon.
But not being a ‘believer’ seems to upset some people. They demand you to explain yourself and you better have a very good reason (read: one that they agree with) to reject the new tool. If you say to them that you’ve evaluated the paradigm/tool and it doesn’t add much value for you, it’s a sign you need more convincing. If you resists, you’re just a close minded old dinosaur who doesn’t want to be enlightened.
As a funny note, I am a big fan of DDD. I consider that it should be used for every project, as a strategic tool, of course. Personally, I’m using it this way even if lately I find myself writing a lot of CRUD stuff. But I’ve used the DDD mindset to reach the conclusion that in the end I’m dealing with many CRUD use cases. Some people said DDD is OOP done right and I agree with them. It fits my mindset naturally. But DDD can be implemented in a functional way too and some devs are using it this way.
In conclusion, I and other developers will continue to use our OOP mindset and languages because it makes the most sens to us. Other devs will use functional programming. I don’t think it should be a ‘war’ about which is better and which is the one true way. I agree with FP fans that FP is not very well known and it will benefit programmers (at least some of them) to be aware of it.
If you have an opinion about why FP is great or why it sucks feel free to send me a PR.