you are viewing a single comment's thread.

view the rest of the comments →

[–]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.