2015年4月3日星期五

Week 12: Thank you CSC148!

       It has been a wonderful semester, and this is going to be my last slog about this wonderful course CSC148.  Today I only want to say, thank you.

       At the very beginning of 2014-2015 school year, I was thinking about learning Economics.  But after a few weeks' study, I found that that is not the right course for me: too many people, too few chances, and one can probably never get one throughout his entire life.

       Hopefully I took CSC108.  This course is called "Introduction to Computer science".  Yeah, computer is science.  In my opinion earlier, computer is just for us to surf on the Internet, finish our homework, and sometimes play video games on it.  Once I learned about programming, I was like: that is really awesome... After last semester's CSC108 study, I thought I want to major computer science, so I enrolled in CSC148: a more challenging course.

       I was a little bit nervous before the very beginning of my first CSC148 lecture.  I did not know whether my professor of CSC148 will be as nice and friendly as professor Tom, which was my CSC108 professor.  I remember the first lecture of professor Diane, wonderful lady: friendly, patient... She explained every question clearly, and she is always ready for any questions form our students at any time. Thank you professor Diane!

       CSC148 contains lots of new stuff like Trees and Object Oriented Programming methods, which gives me some challenges every single week!  Hopefully we have weekly labs which boosts our understanding of every single concept of that week.  And I find every week's lab note has been my key when I am preparing for my tests, they are so useful.

       And thank you to all the TAs!  Thank you for helping us solving our problems during our labs, thank you for marking our quiz and tests.  Even you were on strike for nearly one month, I still want to say thank you to the warm-hearted TAs.

       And a thank you for myself.  Thank you for not giving up when thousands of problems and bugs pop up right in front of your eyes.  Thank you for taking CSC148 so I can meet so many great people, and make friends with them...

       Thank you all...

2015年3月27日星期五

Week 11: Revisit my Slogs

       If I do not write down something every week on my blog, I will never find that I have already changed so much in only one semester...

       As I wrote down on my first slog:why Geeks Should Write? I stated that writing is a way to explain our thoughts and opinions, and we write a lot to become a better writer.  during the semester, I watched a little clip on Youtube called Why you should code! which lots of really famous geeks, for example Bill Gates(microsoft), Mark Zuckerberg(facebook) Jack Dorsey(Twitter)and Drew Houston(dropbox) and some others like Chris Bosh(NBA player) talking about why everybody should learn how to code.  I once thought I will never get even close to those stars in my whole life, I believe they are just all geniuses.  But when I heard Bill Gates says the first code he wrote on a computer was only "hello world", I was like:"Hey, I can do this, and this was so easy."  The famous, great Bill Gates also started his coding life from the most most basic things, like me.

       So, I wonder what is the main difference between these computer geniuses and me?  I believe it is one word with four letters: LOVE...

       Their love to computer science, their love to coding make them success, and become the geniuses in other people's eyes.  Compared to them, I always hoping to finish my study of this week and then I can enjoy my free time hanging out with my friends or playing video games in my home... It seems I had never really thought I should spend some time coding more programs.  I know practice makes perfection, but I never began.

       I think this will be the last time talking about this, because from now on, I really gonna spend more and more time on programming, because now I add another reason on "Why Geeks Should Write": LOVE.

2015年3月22日星期日

Week 10: Talking about Term Test 2

       I did not know that we are allowed to have a 8x11 "cheat note" during our 148 tests when I was preparing for term test one, and I felt so regret because I think I could done a better job if I had one during the test.  So this time I prepared my "cheat notes" really really carefully, and it definitely helped me a lot this time.

       I copied down some codes basically from every week's lab.  There is a question on the test paper which was nearly the same as one question that I copied down.  I only need to give a concept of finding very even value, and that is easy for me.

       I have no idea if we are still allowed to bring "cheat notes" during the final exam, if so, I will take this chance and try to get a higher mark with the help of that.

       by the way, TA strikes continues...

2015年3月9日星期一

