Tips or techniques to use when you do't know how to code something?
- by janoChen
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?