-
Click to expand
-
Rule 14: Do not hard code (Avoid Magic Number-> use Constants and Enum) https://stackoverflow.com/questions/47882/what-is-a-magic-number-and-why-is-it-bad)
- References:
-
Architecture and Design Pattern: https://github.com/Trung1234/Csharp4/tree/main/ArchitecturePractice
-
MVC Best Practice: https://github.com/Trung1234/Csharp4/tree/main/MVCBestPractice
-
SQL Best Practice: https://github.com/Trung1234/Csharp4/tree/main/SQlPractice
-
https://haodev.wordpress.com/2021/03/25/devup-chicken-soup-for-developers/
-
Bscrypt: https://jasonwatmore.com/post/2020/07/16/aspnet-core-3-hash-and-verify-passwords-with-bcrypt
-
Pass a number of arguments : https://www.c-sharpcorner.com/UploadFile/manas1/params-in-C-Sharp-pass-variable-number-of-parameters-to-method/
-
String and StringBuilder: https://www.c-sharpcorner.com/UploadFile/19b1bd/comparison-of-string-and-stringbuilder-in-C-Sharp/
-
Click to expand
-
https://docs.microsoft.com/en-us/visualstudio/test/run-unit-tests-with-test-explorer?view=vs-2022
-
Use AxoCover to display sequence and branch coverage in the code editor: https://marketplace.visualstudio.com/items?itemName=axodox1.AxoCover
-
Xunit https://www.c-sharpcorner.com/article/implementing-unit-and-integration-tests-on-net-with-xunit/
+ Moq Mocking Framework: https://www.c-sharpcorner.com/article/moq-mocking-framework-with-xunit-net-testing-fr/ + To generate coverage report : Tools -> NuGet Package Manager -> Package Manager Console + dotnet test --collect:"XPlat Code Coverage" + reportgenerator -reports:"YourGeneratedXML" -targetdir:"coveragereport" -reporttypes:Html
-
-
Click to expand
-
Custom Authentication In ASP.NET Core 3.1 : https://www.c-sharpcorner.com/article/login-and-role-based-custom-authentication-in-asp-net-core-3-1/
-
-
-
Cascade Delete: https://docs.microsoft.com/en-us/ef/core/saving/cascade-delete
-
-
Global Error handling: https://code-maze.com/global-error-handling-aspnetcore/
-
- https://www.c-sharpcorner.com/UploadFile/puranindia/ASP-NET-MVC-Interview-Questions/
- https://www.c-sharpcorner.com/UploadFile/puranindia/C-Sharp-interview-questions/
- https://www.c-sharpcorner.com/UploadFile/65794e/sql-interview-questions/
- https://ankitsharmablogs.com/csharp-coding-questions-for-technical-interviews/
The Importance of Knowing Patterns This post is more dedicated to beginners who do not yet understand what is the point of learning and using patterns.
Initially, I also didn’t understand what was the point of using some kind of design pattern in the code - after all, you can just write everything as you want 🤪
And then it turned out that there was a lot of repeating code, just an unrealistically large number of dependencies - and the whole trash was that when changes were made, something else broke 😵
But to solve this whole problem, to distribute the code into classes, interfaces and make normal inheritance - that's exactly what design patterns exist for.
Patterns are already ready-made solutions to the problem and depend on what kind of task we are facing.
So if you are a beginner - and you want to make your code clean, understandable, structured - I recommend that you study design patterns 🤘