Sunday, 1 February 2015

The past few weeks

The last two weeks were pretty fun for me. I had to touch up on my classes so I watched a few youtube videos about how to code them in python. It was very insightful and I found myself watching videos about object oriented programming. Watching the videos really helped me understand classes. I was having trouble understanding what exactly initialization was supposed to be for until we made classes in the labs and I realized it was used to construct anything that we needed before any method is called. For example, if we wanted to create a game where we have a character with health, we'd want to initialize his health first (i.e.self.health = 100%) before we use methods to take away health. Classes are an easy way to be organized. You can keep methods that all related to a certain thing in a class so that you can access it.

The assignment was fun to code. It was a little tricky finding a way to code it so it wasn't specific to the generic classes but I had a really awesome partner and we checked on piazza when we needed to get a better understanding of what the assignment really required us to do. I have never had a partner in any CS class so it was fun getting to collaborate with another brain. We had to discuss all parts of the assignment when normally, I'd just implement whatever I wanted to.

I think the first few weeks were really fun. I was especially impressed with list comprehension because an entire for loop can be replaced with just one line to get the same result.I also had never heard of the module turtle before so being able to learn that it can draw was really amazing.

My professor is Danny and I think he's a really good teacher. He explains concepts very clearly and is very kind. I like the fact that he tries to learn and remember everyone's names. I'm really looking forward to the rest of this class so I can learn more about python and the things I can do and code with it.

No comments:

Post a Comment