Tips or techniques to use when you do't know how to code something?

Posted by janoChen on Programmers See other posts from Programmers or by janoChen
Published on 2012-12-02T03:48:36Z Indexed on 2012/12/02 5:21 UTC
Read the original article Hit count: 441

Filed under:

I have a background as UI designer. And I realized that it is a bit hard for me to write a pieces of logic. Sometimes I get it right, but most of the time, I end up with something hacky (and it usually takes a lot of time). And is not that I don't like programming, in fact, I'm starting to like it as much as design. It's just that sometimes I think that I'm better at dealing with colors an shapes, rather than numbers and logic (but I want to change that).

What I usually do is to search the solution on the Internet, copy the example, and insert it into my app (I know this is not a very good practice).

I've heard that one tip was to write the logic in common English as comment before writing the actual code.

What other tips and techniques I can use?

© Programmers or respective owner

Related posts about programming-practices