Writing Clean Code

<p>Lately, I see a lot of articles about clean code. And that&rsquo;s good! Back when I was a teacher people asked me what my vision of clean code is. I never understood why people asked about &lsquo;my vision&rsquo;. I just read about Robert C. Martin, a.k.a. Uncle Bob, and stuck to what I have done and learned.</p> <p>But some people read a book and follow it as the bible of clean code. I believe there is more to it than just someone telling his best idea of clean code.</p> <p>My vision of clean code is based on experience and learning from others. I have a few ground &lsquo;rules&rsquo; I stick to and try to teach that to others who are interested. These are not the only way to go and you may not agree with some, but I have been using the following tips for many years.</p> <p>This article is based on C#, but it could also be applicable for Java, PHP, and other OOP languages.</p> <h1>Team Players</h1> <p>Clean code is not some given book, like the 10 commandments. You will discover and develop it when you work your way up to being a good developer. Yes, there are good developers with terrible code who usually don&rsquo;t work in a team. Because as a team you set certain ground rules on how team members should be making code. The idea of this is simple: Everyone in the team develops code in the same way, so everyone can read it, change it, and continue on it.</p> <p><a href="https://medium.com/@kenslearningcurve/writing-clean-code-775c2dff07bd">Visit Now</a></p>
Tags: Code Clean