- Always name things well.
- Make sure there is only one class per file.
- Always try to use properties instead of public variables.
- Write methods to make only one thing.
- Use public modifier only when necessary.
- Try to keep everything simple.
- Always be consistent.
- Use curly braces for if statement.
- Concatenate strings using "$".
- Avoid global variables.(Make use of app.config file to declare global variables if needed).
Friday, March 10, 2017
Best C# Practices to follow
Subscribe to:
Post Comments (Atom)
Call a function in child component from parent component in React
Consider the following parent component class Parent extends React.Component { constructor(props) { super(props); thi...
-
An abstract class cannot be a sealed class because the sealed modifier prevents a class from being inherited and the abstract modifier requi...
-
"Failed to connect to repository : Error performing command: git.exe ls-remote -h https://github.com/narendravenkata/React-Demo.git HE...
-
Consider the following parent component class Parent extends React.Component { constructor(props) { super(props); thi...
No comments:
Post a Comment