One Difference Between Smart and Professional Programmer

shoiabakbar

Shoaib Akbar

Posted on February 24, 2020

One Difference Between Smart and Professional Programmer

Programmers are pretty smart people.

Smart Programmer

Smart people sometimes like to show off their smarts by demonstrating their mental juggling abilities.
if you can reliably remember you can write similar code.

for (int j=0; j<34; j++) {
s += (t[j]*4)/5;
}

Professional Programmer

A professional programmer understands that clarity is king. Professionals use their powers for good and write code that others can understand.

int realDaysPerIdealDay = 4;
const int WORK_DAYS_PER_WEEK = 5;
int sum = 0;
for (int j=0; j < NUMBER_OF_TASKS; j++) {
int realTaskDays = taskEstimate[j] * realDaysPerIdealDay;
int realTaskWeeks = (realdays / WORK_DAYS_PER_WEEK);
sum += realTaskWeeks;
}

Write readable and understandable code.

i couldn't add indentation, if you know please write in comment.

Keep Learning!

💖 💪 🙅 🚩
shoiabakbar
Shoaib Akbar

Posted on February 24, 2020

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related