Week 9: TA's still on strike, and Term Test 2 week

       As our TAs are still on strike, some of my classes has been cancelled, but both two professors of CSC148 are still providing lectures, a special thanks to them!!!

       Last week we talked about Linked List, and to be honest, I did not pay much attention on last week's study due to the strike.  So, how about letting me talk about something in my head about this TA strike.

       As an international student from China, I never experienced such a huge and long-lasting teachers' strike(or any other strikes...)  So this is a whole new experience.  I live in innis residence, and nearly every morning of last week the striking TAs are the ones who woke me up.  I don't know how long will this strike last, but I hope this can be settled  quickly so our student can pay more attention on our courses.

       And on this Wednesday we are going to have our second term test of both CSC148 and CSC165.  I think I will not be as frightened or nervous as last time.  Hoping I will get great results.

2015年3月7日星期六

Week 8: Binary Trees

This is a Tree...

 This is also a Tree...

       
       Over last week's lectures, we talked about a new method called Trees, to be more precise: binary trees.  The second tree above is a programming tree.  Like a real tree, it also has roots, leaves, nodes, and so on.  It also has heights, which the upper programming tree has a height of four.  On a binary tree, we have those typical tree attributes as I states: nodes, leaves, paths...  One node on a binary tree can only has up to two child nodes, and two is the max number, but it does not mean that for every node on a binary tree, there must be exactly two child nodes on it.  And for the two child nodes, we can then call them left node and right node, which is so easy to understand.
       
       Also, there are three different ways to examine a binary tree's data.  Pre-order Traversal visits the parent node before it's child nodes from left to right; Post-order Traversal first visit all the child nodes from left to right and then visit the parent node; In-order Traversal visits all the left child nodes then left parent nodes, after that, right child nodes, and finally right parent nodes, note that In-order Traversal only occurs on a binary tree.

       Tree is a difficult topic, and I need to spend more time on it.

2015年2月14日星期六

Reading Week!

This week is READING WEEK! Yeah~ 
And also Happy Valentine's Day and Happy Chinese New Year~

2015年2月13日星期五

Week 6: Object Oriented Programming PLEASE MARK THIS!!!



       As I understood in last week's Object Oriented Programming(OOP) lectures, OOP is a programming method that our programmers define our data in terms of objects.  In OOP programming languages like Python and Java, lots of basic things are referred as objects: a list, a function, a class... And for more information, here is exactly what OOP is.



       And the interesting thing is within these objects, there are different attributes and properties that can pass down or change by other objects.  And there is a famous example that geeks uses a lot to explain the upper things: the dog picture.

       A dog has attributes or as the picture says, properties such as its color, height, length, weight, etc.  Every dog in the world has these properties, but how do we introduce the dog you have, the unique one called Rayne?  We know it has gray, white, and black fur, its eye color is blue and brown... Yes, we use the methods to feed those values in to the properties of "every dog" to describe or introduce an unique one.  And these unique objects with values in them are usually called classes.

       The primary concept of OOP is the inheritance relationship between two separate classes. OOP's inheritance allows the programmers link these separate classes together, and pass down one's data and value to another: the class that passes the value is called a super class(mother class), and the class that receives the value is called a sub class(child class). And with the help of OOP, coding can be much easier, since the sub class inherits all the methods and properties from the super class.
       Since OOP is such a good way to analyze data and different classes, I believe I will try my best to understand more about this effective and efficient method.

2015年2月8日星期日

Week 5: A Tough Week...Well to Me

       I would rather call this week "CS test week" because I had both CSC165 and CSC148 mid term test1 on Tuesday and Wednesday.
       I spent tons of my time reviewing CSC165 material because this is a totally new course to me; I think I did  this test well, but since I did spend much time on CSC148 so I wasted lots of time during my test on the first few easy questions and did not have enough time to finish the last question.  I will definitely review 148 more carefully from now on.
       And this week we've started learning about recursion and how to trace a function while it runs.  And I have been told that recursion is a very important skill in coding, like it will show up again and again in the following years.
       Recursion is a fun topic to me.  As Diane shows during the lecture by letting the students using the same method to divide a stack of playing cards in to half.  Divide one stack of card is easy for one person to finish, but if there are a thousand stacks on the desk, this only worker will be really bored to spend months to finish the job.  It is the same as we analyze our data bases when we are coding, it can be hard, boring, and requires lot of time.  However, with the recursion method, this worker can only cut this deck into two stacks once and pass the rest of his job to other people, and when they finish their part, they can also pass the rest to more workers; and when all workers finish their job and there are not further jobs need to be done, they can pass their finished jobs back to the upper level workers, and finally all the finished jobs will be collected and analyzed by the first worker.  This is way faster and easier, also more precise to be done.
       I hope I can learn more advanced methods like recursion and then coding can be more faster and easier for me...

