Job Iden wrote:The tips I personally would say is to just start out small. Make some code that just adds 1 + 2, or even just make some code that says some random thing.
Very astute advice from a beginner. I would add to that: Start small and keep things small.
Also, I would say you need to learn about principles early. Even if you don't understand them fully, if you're aware of them and kind of know what they're about, you will see them come into play as you continue to practice and try to get better.
Here are a few important principles to get you started:
4 Rules of Simple Design - 4th one is about what you said: keep things small
SOLID, DRY, KISS, GRASP - they're acronyms, nothing kinky
How to write Clean Code - always try to write clean code
And because nobody ever writes clean code their first time around (even professionals), learn about
Refactoring and
Unit Testing and make it an integral part of your programming practice. Every line of code can present you with an opportunity to refactor and
unit test. The more you do it, the better you get and the better you get, the better code you'll get.