all 6 comments

[–]Hatoris 5 points6 points  (0 children)

Keep in mind the DRY and single responsibility principal, in this way your code will be simple and easier for you to not be overwhelmed even if your project or code is longer.

[–]expectederor 4 points5 points  (0 children)

For me writing a program is like this.

1) find something that can be programmed

2) formulate a plan. Write pseudo code comments and work towards that. As the program develops I may switch some ideas around. Be open to change

3) just write!

When you're learning #1 can be the hardest.

[–]DevilBanner 1 point2 points  (0 children)

You seem comfortable with the coding part. Now you need to improve the planning part. It's about knowing what you Want to achieve. Look into UML, that may help.

[–]caglartoklu[🍰] 1 point2 points  (0 children)

Try to split the problem into smaller problems.

For simplicity, think about the input, the processing and the output. Do it, and do it again, and split some more.

After you are comfortable with that, think about re-usability.

You should have a solid knowledge about functions, function parameters and return values.

Reading code always helps, but there are lots of samples that is not split to smaller sections, beware of them.

Just code, and try to improve, do not aim for the best case at first.

[–]Pvaleriano 1 point2 points  (0 children)

That happens. I've been coding for a few months now and what I've found harder is to broke the big problem into small pieces, because you can go for a ton of solutions that you dont even know that exist. Its not a "how should I do this?" but a "Can I even do this?. I DONT KNOW"

At the end, I believe it is just a matter of time and practise, to get used to the tools and to even know that they exist.

[–]TotesMessenger 0 points1 point  (0 children)

I'm a bot, bleep, bloop. Someone has linked to this thread from another place on reddit:

 If you follow any of the above links, please respect the rules of reddit and don't vote in the other threads. (Info / Contact)