r/learnprogramming • u/just_jesse • Jul 12 '13
What are some bad coding habits you would recommend a beginner avoid getting into?
Whether they're stylistic habits or program design habits. I'm learning java and want to be sure to write my code as efficiently as possible to avoid lengthy code and poor design choices.
250
Upvotes
View all comments
Show parent comment
22
u/minno Jul 12 '13
It doesn't really apply in that case. I was thinking more of "this function reads input from stdin and parses out the English words", which should have a function that reads input and then either calls the function that parses the words or otherwise passes the data to the separate function.