Learning_ introduction to computer science and programming_writing,testing,and debugging programs
writing,testing,and debugging programs
take it a step at time
1 understand problem
2 think about overall structure and algorithms independently of expression in programming language
3 break into small parts
4 identify useful abstractions(data and functional)
5 code and unit test a part at a time
6 first functionality, then efficiency
7 start with pseudo code
be systematic
whe ndebugging, think scientific method
ask yourself why program did whtat it did, not why it didn't do what you wanted it to do.