A collection of common myths and facts (opinionated) about computer programming that I wish I knew in my early career.
False
Programming(at entry level) is about:
The amount of time you spend typing code depends on your role and job description. There will be days you won't be typing any code.
Majority of programming job requires maintaining an existing system written over the years by several people. You will be required to add features, customize, fix bugs, etc
int a = read()
int b = 1000
if(a > 18 && b > 50)
println("Entry allowed")
False
With compiled languages, no. With interpreted languages, possibly but the difference would be negligible.
Always focus on readability. Compare the above code with the following:
int age = readMemberAge()
int balance = 1000
if(age > 18 && balance > 50)
println("Entry allowed")
DB.allRecords().read().toCsv("file.csv");