Lecture by Professor Mehran Sahami for the Stanford Computer Science Department (CS106A). Professor Sahami finishes his lecture on the program Karel by discussing common errors, comments, and advanced instructions. 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
25 Comments Already
I’ve just finished assignment 1, and I have to be honest: watching Karel move around his world until he ends up in the right place – one of the better feelings.
If you browse “camel case” on the Internet, you’ll see it’s ambiguous.
Some regard this as CamelCase, while others regard this as camelCase.
Why the ambiguity?
Well, the problem is:
Is the camel Bactrian or Dromedary?
@reddis58 yeah this guy is awesome… i’m learning more from him then my own teacher… thank god for youtube…. lmao
I Love This Video!
Great Lesson!
@Entropy56 – yup you are correct. He flawed on camelCase.
At 38:30 the teacher was wrong about Camel Case.
Camel Case is this: firstName
Pascal Case is this: FirstName
He also said that underscores are ok. No, they are not. That is old school. Underscores should only be used in rare situations. One exception is the underscore is used for member fields (variables) of a class where the first character is an underscore. Many don’t like them even in that situation and find they add noise to the code. See Best Practices.
I agree with Top Down Design, but often need to start at the bottom and make sure I can communicate with a piece of hardware first. So I’ll do a lot of research about the hardware and write some test applications until I can send data to the device, or make it do something. Once I achieve that, I abstract out the details and build a module that can plug into the larger application. Then I work from the top down.
@kylerocks122333
Already tried that.
@lolomgdude Google is your friend.
@achilles198585 lol.
Hit Ctrl+Shift+O. Maybe you forgot some imports and by pressing this key-combo in Ecplipse, it imports everything you need (as long as you have that somewhere of course)
I’m on assignment number 1, and when trying to call method like frontIsClear(), it says it cannot be resolved..in one of the pdfs this is one of the methods that can be called..my class extends superkarel as well..wats going on?
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?
Can anyone link me to the course handout with all the methods for the Karel Robot? The extra ones in Lecture 2 weren’t included in ProgrammingMethodology pack.
@Nqorule336 man, in first lection there is a link
were can i get them. pliz send me a link
@zlink15 The best thing to do is act out the steps by hand and write down each decision/action you make. Then try to write the algorithm to get Karel to repeat what you did.
I love the way he refers to infinite loops. I never rationalized the shampoo instructions as an Infinite loop….
Thanks
melted processor stops the infinite loop
(dont actually go to this school)
is any one eles doing the karel assighments. im doing the stone mason one with the pillars. is it just me or is that thing hard been on it for 2 hrs now trying to get it perfect according to the conditions given.
also great teacher/idea
since im deploying next year im taking all of my classes in 7 week long semsters to fit in as much as possible before leaving. that being said its easy to fall behind. being able to watch these vids at home helps alot.
Thanks to Mr Prof. Mehran and Stanford. These lectures are really very helpful for the students learning java. It’s a great help for us.
You need to download the assignments as well. Then go to import project under the Stanford menu. When you run the project, you load Karel and its world.
Leave Your Comments Below
Powered by Yahoo! Answers















@Entropy56 “Best Practices”?