2015年1月31日星期六

Finally I Can Get Some Rest...But Wait...Terms Next Week!!!

Today is the last day of January 2015, it is a Saturday.  It was been really a busy and tiring week: Monday's ECO100 term test; Tuesday's CSC165 quiz; Thursday's CSC148 Lab and also due date of A1; and also yesterday's CSC165 A1...  

It seems I can finally sit down and take a deep breath for now, let all of those stuff go away...  But wait, TERM TESTS OF CSC148 AND CSC165 ARE COMING NEXT WEEK!!!!!!


CSC148

For CSC148, this term we are still dealing with Python.  I have talked to some of my classmates, and they state that they are not sure what we are really learning after 4 weeks.  We have learned Class stuff and this week's sum_list but how can the professors make a term test only based on these two things?  I googled out last year's CSC148 term test and I am now reviewing it, and I really hope going through this sample test will help me do well on my real term test.


CSC165

I never took lectures about logic studies, so CSC165 is a new starting point of my study, especially for logic things.  We have already learned set notations, logic notations, and proof this term, the test is not going to cover proof but I still need to review and get prepared for it.  I will study both the course notes and the lecture notes tomorrow.

Hope I will do well on those term tests next week...Fighting!!!

2015年1月25日星期日

Why Geeks Should Write?


As a programming rookie I sometimes find that is very hard to begin, or get stuck on a 'simple' task for a really really long time(I got stuck on A3 last time for almost a whole week).  However, these questions are not the ones that bother me a lot.  Instead, what really kills me is the Python language's docstring/doctest and writing format.  In general, my writing style is not that good, and I know if I do not overcome this flaw of mine, I will be in a huge huge trouble in the future.  And this is the reason why geeks should know how to write.

Why Geeks Should Know How To Write?

English is not my first language, which means I cannot communicate that clearly or organized.  When it comes to programming in English, I may also feel really uncomfortable or powerless because I cannot write down and explain my thoughts to others clearly even if I have a clear and powerful thought.  Writing has always been considered as one of the most basic and fundamental skill of a person, especially geeks because we geeks write codes for others to use.

As Joel Spolsky states in his Advice for Computer Science College Student: [The difference between a tolerable programmer and a great programmer is whether they can communicate their ideas.]  What if a programmer's code is in a mess and nobody else could understand it, no matter how brilliant this code is, just because no one can understand it, then this code languishes; and what will happen to that programmer?  He will get fired and also loses his value.

As a outstanding programming geek, he must be great at writing.  And once he knows about how to be a convincing writer, his code will also goes up on a stage.

Why Geeks Should Write A Lot?

Nobody is born to be successful, and no body is born to be a successful computer scientist: practice makes them success.

As programming geeks we may face thousands of bugs and failures.  What should we do?  Give up?  That is not a wise answer.  A problem occurs, deal with it; a bug pops out, debug it!  Everybody faces different failures in their life, even the great ones: Thomas Edison tried over 1600 different materials for his filament before he found the suitable carbonized bamboo filament that could last over 1200 hours.  What if Edison did not persists in his 1600 experiments, and gave up after 100 failures?  Maybe we are still going to light up a candle when the sun goes down every night.

Failure is not terrible.  Mark Dalrymple keeps his own logs for debug.  I believe this is a great suggestion because once a geek write down his failures and review them every now and then, when the similar bug comes out in the future, that will never bother this geek anymore.  Also, if a geek write a lot, he will find that lots of things in computer science are connected, that is really a good thing isn't it?

 To sum up, writing clearly is a necessary skill for all of the computer geeks, not only because he can write down fancy codes, but more important thing is he can share his thoughts powerfully with the other geeks.  And when this geek gets stuck, or when he faces failures, he may also find some help from his massive writing history because practice makes perfection.

So, Let's Write Geeks.  Shall We?