Having already done CSC108 in the fall of 2014, the first few weeks of CSC148 was sort of like a review of what I learned in CSC108. However, there were lots of new things I learned and there were lots of interesting tasks that I took on, which have made my experience with CSC148 a worthwhile one.
On the first week, we learned about object-oriented design. Compared to CSC108, we started thinking about creating programs for problems that are more abstract. An example we were given was the co-ordinate system where might have to carry out operations like finding the distance from the origin, finding the distance between two co-ordinates, and many more. We learned how to define classes and how to make, call and carry out different kinds of methods within the class. We were also introduced to the concept of making sure that the user actually understands what exactly our class does. We were able to do so using the help() command. A new thing I learned during that week was the 'is' command. Just like the '==' command, they're used to check whether objects are equivalent or not. However, while '==' returns True if the objects are equivalent, 'is' returns True if and only if both the objects are in the same memory address. I found this new concept really interesting. The first week was basically like a walk-through of the things we learned in CSC108.
On from the second week, we started learning more about special methods like help, str, repr and self. The 'repr' command was something new that I learned this week. It is similar to str in the sense that they both give string representation of an object. However, the string provided through repr can still be used as a valid expression and used for evaluation if pasted back into Python. On the other hand, you can't do this with str. Besides the lectures, we also started doing labs, something we didn't do in CSC108. I got the opportunity to work with a partner on a task. I got the chance to communicate about the problems and work as a team to come up with a solution. I also got hands-on teaching and help from the TA in case I got stuck on something. Overall, the second week was very informative and fun.
On the third week, we started learning about inheritance. We were taught about creating sub-classes from a main class, by which we can inherit certain methods from the main class itself without having to repeat code for each and every little class we make. We also learned a bit about list comprehension, which showed us cool tricks we can do with lists like doing operations within lists without having to make loops, or create a matrix. We also started to write slogs starting from this week, where we got the opportunity to write about our opinions regarding the lectures, new things we learned and about challenging topics. For this week, we had to write about why geeks need to write. I thought this was a fun experience since I personally love writing and by writing these blogs, I can get my opinions regarding the course and new things I learned across to a lot of other people. Furthermore, by writing about new things you learned, you can make sure that the new concepts are now ingrained in your mind. The third week was pretty fun for me.
To top this week off, we had an assignment given to us where we had to create a game interface, mainly focusing on the game 'Subtract Square' . This was a rather challenging assignment and was designed to take our computing knowledge to the limit. However, it was a fun assignment since I got an opportunity to apply all of the concepts I learned into making a good game interface. Along with that, the assignment taught me how and where to seek help where I needed it. Lastly, I realized the importance of teamwork since had I not teamed up with my partner, the assignment would have been more challenging than it already was. Nevertheless, it was a worthwhile experience for me.
Anyways, this is pretty much it for my first few weeks. It has been a really fun and informative experience. I've learned a lot of new things and have been able to do a lot of tasks (like writing this blog) which I didn't expect to do in this course. I'm really pumped up so far and I look forward to learning more new concepts and challenging in the future.
On the first week, we learned about object-oriented design. Compared to CSC108, we started thinking about creating programs for problems that are more abstract. An example we were given was the co-ordinate system where might have to carry out operations like finding the distance from the origin, finding the distance between two co-ordinates, and many more. We learned how to define classes and how to make, call and carry out different kinds of methods within the class. We were also introduced to the concept of making sure that the user actually understands what exactly our class does. We were able to do so using the help() command. A new thing I learned during that week was the 'is' command. Just like the '==' command, they're used to check whether objects are equivalent or not. However, while '==' returns True if the objects are equivalent, 'is' returns True if and only if both the objects are in the same memory address. I found this new concept really interesting. The first week was basically like a walk-through of the things we learned in CSC108.
On from the second week, we started learning more about special methods like help, str, repr and self. The 'repr' command was something new that I learned this week. It is similar to str in the sense that they both give string representation of an object. However, the string provided through repr can still be used as a valid expression and used for evaluation if pasted back into Python. On the other hand, you can't do this with str. Besides the lectures, we also started doing labs, something we didn't do in CSC108. I got the opportunity to work with a partner on a task. I got the chance to communicate about the problems and work as a team to come up with a solution. I also got hands-on teaching and help from the TA in case I got stuck on something. Overall, the second week was very informative and fun.
On the third week, we started learning about inheritance. We were taught about creating sub-classes from a main class, by which we can inherit certain methods from the main class itself without having to repeat code for each and every little class we make. We also learned a bit about list comprehension, which showed us cool tricks we can do with lists like doing operations within lists without having to make loops, or create a matrix. We also started to write slogs starting from this week, where we got the opportunity to write about our opinions regarding the lectures, new things we learned and about challenging topics. For this week, we had to write about why geeks need to write. I thought this was a fun experience since I personally love writing and by writing these blogs, I can get my opinions regarding the course and new things I learned across to a lot of other people. Furthermore, by writing about new things you learned, you can make sure that the new concepts are now ingrained in your mind. The third week was pretty fun for me.
To top this week off, we had an assignment given to us where we had to create a game interface, mainly focusing on the game 'Subtract Square' . This was a rather challenging assignment and was designed to take our computing knowledge to the limit. However, it was a fun assignment since I got an opportunity to apply all of the concepts I learned into making a good game interface. Along with that, the assignment taught me how and where to seek help where I needed it. Lastly, I realized the importance of teamwork since had I not teamed up with my partner, the assignment would have been more challenging than it already was. Nevertheless, it was a worthwhile experience for me.
Anyways, this is pretty much it for my first few weeks. It has been a really fun and informative experience. I've learned a lot of new things and have been able to do a lot of tasks (like writing this blog) which I didn't expect to do in this course. I'm really pumped up so far and I look forward to learning more new concepts and challenging in the future.
No comments:
Post a Comment