My views have changed considerably since
the beginning of this course. Generally, I tend to think more about the big
picture rather than small details. In my Slog #4, I wrote that objective
oriented programming (OOP) leads to simpler, cleaner, and yet more
sophisticated codes. At that time, I had thought that OOP was all about
applying new concepts that are covered in this course. New concepts are
important and application of those is crucial part of this course. However, I
learned that it is more important to think about the big picture before
implementing any codes. In other words, thinking about what a function or
method is supposed to do, rather than worrying about which recursion should
appear in which line of the codes, is always the best way to start
implementing.
I used to write codes without much
thinking. I merely tried different things by changing what I thought was wrong
just to get it to work on doctest examples. Then, I moved on to more complex
examples. This was very time consuming as sometimes I had to come up with whole
new codes to get it work on more complex examples. However, I now think about big
pictures before doing anything. I first pick out a set of examples with different
starting points and results. Then, for different examples, I plan out what the
next step will be until I get to the result without worrying about the concepts
or techniques that I will be using. Once I get a good idea of what is going to
happen, it is so much easier to implement.
No comments:
Post a Comment