Friday, February 28, 2014

Second entry

This is the second entry of my SLOG, for a long time from the first one. There were many new concepts and it is starting to get a bit challenging. The first thing that I would like to talk about is the inside touch of different classes, method and modules that exist in python.
During week 3 we learned that the easiest way to copy a class and modifying is by using an inheritance. The inheritance has all the same properties as the original class but it could be change by accessing the function and modifying the context in it. One interesting factor of inheritance is when u change the base class the subclass will also be affected but changes made in subclass will only affect itself.


Further on week 3, we started to learn all kind of exception and how it is being raise. Personally I fell like is a pretty straight concept, the only thing that need some attention is the clause try :   -----------      except :  ------- . Code under try, whenever an exception happens the program ignores anything else under the error line and jumps into the except part.

Thursday, January 23, 2014

Object-Oriented Programming


From the 3 weeks of lectures, I have learned how to design and program in an object-oriented perspective and starting to understand a little bit more of how recursion works. I really love the concept of programming in a way of creating and manipulating objects, this helps me to relate programming to real life problem more easily and helps me to create programs that are more organized and logically. The most challenging part until now it’s definitely to think of programming recursively. The fact of calling a function itself is kind of mind bending for me and I might need to put some extra effort in this field for the further weeks.

My lectures went pretty well for these weeks but I still feel like we should have 3 lectures per week rather than 2, so that we could learn about the material more thoroughly in class. Tutorials are pretty helpful for answering unsolved problems since we have shorter lecture time, but I still prefer to have a little bit more of exercise, especially independent works.