Saturday, January 31, 2015

My impression on the first few weeks

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.

Thursday, January 22, 2015

Why Geeks Should Write?

For us students in computer science, most of us enter the field thinking that now we don't need to write those pointless, long and boring essays anymore. We think that now we can finally focus on the technical stuff and code for the rest of your life. But I'm here to tell you otherwise. In this blog, I'll give you three reasons as to why us geeks should continue to write and hone our writing skills.

First and foremost, the ultimate reason why I think geeks need to know how to write is to learn to express oneself and explain the concepts you've learned or your works in a clear and precise manner. This ability is important in all fields and aspects, and this skill is massively important in the field of computer science. If you decide to head on to employment in the future, you'll not be working on a project alone. You'll be collaborating with a lot of other people in your field and outside your field. In such cases, you need to be able to clearly explain your works and activities so that the entire team can understand what you're saying and thus work together to produce the best possible outcome from your work. Furthermore, let's say you create a software or a program. Now that is completely pointless unless you're able to sell your product. For this to happen, you need proper clarity in your explanation so that the other people who're less educated in the field of computer science will be influenced by your product and will be tempted to buy the product, thus leading to you getting commercial success from your work. 
Not only in employment, but even if you decide to head on to research, this skill comes extremely handy. Whether it comes to writing your thesis, defending your thesis, talking with your supervisor, team members or other faculty members, you need to learn to be precise and clear with your explanations and express yourself properly so that other people can understand what your research or opinion is actually about and give you proper advice to enhance yourself. Otherwise, a thesis or a project which only you understand but not anyone else will be of very little use to anybody. 
In my opinion, through activities like writing blogs and communicating with others more, one learns the skills to properly express oneself so that he or she may excel wherever he or she may go.

Secondly, the other major reason that I think geeks need to know how to write is so that ourselves along with the next generation of computer scientists and programmers can learn from our mistakes and experience so that we may become even better leaders in our field. As we learn how to program, we come across various problems, bugs and mistakes which can take us from a couple of hours to a few number of days to fix. This could be seen as a major waste of time, time which is better spent on learning about new things or doing some other activities. I think that by writing about your experience as you continue to program, sort of like a journal or a log, not only do you ingrain that experience in your head, making the mistake less likely to happen again; but you also save it as a reference, just in case you encounter a similar problem again in the future and you don't know the solution. 
Not only for yourself, but your experience will also be of great importance to those who're new to programming and are having the same problems you once had. They could just look it up online and find the solution instead of wasting a significant amount of time on stupid little problems. By writing about out experiences, we're giving the next generation of computer scientists and programmers more time to learn and gain more knowledge so that in the upcoming future, these people may become even better leaders in their respective fields than they aspired to be.

Finally, I think that geeks should also learn how to write because it can serve as a break from whatever geeky activity you're up to. I think that writing serves as an awesome hobby, since you can just take a break from your work or studies once in a while and write about your experiences in life, your current feelings or something you wanted to talk about. It could actually bring a little bit of happiness in your life if you just give it a chance.

In case you'd like more information regarding this topic, you can refer to Slog #1 of the link http://computerscienceuoft.blogspot.ca/. The article itself is very interesting as the writer draws a comparision between writing code and essay. The writer also has a link regarding  Joel Spolsky's blog on advice for computer science students, which I think you all should check out.

There you have it folks. These are the reasons why I think geeks should definitely learn how to write. I hope that was beneficial for everybody, and I'll see you all next time. Peace out.