Hi all, this is my website about software development. I want to start trying to distinguish between trendy fashion and solid project design. Here we go
Let’s start from a general app, a desktop tool. The fact that it is not a web app simply means that it is not hosted in a browser! But we still need to follow a paradigm and we will project a multi-layer app.
async/await : the trendy way
You will find so many complex and difficult definitions, but they don’t get to the real point: if you make it async, it will go parallel; if you await, only that async method will block, contrary to the wait command.
Task Parallel Library
When you encounter a … sponsor of TPL, ask yourself
- what am I really supposed to do?
- is it a cpu-bound or an i/o bound task?
- is a background worker definitely wrong?
Starting from the latter, the answer is no! Especially if over 10 years of experience in the field and you know about the old school of threading.
remember the Turing machine…
Stay tuned, we’ll get in depth soon: find a demo project on GitHub here
Last but not least, I’m considering a soft transition to separation of concerns in the functional style.
You may want to read an old but good approach: a hybrid language between C# and F#
Not sure about what a monad is? 🙂 Read my post about how I’ve implemented the Maybe monad in C# or look at my functional viewmodel in F# or one of my latest articles from the menu, like classical C# versus pure F#.