Programming Method course learning experience

Source: Internet
Author: User

Today, I finally finished watching the video of the course "Programming Method". From the download of the course to now, I have been studying it on and off for nearly a month. Every lesson has been carefully read, it would be nice to sum up with one word!
The course code for this course is cs106a, which is a basic computer programming course. The language used for the lectures is Java, but the course is not limited to one language, I also talked about a lot of underlying computer knowledge (such as memory stack management), some software engineering ideas, and finally some searches and sorting. The teacher is very good, the instructor's speech speed will be very fast. It's good to get used to it. The teacher is humorous. Basically, every class will have a smile. The mantra is "Yeah, that's the life in the city. "Then pay attention to the Code. In short, it is a very good course! It is very suitable for students who only want to improve their programming skills. If they are interested, they will try again.
Books used in the course are available on the Internet, and videos can be directly stored on the website of Netease open classes. However, I did not find my homework after class. It should be nice to do it.
This course is a basic course for some computer courses, such as cs106b and iOS development. It is quite necessary for cainiao like me.
The following is a note:
Write programs for people to read, not just only for computers to read.

---- The first major software engineering principle.


Think about the generality of the program. generalize your program in a way so that it's using in same sense, general principles that will apply to any world that meets your specifications.


Each method solving one problem.


Most of your methods will proably be some where between one and your teen lines long.


The names shoshould describe what the method is actually doing, what problem it's solving.


The important thing to think about in terms of a name is make your name descriptive.


The general rule got to remenber is give variables an intial value when it makes sense.


Most numbers that appear in a program actually have some meaning and you want to have them assigned to constant.


It's generally a bad time to have multiple of breaks inside the loop, because it makes it difficult for programmer to figure out.


Stack and heap
Local variable/paramater-> stack (INT, Char, double)
Static variable-> static
Danamic variable-> heap (new object)

Debugging principal
1. be systematic.
2. qustion your assumption.
3. Be criticle of your code.

4. Don't panicl and eventually you get there.


It must be interesting to discover that foreigners are doing things! Fun can really let yourself take the initiative to learn, fun can have motivation, compared to domestic .... in fact, Chinese students are no worse than foreign students. There is a project demonstration of students in the course, I think the program I wrote in the "computational Structure Mechanics" course with another student in the class was definitely better than the one they thought the most, but what we lacked was a better environment.
The next step is to fix cs106b in march!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.