Bulky icon indicating copy to clipboard operation
Bulky copied to clipboard

May I know the reason of not using async code?

Open dittoda opened this issue 2 years ago • 4 comments

In all controller, you didn't use async code. May I know why? I have heard async would be better thing than sync. I want to know why.

dittoda avatar Apr 11 '22 05:04 dittoda

I thing async programming it is harder to understand for newbies. You can make your code async once you figured it out.

hitagiNcode avatar May 19 '22 18:05 hitagiNcode

Repository and UnitOfWork are out of scope for beginners as well, async is essential compared to design patterns.

HSouhaib avatar Aug 11 '22 20:08 HSouhaib

I am thinking it makes no reason to worry about that now. You don't have to use async so he did not. I would liked to have seen it too but for a beginner course this covers so much

althepal78 avatar Sep 04 '22 23:09 althepal78

The main reason he did not use async is that he was using repository patterns, which made the need for it useless. You mad about this when you can actually just make it an async method yourself by adding async to the post actions and then adding await when getting stuff back

althepal78 avatar Sep 08 '22 22:09 althepal78