Why Is It So Easy to Become a Bad Coder?

I was once a really bad coder and at that moment…

Jason In
Jason In
Mar 16, 2019 · 3 min read
Image for post
Image for post

// Version 1
String[] names = {“Jason”, “Jimmy”, “Jack”, “James”};
for (int i=0; i<4; i++} {
println("Hello" + names[i]);
}
// Version 2
String[] names = {“Jason”, “Jimmy”, “Jack”, “James”};
for (String name : names) {
println("Hello" + name);
}
// Version 3
println(“Jason");
println("Jimmy");
println("Jack");
println("James");
...
Image for post
Image for post

  1. READ MORE. Learn what Big O notation is and how design patterns can help us in writing code that is scalable
  2. Code reviews. Ask people around you (Of course to those who know how to code) to try reading your code and discuss with them if there is a better way of writing the code

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store