CGI & PHP Enhance your site with CGi, PHP and ASP scripts

  Subscribe via RSS

  Follow @XavierMedia

Lecture 9 | Programming Methodology (Stanford)

July 25th, 2010 by CGI & PHP.com


Lecture by Professor Mehran Sahami for the Stanford Computer Science Department (CS106A). Professor Sahami introduces 2 new concepts, and he shows the class how to combine the previous topics and lectures together. CS106A is an Introduction to the engineering of computer applications emphasizing modern software engineering principles: object-oriented design, decomposition, encapsulation, abstraction, and testing. Uses the Java programming language. Emphasis is on good programming style and the built-in facilities of the Java language. Complete Playlist for the Course: www.youtube.com CS106A at Stanford Unversity: www.stanford.edu Stanford Center for Professional Development: scpd.stanford.edu Stanford University: www.stanford.edu Stanford University Channel on YouTube www.youtube.com

Popularity: 17% [?]


Subscribe to new posts from this blog
You may also be interested in...
Lecture 28 | Programming Methodology (Stanford)
Lecture 2 | Programming Methodology (Stanford)
Lecture 1 | Programming Methodology (Stanford)
Lecture 3 | Programming Methodology (Stanford)
Lecture 6 | Programming Methodology (Stanford)
Lecture 13 | Programming Methodology (Stanford)

25 Responses to “Lecture 9 | Programming Methodology (Stanford)”

  1. Entropy56 Says:

    @kyrdsin You're right.

  2. kyrdsin Says:

    @Entropy56 Uh well, actually it should be counter++ because if you do ++counter the value gets incremented before being returned. But you're right about not having the need to create a temp, but I think Prof. Mehran did that just to illustrate it clearly.

  3. bearhuntaa Says:

    @jellybellies132 read it now, and code what these lessons and the book teaches you at the same time.

  4. jellybellies132 Says:

    @bearhuntaa Head First Java will it be better if I read it now/after/during this course?

  5. kstahmer Says:

    31:54 Stanford swimming, Stanford swimming, Stanford swimming Yes, it's true: Stanford looks forward to winning their 29th-straight Pac-10 Men's Swimming Championship. Yet despite that, I would have preferred the Stanford Women's Swimming team running in Speedos through Mehran's class.

  6. mynamegoeshere10 Says:

    @sharpnmild i agree

  7. Entropy56 Says:

    The fact that the teacher had to tell the class that the word, "stud" was a student and not some other common slang word, should have been a red flag that his name was a poor choice. Don't make the user of your code have to guess. Your name choices help document the code for future maintenance and readability.

  8. Entropy56 Says:

    At 49:50 he creates an instance named, "stud" of a class named, "Student."
    Naming the instance, "stud" is bad practice. Spell the complete word for clarity. Since Java is case sensitive, it is preferable to name the instance, "student" because there will be no conflict. Classes should be defined in Pascal Case, and naming the instance using Camel Case makes for a natural association.

  9. Entropy56 Says:

    At 19:32 the professor didn't have to create a temp variable. He could have returned,

    ++counter

  10. sacredgeometry Says:

    p.s (there wasnt room in the box)

    as has been said try it out for yourself download eclipse and test what he is saying example by example, experiment …the worst that you can do (touch wood) is have it not run or crash.

    the IDE will provide error messages which will explain why its not working and you can google search them to see what they mean if not self explanatory.

    Keep at it, it gets easier :)

    peace

    Brian

  11. sacredgeometry Says:

    take your time, the best advice i can offer is learn from lots of different great sources on 3dbuzz there are amazing c# tutorials (the languages are very similar) which goes over all these concepts, they are unfortunately not free but the secondary explanations of the same concepts in my opinion helps to reinforce the learning. If you are very confused, go back and dont progress until you understand. pause and use google if theres a specific thing you dont understand.

    peace

    Brian

  12. bearhuntaa Says:

    when u do the assignments, how do you know what methods you can call that are built in..like the acm library console program library..i dont see it in java api

  13. bearhuntaa Says:

    @sharpnmild This is what you do. DL or Buy other java books. Have multiple sources and read the same concepts in each book. You will get multiple perspectives on each idea and it helps you put it all together. After that, learn by programming. I recommend Head First Java. It's a little unconventional, but it really helps you understand the ideas behind the language.

  14. whattheima Says:

    @sharpnmild Go back to the bits you don't understand (where you start to get confused) and make sure you understand that part before moving on again.
    The best way, at least for me, to learn something, is by testing it out by myself, I recommend that you do what he is doing in the videos whilst trying to understand what you are doing, not just typing in what he is typing in. And also try adding more onto the stuff he does into the video,using the stuff you learnt earlier.

  15. sharpnmild Says:

    I'm so lost. Java is so complex for me…I'm a newbie, started with lecture 1 and around lecture 6-9 things are getting so confusing…what do i do???

  16. Rasmusorum Says:

    is there a big difference between the pdf version of "the art and sience of java" book and the full original version? Will i be able to complete the course and understand all the details with the pdf preliminary draft of the book, or will i miss alot of detail if i don't read the final example of the book?

  17. greenscollection Says:

    are the handouts available as well ?

  18. RichaPandey09 Says:

    Thanks a lot Stanford & Prof. Mehran… Your lectures are of great help for people don't have resourses to learn java.

  19. KillinGnatsies Says:

    "dogs and cats are sleeping together, everything's out of control!"
    Great teacher or greatest teacher?

  20. mvszao Says:

    Now i now how to program Karel the Robot, I have good java programming skills and I only on lecture nine! Thank you Stanford and THANK YOU Mehran, I'm a new big fan.

  21. mvszao Says:

    @Bulacanos yes, he is so lovely! In previous lectures he said people are objects, when he explain classes, superclasses and other stuff!

  22. mallithemadman Says:

    poppin candy at the last man… man! thats a cool reflex… at situations like all i can do is to stand erect and keep watching

  23. hmk984 Says:

    yes we are all the OBJECT as we are all inherent by our CLASS/ SUPERCLASS ( Adam and eve)

  24. hmk984 Says:

    i could not dissolve this lecture i tink i should go through the lecture again

  25. Bulacanos Says:

    Love what he says at 11:00
    "You are an object, most things on an object are private."
    Humans are objects too!

Leave a Reply

Powered by WP Status.net plugin.


Fantastic web hosting at cheap prices
© Copyright 1996-2012 Xavier Media®. All rights reserved.
Contact us | Support/help | Privacy Policy | About Xavier Media
The World According to Xavier | Powered by Yahoo! Answers