Monday, April 6, 2015

Week 12 Last impression - Look back

Week 12
Last impression - Look back 


Programming in Python has been a really nice experience. Thus, I would like to use this space to make a small reflection about some of the topics I have learnt this term.

It seems clear to me that every single piece of code we learn play an important role when coding. For instance, docstrings are used to check our functions and methods, and also to explain other programmers how they work. Similarly, a clear structure based on classes and subclasses makes it easier for our peers and more experienced programmers to understand the code implemented.

Having a good understanding of how the structure works, facilitates the understanding of more specific pieces of code such as functions and methods. For instance, you would expect class Triangle or Square to be subclasses of the class Shape. By the same token, you would expect functions within the subclass Square to refer to some sort of attribute related to squares. Therefore, following a structure not only enables other programmers to easily read our code, but it simplifies its implementation.

Classes, subclasses and recursion are some of the topics that were covered. As explained, classes and subclasses are a way of structuring our code, but recursion is rather a technique. When talking about recursion, tracing code becomes of great importance. Tracing code is a good way of perfecting our recursive techniques, which could be used for lists, trees, binaries trees and other recursive functions.

To sum up, I really enjoyed taking this course and I hope I can use the knowledge learnt as a starting point. I am just at the beginning of my journey, but I know that concepts such as classes, subclasses and recursion will be of great help in later years.