Last night I was finally able to crack the problems I had with assignment 1. Most of the work has now been completed and now all I have to do is touch up the code and polish up the comments. It definitely feels good to have completed this task after hours of solving the problems my code had.
When you press that run button and realize that everything works properly, the feeling you get is simply exhilarating. I feel like I could take on an entire army of cheese people without fear now. After putting the finishing touches to the code I think tomorrow I'll work on Controller.py. I slept so well last night, not a cheese in sight.
Tuesday, 8 October 2013
Thursday, 3 October 2013
Seeing Cheeses
After spending quite a bit of time working on assignment 1, I've managed to get a good way through it up to steps 4 and 5. However the consequences of my actions are becoming apparent as I am now beginning to see the code that I've written in my dreams alongside floating cheeses and stools. I think this is a sign to take a slight break from thinking about cheeses and stools and perhaps think about other things such as exercise 3.. or maybe I've just been seeing too much code recently.
Saturday, 28 September 2013
GUI
Recently I received a Python file written by a friend of mine while he was in first year university. It contained a class "Book" and a class "Person". He used these classes to record and store information of people in a book, but the most interesting part about it was that all of it was done in a pop-up window GUI, complete with buttons and text fields.
Although learning GUI is not in the course outline, curiosity overwhelmed me and I decided to break down his code and try to understand how it was done. On that note I've set up a side goal for myself that will run parallel to the course and that is to program a calculator by the end of the course using what I learn in CSC148 and what I learn from my friend's code.
Although learning GUI is not in the course outline, curiosity overwhelmed me and I decided to break down his code and try to understand how it was done. On that note I've set up a side goal for myself that will run parallel to the course and that is to program a calculator by the end of the course using what I learn in CSC148 and what I learn from my friend's code.
Wednesday, 25 September 2013
Exceptions in Python
After learning a bit more about exceptions today in lecture, I went home and tried to raise as many different types of exceptions as I could. Although the variety of exception I could raise was rather limited, further experimenting revealed many new things to me:
object - > BaseException -> Exception -> ArithmeticError -> ZerroDivisionError
-> LookupError -> IndexError
-> SyntaxError
-> ValueError
-> NameError
-> TypeError
I'm sure there are many that I haven't stumbled upon but I did not expect to find so many exceptions built into Python. I'm also waiting for the marks for exercise two, I'm eager to find out how I did on my first attempt at it.
object - > BaseException -> Exception -> ArithmeticError -> ZerroDivisionError
-> LookupError -> IndexError
-> SyntaxError
-> ValueError
-> NameError
-> TypeError
I'm sure there are many that I haven't stumbled upon but I did not expect to find so many exceptions built into Python. I'm also waiting for the marks for exercise two, I'm eager to find out how I did on my first attempt at it.
Subscribe to:
Posts (Atom)