The second assignment
was due today and I think I did okay in the end, although I spent
quite sometime figuring it out. I think that I need to approach
writing code with more confidence, instead of wondering if what I
think I should write is the correct thing to write. Python is quite
easy and intuitive. Learning to code really is like learning to
speak a foreign language. I do wish the auto-marker ran at set
intervals, so that I could know that I could have feedback at a
certain time. I'm looking forward to getting started on the
Assignment. I have not yet looked at the code but remember from 108
that I really enjoyed reading the starter code and putting together a
conceptual map of the programs. Let you know how it goes. :)
Thursday, 30 January 2014
Thursday, 23 January 2014
Object Oriented Programming
I am new to computer
programming, am not a Computer Science student. The only other
programming course I've taken is CSC108, so Python is the first and
only language I am familiar with. This has its positive aspects -
it seems that some of my classmates who are used to coding in other
languages sometimes find it difficult to adjust to the ideosyncrasies
of Python. The challenge I am facing at the moment, having to do
with the switch from writing functions to using classes and methods
is the dot notation. I find that for now it helps to remember that I
usually get things backward (instead of object.method, I say
method.object), so I should write the opposite of what I think I
should write, like George Costanza:
http://www.youtube.com/watch?v=cKUvKE3bQlY
Sometimes, the
multitude of 'self' in writing classes is also confusing, but I think
I'm starting to get used to it.
Subscribe to:
Posts (Atom)