how to be a better programmer.

programming is not (mostly) about writing. programming is about thinking. the art of programming is about solving problems — or create problems to sell the solution.

do the pre-writing part

before start, think about what you need to do, summarize your needs. remember, programming is about thinking, not just writing. the great problem with most beginners is that they try to write before think. grab a pen and a paper and take your time.

focus on the big picture

focus on solve your problem first. small things and features that makes your program better are an excellent thing to have, but they’re not so important in the first moment.

make your code readable

it’s easier for you and other people to read and change the code. seriously, indent that shit.

KISS: keep it stupidly simple

do not suffer in vain.

use variable names that make sense

use userAge or age for storing somebody’s age, not var1. using camelCase or PascalCase might not be a bad idea. read more about capitalization styles here.

try IDEs and text editor and use the one you like most

i like to use Sublime Text 3, NetBeans(for gui in Java) and PyCharm.

if you’re a student, search for software discounts

you can get all JetBrains’ IDEs for free.

//coment your code

programmers have a really bad habit of not writing comments, and we should fight that habit. specially when you couldn’t kiss, your code really needs comments.

If it was hard to write, it should be hard to understand. Stop with that thinking. Now.

don’t be afraid of using code you just found online

just don’t say you were the author of the code.

contribute to the open-source community


listen to some music

or try and see what works best for you. check this site out.

give yourself a pause

relax, read some articles, take a nap, do whatever you want.

don’t be shy of receiving help…

or be afraid of making mistakes.

…and help beginners too!

PS: If you liked this article don’t forget to hit the ❤ button below and follow me on Medium!

article made by Gustavo de Paula.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.