2015年3月11日星期三

Week 6 - Queue & Stack - Your summary of Object-Oriented Programming concepts

Personally I think this part is used to be helping with our new class set-up, as well as the lists of any object(list itself included)




We've tried

Week 7 - Tree =w= - Recursion

Since we starting learn about Recursion,

I feel like my logic broke on such thing.

Recursion - my understanding is - a function that keep calling itself until it goes through every single item in its parameter'.


======================================================================


Here we got a lab problem that is tree.py
it is hard to understand without given the diagrams.

*(Yes I finished tree.py first and then reading the given pdf......)

But, with such diagrams, it is really easy to understand what we were asked to do.`


====================================================================

I know that Recursion is such thing looks like:
(*)
    if len(t.children) == 0:
        return []
    else:
        return [t.value] + gather_lists([list_interior(c) for c in t.children])


But I would rather to know does codes like this called Recursion as well?:
(**)
   if len(t.children) == 0:
        return []
    else:
        l = []
        for c in t.children:
            a = list_interior(c)
            l.append(a)
        return [t.value] + gather_lists(l)

==================================================================


I found that it seems hard to me to write a recursion (*)with out recursion(**), 

so overtime I found that I can't write recursion(*), I chose to write it in form of recursion(**) first, 
then trans it to recursion(*) form.

Week 5 - Tracing Recursion

We just had the easiest lab quiz for this semester LOL!!!

tracing is such a thing you only need to:
 - copy the correct part of the body of the function
 - use the given parameter
 - record the outputs

then do it step by step.  


Easiest part is the part easiest to make mistake,
so I have to take care of such () brackets, 
error caused by brackets may effect the result of the recursion.
that is, what it returns.








2015年2月1日星期日

Week4 - Assignment #1 DONE!!!!!

We just finished our first assignment and I hope we did it well.

In the first few weeks, we mostly worked on Class and Subclass, since I just finished CSC108 last semester, this seems not hard to me, but for those people who took CSC108 earlier, this seems to be much more harder.

I met some of my friends who take CSC148 this semester during our lab, they mostly took CSC108 2 or more semesters earlier, so they does not really remember the features of any type and the methods to use them.

Compare to the 2-hour-lecture each week, I'd rather to work on labs, My idea is working on a problem always earn more than working on the given solutions.

======================================================================

There is one more thing I'd rather to leave it here, it is about NotImplementedError and raise

We have not specifically learned about these two things but we are using them.

I googled about these two but it did not show as much as I think I need.

I do really want to know when will we specifically learn such errors and about raise

2015年1月22日星期四

Week 3 - Why geeks should write?

I do really want to learn programming since I was in Grade 5, while I just started to play a cute online RPG game which is called MapleStory, a game with lots of bugs.


I don't like bugs, since I was little and I don't know much about computer, I tried hard to complete all mission quests for earning a great equip, but others may get lots of this same equip by utilize the bugs.

This caused my interest in bugs and then programming.



I was really happy that I could come to UofT for studying Computer Science, but the worst thing in the world is I still has to improve my English in International Foundation Program, which teaches me how to write and read articles, listen and take notes,  as well as ask questions during the lecture.


It was horrible. I'm not good at writing, and as an international student, this is the reason I have to go to IFP. So I was feeling so bad during the last year because I think this is useless. I'm okay with listening and speaking, and I don't think I need to write and read a lot while I'm studying Computer Science.


I kept this thought till I started my first year last September.
Till I chose a course notated CSC165
Till my prof is called Danny Heap
Till we've been told we have to write sLOG each week

As the matter of fact, I don't want to write such sLOG, I hope sLOG worthless and I believe it is true.

Till I found CSC165 is the only non-A course on my transcript.

my GPA would not be 4.0 anymore.

😢 I sent a email to Mr. Danny Heap, and asked about weight of sLOG.

😭😭 Then I found I gave up 8% by keep my sLOG empty.

------------------------------------------------------------------------------------------------------------------------

Most people thinks programmers are geeks, their language is no more English, Mandarin, Spanish, French, or others, instead by Python, Java, C+, etc...

Those people is kind of not good at communicating and somehow they would more likely to stay home with their computer. And unluckily, I am now becoming one of them.

Even I still don't think geeks like me should write...
I have to say yes we should write though...
The fact is I got the same prof as last semester and he asked us to write sLOG each week again.
And I do really want that 8%.

Writing is somehow important to Geeks, while it would be marked as part of grades.

-------------------------------------------------------------------------------------------------------------------------

As the matter of fact, writing is important, it would keep your ability to explain things clear and communicating.

But I don't like Writing.    So it is not important  😄

But But I need the 8%,     So it is still important 😭

----------------------------------------
-------------------------------------------------------------------------------------------------------------------------


It is still a beginning of a new semester by now.  Things we are learning is not that hard and mostly based on CSC108.

I didn't find anything that worth to be shown here, unless it's about the quiz during our lab.

We should write it on paper...
I did not finish it last week,  because I was too slow.
I hope I could make it this week.  that is -> TOMORROW.



2015年1月6日星期二

Week 1 - Get Started!!!!

Just got a Macbook Air with OS X as the system, this is totally different with Windows7 and it is hard to get used to this new system. Generally people would meet problems during this period, so do I.

Getting a new laptop for studying, obviously I should install all programs for studying that I need on it.

I will analyze the problems I met here with pictures and explanation. For remind myself or answering other's questions.









1. Can not open the file you just download for install a program
  What to do:

click on the setting icon:
security and privacy:

the second part of the page is about downloading programs, in this case, check the 3rd one to give permission for all programs you down loaded. or click on the only bright icon on your page to allow the installation of your program this time.

if you want to check the 3rd choice, click the lock on the left bottom  corner and type in your password to bright the choices up.






2.How to Install Wing IDLE?

What to do?
EASY!!! click on wing 101, move it towards the Applications folder. DONE!






3. Have a Good Day




Zhimo Ye 
January 6th, 2015