9

dotNetDave Says… No One Writes Perfect Code! – dotNetTips.com

 2 years ago
source link: https://dotnettips.wordpress.com/2021/12/08/dotnetdave-says-no-one-writes-perfect-code/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

dotNetDave Says… No One Writes Perfect Code!

Lets face it, none of us write perfect code all the time! Especially since there are many ways to write the code to achieve its purpose. The best way to make sure the code is the best it can be is by asking someone to review it! This is even more imporant if you are a beginner software engineer.

dotNetDave Says... No One Writes Perfect Code

Here are imporant things to remember if you are reviewing someones code:

  1. Does this code check for nulls?
  2. Does this code include unit tests?
  3. Does this code meet company coding standards?
  4. Does this code use generics so it can process different types?
  5. Does this code validate the data coming into it?
  6. Is the code readable and easy to understand?
  7. Is this the best way to write this code, especially when you have performance in mind.
  8. Will it be easy to modify in the future?

These are just a few things to keep in mind. So if someone does review your code, be accepting and welcoming to it. It will make you a better developer!

My coding standards book will help you in your code reviews!


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK