clean-code-dotnet | : bathtub : Clean Code concepts and tools adapted for .NET | Architecture library
kandi X-RAY | clean-code-dotnet Summary
kandi X-RAY | clean-code-dotnet Summary
Software engineering principles, from Robert C. Martin's book Clean Code, adapted for .NET/.NET Core. This is not a style guide. It's a guide to producing readable, reusable, and refactorable software in .NET/.NET Core. Not every principle herein has to be strictly followed, and even fewer will be universally agreed upon. These are guidelines and nothing more, but they are ones codified over many years of collective experience by the authors of Clean Code. Inspired from clean-code-javascript and clean-code-php lists.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of clean-code-dotnet
clean-code-dotnet Key Features
clean-code-dotnet Examples and Code Snippets
Community Discussions
Trending Discussions on clean-code-dotnet
QUESTION
I was reading the Github repository about the Clean Code concepts applied to C#, and I was surprised that the pattern matching strategy was recommended for to avoid type checking (in addition https://github.com/thangchung/clean-code-dotnet#avoid-type-checking-part-1
I can understand when you don't really have the control over types defined in a third party, but other than that I think it might be definitely better to define an interface to process some actions.
The example used in that repository is:
...ANSWER
Answered 2018-Nov-18 at 15:09(translated itself
obj as TargetType != null
)
Ok, that's not quite correct. Check the example on MSDN.
Old way:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install clean-code-dotnet
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page