2015年3月16日星期一

Object-Oriented Programming Concepts

Object:
It is a program related state and behaviour.

Class:
A class is a blueprint or prototype from which objects are created. So it is a main program that tells what this whole program works and wants to show. It intentionally focuses on the basics, showing how even a simple class can cleanly model state and behaviour.

inheritance:
It provides a powerful and natural mechanism for organizing and structuring software. Class "inherit" and extend from superclass-- main class. And this is how we create subclass.

interface:
When a class implements an interface, it provides the behaviour published by that interface.

package:
It is a namespace for organizing classes and interfaces in a logic manner which will make the program easier.

abstract data type

The abstract data type is a new thing we learnt this week. It is  a mathematical model for a certain class of data structures that have similar behaviour. The stack is a specific thing we are getting to. There are three basic functions we are using usually, push, top, pop.

2015年2月26日星期四

recursion

As the class processes on, we began to learn algorithm. recursion is a really interesting way to write program. I have found that we could use some simple but talented way to rewrite some complex code. When we use recursion, only few codes we need to write, and computer finishes anything left. it is really a new experience for me to write code. And this algorithm really gives me a new way to think how we should write code and how computer could do.

It's different with C or pascal, I found out that Python is really a better language. It's convenient and clear to show and let us understand how to write and figure out how computer works. But sometimes I still have to figure out these three different language. I often mass them up and make my codes incorrect. It's so lame.

2015年1月29日星期四

Slog week 4

This week and last week we worked on the Class, which it is a little bit confessed for me. Also, the assignment is too hard. I think the most difficult parts of this assignment is to keep format that prof asks right and write description and doctest. These things are too detail that I barely can not cover them all. It wastes my a lot of time to correct these useless details and make my code paragraph good.

The CSC 165 is also becoming harder and harder but the quiz is easy I think. On the other hand, I really think that our TA teaches better and clearer than our prof. I have found that our prof is nervous in the class and sometimes she could not make her mind and way of speaking clear. Maybe it's because of my poor English.

2015年1月22日星期四

Why geeks should write?

  After going through the first three weeks of studying CSC148, I found it is a very important experience for me to enroll this course as well as CSC165.I realize that computer science is a kind of field that practices people's way of thinking and coding at the same time. Furthermore, I found that to code or write by our own is a significant way to improve and understand the whole theme of CS.

During the last term while i was taking the CSC108, I did not have many opportunities to think a question and write my own code cause our nice prof has already done it for us. So that, I've learnt how to write code with python but I think my way of thinking did not improve a lot. This semester I found it that it would be really confessed and depressed if I just listen instead of coding by myself. I think the whole CSC148 is trying to make us think as the way of computer and CSC168 teaches how to do and think logically, while this is way more different than the CS courses I used to take.

On the other hand, I found it the description and dostest become more and more important. I still remember the first thing our prof told us that the code we write not only for computer but also for people. We have to write more, not just code, English as well. So I think it's a really great challenge to me but I will conquer it.