avatarBirat Rai

Free AI web copilot to create summaries, insights and extended knowledge, download it at here

1677

Abstract

ise</span></pre></div><blockquote id="dca7"><p><b>How to practice less is more?</b></p></blockquote><ul><li>Write code because it adds value, not because it amuses you.</li><li>Follow YAGNI vehemently.</li><li>Write, re-write, refactor, do self code-review before committing it.</li><li>Just because there is new component in the programming language, one shouldn’t try to use it, unless, the use case isn’t satisfied by the current case or it removes some bugs.</li></ul><p id="028f" type="7">TL;DR Write, re-write and self Code-Review, you can always improve the code.</p><p id="a0c3"><a href="https://readmedium.com/97-journey-every-programmer-should-accomplish-a0c53dbbfd47"><i>Go to the series</i></a>.</p><div id="5c51" class="link-block"> <a href="https://readmedium.com/97-journey-every-programmer-should-accomplish-a0c53dbbfd47"> <div> <div> <h2>97 Journey Every Programmer should Accomplish</h2> <div><h3>“A journey of a thousand miles begins with a single step.”</h3></div> <div><p>medium.com</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/1*ImU1JEXOUUKMJxBF_OP-_w.png)"></div> </div> </div> </a> </div><p id="d42c">Go to <a href="https://readmedium.com/step-38-how-to-use-a-bug-tracker-matt-doar-bde93b13c03"><b>38<i>th Step</i></b></a></p><div id="1fa0" class="link-block"> <a href="https://readmedium.com/step-38-how-to-use-a-bug-tracker-matt-doar-bde93b13c03"> <div> <div> <h2>Step 3

Options

8: How to Use a Bug Tracker ~ Matt Doar</h2> <div><h3>This is the 38th Step towards gaining the Programming Enlightenment series. If you didn’t learn the 37th Step, read it.</h3></div> <div><p>medium.com</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/)"></div> </div> </div> </a> </div><p id="473c">Go to the <a href="https://readmedium.com/step-40-install-me-marcus-baker-5c898d9b842"><b>40th Step</b></a>.</p><div id="98a0" class="link-block"> <a href="https://readmedium.com/step-40-install-me-marcus-baker-5c898d9b842"> <div> <div> <h2>Step 40: Install Me ~ Marcus Baker</h2> <div><h3>This is the 40th Step towards gaining the Programming Enlightenment series. If you didn’t learn the 39th Step, read it.</h3></div> <div><p>medium.com</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/1*MgP0ydNnEe55cZjI7Dfjzw.jpeg)"></div> </div> </div> </a> </div><blockquote id="ba78"><p><b>References:</b></p></blockquote><ul><li><a href="https://www.gitbook.com/book/97-things-every-x-should-know/97-things-every-programmer-should-know/details"><i>97 things Every Programmer Should Know</i></a> ~ Git Book</li><li><a href="https://www.amazon.com/Things-Every-Programmer-Should-Know/dp/0596809484"><i>97 Things Every Programmer Should Know</i></a> ~ Paperback</li></ul></article></body>

Step 39: Improve Code by Removing It ~ Pete Goodliffe

This is the 38th Step towards gaining the Programming Enlightenment series. If you didn’t learn the 38th Step, read it.

Less is more. It’s a trite maxim, and most of the times it really is true.

Why less is more?

Wouldn’t say it always is the case, but more lines of code means more chances of introducing bugs.

  • You’ve got less code to test and debug.
  • By trying to reduce the lines, we find some ingenious ways to tackle the problem.
if(x > 1){ 
     return true;
} else { 
return false;
}
Alternatively
return (x > 1)? true : false; // Pretty concise

How to practice less is more?

  • Write code because it adds value, not because it amuses you.
  • Follow YAGNI vehemently.
  • Write, re-write, refactor, do self code-review before committing it.
  • Just because there is new component in the programming language, one shouldn’t try to use it, unless, the use case isn’t satisfied by the current case or it removes some bugs.

TL;DR Write, re-write and self Code-Review, you can always improve the code.

Go to the series.

Go to 38th Step

Go to the 40th Step.

References:

Programming
Coding
Java
Android
Software Development
Recommended from ReadMedium