Code Smells in Angular
<p>In one of my previous post I talked about “<a href="https://blog.bitsrc.io/clean-frontend-architecture-2995c68702fb" rel="noopener ugc nofollow" target="_blank"><em>Clean Frontend Architecture</em></a><em>”</em> and principles that should be followed in order to positively influence the maintainability and scalability of frontend applications.</p>
<blockquote>
<p>This time I would like to show the most common “<em>Code Smells”</em> that I have come across in Angular.</p>
</blockquote>
<h2>So, what are “<em>Code Smells</em>“ and why are they so bad?</h2>
<p>Well, I would say the best definition of <em>“Code Smells”</em> is:</p>
<blockquote>
<p>The total count of <em>WTFs</em> during a code review.</p>
</blockquote>
<p>One might also measure the Code Quality with this procedure. A reference for that would be the book “<em>Clean Code“</em> by Robert C. Martin, where the Code Quality is defined by the <em>WTFs</em>/Minute.</p>
<p><img alt="" src="https://miro.medium.com/v2/resize:fit:700/1*LEyqjbNuLqpuRRDlqCY2Fw.png" style="height:551px; width:700px" /></p>
<p>Code quality measurement</p>
<p>But why are “<em>Code Smells“</em> bad? Because they negatively influence the maintainability and/or performance of any application.</p>
<p>I have seen so many <em>“Code Smells”</em> and bad practices that I have to categorize them. But how can this be done? One approach would be to categorize them by their negative impact on the performance. </p>
<p><a href="https://blog.bitsrc.io/code-smells-in-angular-ce73bf7db072">Website</a></p>