Lecture 2 | Programming Methodology (Stanford)
ฝัง
- เผยแพร่เมื่อ 24 ก.ค. 2024
- Help us caption and translate this video on Amara.org: www.amara.org/en/v/0N0/
Lecture by Professor Mehran Sahami for the Stanford Computer Science Department (CS106A). In the second lecture, Professor Sahami introduces Karel and shows the commands associated with the program.
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:
th-cam.com/users/view_play_list...
CS106A at Stanford Unversity:
www.stanford.edu/class/cs106a/
Stanford Center for Professional Development:
scpd.stanford.edu/
Stanford University:
www.stanford.edu
Stanford University Channel on TH-cam:
/ stanford
I like this guy. He seems like a good guy. When I'm watching I like to pretend he throws me a candy every once in a while. I like candy.
+Vito Polizzi Haha wauw, hilarius comment
wtf lmao
You'd love John DeNero at Berkeley as well. The guy's hilarious and has the best lecture notes I've ever seen for CS61A.
Took this from the Stanford website.
00:25 Handout Information
02:31 Section Signup
04:06 Karel Commands
09:59 An Algorithm vs Program
10:31 Syntax of a Karel Program
18:53 Running a Karel Program
21:06 Creating Methods
25:04 SuperKarel
27:51 A for loop
30:37 A while loop
33:04 Karel Conditions
34:23 If Statement
39:26 Putting It All Together
Djonah Stag thank you so much
World need guys like you. Thank you man.
You're the best!
Link pls? And thank you
I want to kiss you
Finally, a programming professor that doesn't begin with a "Hello, World" program. Java revolves around OOP programming and its best to start with it.
Well this guy is a way better teacher than my Java professor in my first year in college. My first teacher was so bad I dropped the class. This guy makes it so much easier to understand
Hello online stranger from 8 years ago
I would never expect a guy who looks like that to have that voice. He looks kind of intimidating without sound
was trying to watch a class from MIT on computer programming and had to turn it off. But this guy is awesome. I actually think that I can learn something listening to him.
I would absolutely be so previleged to learn from this man who is teaching. He is an absolute amazing teacher that connects with students and knows how to teach.
8 years later, and this lesson is still helpful.
10 years later now :-)
@@forest3064 even more
12 years..
Wolverine X m
M
M
I used this series to start my engineering career back in 2010... went back to school in the interim but am an Android engineer now.
Watching again with great nostalgia
"My throwing is case-sensitive as well, and evidently, that was the wrong case"
lol, love this prof.
Those videos are brilliant! You feel so encouraged during (and after) watching! Thanks Mehran and the team who made this video.
Prof Sahami is in my opinion the best instructor I've ever watched. His methodology of teaching makes CS and programming should inspire undergraduates students to keep working. Thanks professor
That was a great reminder of Java. Thanks to Pro. Mehran and Stanford Computer Science Department of the Stanford University. Cheers,
at 30:30 "turnLeft(); 6 times and it's still the equivalent of turnRight();"
Actually, this is the equivalent of turnAround();
turnLeft(); 7 times is the equivalent of turnRight(); or any (4 x n + 3)
I just started listening to these courses and this instructor is excellent. Mr. Sahami is no salami. Very entertaining, never boring and great Java content. Thanks for putting these on youtube because I could never afford Stanford.
*love,, love,, just love the way Sanford proff. teaches*
considering the student at just starting in programming,,
the way proff. teaches is like:
from middle ->>> higher level
& in the way will cover the basic foundation
this teaching style is what i miss in my college.
Who's still listening to this in January, 2025?
yeahhh
Sure
it's March actually, but yes
@@aquavitale3551 March it is
are Stanford students still studying this programme or has it changed?
Oh hey Quora sent me here
haha same
me too :D
Hi fellow Quorans :D
Hey!
Quora sent me here, too
İf i had a teacher like him, i would have gotten all the A's in programming. Such a teaching talent.
What a great resource to have access to for free and a great professor to boot. Thank you Stanford.
14 Year Later Still Best From Most Of The Videos On TH-cam 😊
"Karel, being a good democrat, knows how to turn left." 😂😂 Savage.
The MIT professor also makes a political joke about lefts on his Intro to Programming course
12 years later, in 2020, he'd be out of uni or at least punished for that. The world has gone crazy.
guys im sitting here listening to this in my room all of a sudden a snickers flys through the air, this fuckinng mad lad lmao
And if you go left far enough you end up on the right! I loved that.
Very engaging this prof, small wonder he's a prof at Stanford.
I love this guy! A great professor is gold!
This makes me want to go to this college and take this course so fucking bad
I want to have a teacher like him, he explains things really good
Thank you for posting. Some random old guy trying to learn Java. Watching videos online produce crap results typically as I look at it with 3 heads. These videos are good cause they explain beginner basic stuff that other YT videos don't explain.
I'v just started following this course, I just want to say it great to be here and thank guys for this chance to learn and share knowledge.
Student: why is the background white?
Professor: Eclipse is made that way, but yeah good question. here's a candy.
lol
Dumb questions before search engines were too popular. Flip phones and bad data plans time.
Eugene Levy knows how to keep things interesting
Great video. I'm 8 weeks into my local programming class and this lecture has already taught me more about programming. Plus Stanfords teacher is 100% better than mine.
i went to westwood and the teachers werent so great i didnt get programming, but now i can understand it just by watch the first two lectures.. Awesome
anyone who is 18 or less and you are thinking of learning this stuff along with the lectures from MIT on computer science, I encourage you to do so and keep at it. i am 26, I took at the computer classes in High School Grade 10 finished them thought i knew everything and stopped caring to learn about computers. now I am back 8 years later learning from scratch again.!!!
8:02 start
Im on Java course right now and this is better than materials ive got and looks so much eazy compare to the books and this Karel the robot is great staff to learn. Great Channel and teacher
I just came here from Quora and now I'm 15 minutes in, and I wasn't previously interested in computer science until now. This guy is incredible!
This professor is hilarious and I love him.
Professor: "What is the french two words for turning right?"
Students: inaudible
Professor: "Exactly!"
Amazing Teacher. Thanks for sharing !
He is really a good Prof.i must admit it i am from Germany studying mechanical engr. love the way of his teaching style, I wish he is in my Hochschule i would finish all his lect. probably... gaining so much. :) Thanks Prof u made life easy (Y)
Best teacher ever...And yes i learned BASIC in high school in 1985, easy language, this is proving a little harder for me at 45 yrs old...But i this teacher keeps me involved. Being on linux i am finding no support on any of the stuff like Standford Eclipse, ZERO HELP..
00:00:25
Handout Information
00:02:31
Section Signup
00:04:06
Karel Commands
00:09:59
An Algorithm vs Program
00:10:31
Syntax of a Karel Program
00:18:53
Running a Karel Program
00:21:06
Creating Methods
Thanks man
Thanks Quora!
amen
Yea.i also came from quora
I've already done this sort of thing, at my own uni, but I find this great anyway! This guy seems like a great teacher!
This must be the coolest teacher ever, its like watching stand up comedy while learning!
Great course!
Cool lecture! Now I'm really starting to learn programming! Cool!
Stephen dela Cruz
How's it going? Did you learn?
Stephen dela Cruz
Starting mine 27/09/18
@@zara3837 so how did you do so far?
35:44
He predicted it! The Biebs!
Thanks for your videos and effort to make my life complete change I will be following your lectures and thanks again.
Excellent course. I envy the students who have this professor. When I was a student, a gazillion years ago, I had very few profs as good as Dr. Sahami.
BTW, the Java-like language he is using reminds me of Logo, which is a LISP-based language that I used to teach to kids in the early 80's.
That moment when you reach lesson 2 and you understand that you need eclipse instead of intellij where you failed to run Karel the robot. You install Eclipse - you run the robot - aaaaand it's blank. You reinstall JDK and all the other crap you don't understand yet - and still no robot running. No sites or forums provide with the right solution - and the worst of it - I have no freaking idea what the problem is!??! Anyone feeling the same?
Do all professors in stanford throw chocolates at students?
2 years. dam
2 weeks. dang
an other 2 weeks boom
and 20 min
eKo HaMZa another 20 min.
This is a nice video of Karel the Robot and the programming. If we want Karel to tell him what to do, we can put the commands, few lines of source code, etc. So far, this lecture is fairly easy to understand.
stanford is awesome. i'm taking java training in a few weeks and this is an awesome prep course for me :)
Is there any way to improve the resolution on this video ?
kevo vokez The three dots->quality
This makes me sad. I learned in one Stanford lecture video what took my professor one semester to teach. I challenge future viewers to send their professor links to TH-cam videos that helped them, instead of simply completing a 6 question end-of-the-semester professor review.
Wow.. I'd never thought about it this way
I wish I had an instructor like Mehran in my university years! Great Lecturer.
Very good lesson! Finally could understand the difference between classes and methods! and a couple more things
2019 still helpfull
I'm interested in learning java programming, incident to Minecraft (which is written in java). I am finding this course accessible if challenging. (I am a lawyer, so I have very different training.)
This is great! I wish I had teachers like him in Romania, Thank you Sir!
amazing series of lectures.Taking advantage of them as quick as possible.THANK YOU STANFORD
Is it possible to download materials from www.stanford.edu/class/cs106a/ if I do not have Stanford SUNet ID?
see.stanford.edu/Course/CS106A
try this
Thanks mate
Thank you!
thanx bro....
Where can i get the karel library
Shahar S did you find it out?
I never found it
see.stanford.edu/Course/CS106A full course
I wrote the Karel the robot program with java. It doesn't have any GUI and shows output on terminal since I don't know how to make GUI. It's not a perfect program because I don't know half the things about java but it works, it has all the functions that were shown up to this lecture. And I'm happy. :D Also, enjoying the lectures a lot.
@AnhadJaiSingh: AFAIK, you simply extract the eclipse archive for your platform and run eclipse.exe. You can put a shortcut to the exe on your desktop, since there is no installation procedure that does that automatically. Now you can import any assignment files and the acm starter project (which you'll need when you get to lecture 4). Anyway, there is a pdf handout "05-Downloading Eclipse" which you should read.
where can I get this course reader? 29:51
web.stanford.edu/class/cs106a/textbook/karel-the-robot-learns-java.pdf
web.stanford.edu/class/cs106a/
Who is watching in 2022
2024
This guy is a really good teacher! alot better than most other Stanford tutors
@Dudehowsit it is a naming convention. Methods start with a lower case letter, and instead of a space you just begin the next word with a capital letter.
A class name is started with a capital letter e.g (ourFirstCarolProgram)
Also variables and objects of classes start with a lower letter. This is because it makes it easier to read other people's code if they all look similar.
Will Karel the robot eventually become self-aware and destroy humanity ?
Robots cannot become self aware.
Yes---and now we know our steeples won't protect us!
The second part of this course titled 'AI Karel takes over' :p
first lesson 2Million views, second lesson 1Million views, 3rd lesson 500k, 4th lesson 450k, 5th lesson 340k, 6th lesson 248k, ...., 14th lesson 100k, ...,28th lesson 100k views. One out of twenty. Will you be the one?
This so great. by the time i finish all of them.. i will learn java.!! thank you so much just form the first 10 minutes i learned alot!
Love this free courses! Thanks Stanford, thanks Professor Sahami!
yeah I agree
I mean my lecturers so far have been awesome
but this guy really takes it 1 step further
I'm a second year comp sci student and my professor doesn't even talk like this.
This professor is adding colour to his speech which makes it a lot more interesting and his definitely enjoying it as his doing it.
I'm learning way more on here than i am at my uni Lol
After 14 years it is still useful
🥰🥰🥰
@AnhadJaiSingh: Go to the cs106a link in the video description, then click the Old CS106A Videos link under cs106a resources. Here you can download the whole course package for convenience. It includes Eclipse together with everything Stanford related. Though you'll have to import assignments yourself.
what a great teacher... I would love t have a teacher like him when I get to university...
God bless this man. Already learned so much! Thank you.
@Dudehowsit it's cold camel case. Ususally, the first letter is undercase and an action (like: put, delete, read, open, create, update), the second is a noun with the first letter uppercased (like: Entries, Database, Beeper). e.g. deleteComment, replyMessage, updateFriendlist etc
If thewindow with Karel isn't opening up to run your code, please do the following in your Stanford version of Eclipse: Project---->Properties--->Java Compiler--->Make sure "Enable project specific settings" is checked---> Select 1.6 as the version under JDK compliance. Your code should now run and an external window should open to let you start your program! Vote up to help others!
This videos are really good.Finally found a good place to learn Java.
That is just amazing I understand know what does beeing at standford University mean
Thanks a lot for sharing
The OurKarelProgram extends the Karel class, meaning that it inherits all of the Karel classes methods. The program he made just overrides the original run() method that was located in the Karel class.
@sauzy except that he didn't mention it in the context of turning right twice (turn around) but said that saying turn left 6 times would yield the same result as a single turn right. (i.e. 90 degree rotation to the right does not face the same direction as 90x6 to the left)
I so wish there was a way to ask questions to Prof. Mehran, or to students/TAs in his class... I wouldn't even mind paying for this.
Professor Sahami ,a great professor !
Since Im just trying to review, I find speeding the video up so good :D Saves time and learn faster :D
@shaoranrch Agree, and it is good way to make students talk and ask questions!
I have never experienced a Very Powerful Ally being Very Powerful for such *bewilderingly inscrutable* vibe-reasons, marvelous. I cannot figure out why I would choose this guy to hide behind every time in a room of surgeons and startup founders but I definitely would
"articulate, confident, opinionated, clear through-line of thought, dominates the room..." yes but the surgeons and startup founders would all nominally fit that description too! I think it's the 'controlled dynamo' thing. You get the sense he'll never stop, but it's all on rails, all *in service* of some inner thing.
this lecture is better than all the tutorials online.
I enjoyed the first class a lot. I hope this is as good!
Their was a handout they were supposed to read, and it explained everything he wrote up there, he's just re-explaining it, more or less. I can say I understand it very well and have very little former programming experience, and my experience is more like algebra, and i'm sure every student there has done algebra before. He's a fine teacher.
Not a single one of my college professors was this upbeat and interesting.
Bloody amazing, very good teacher with a sense of humor!
@wipedowt It's simple, in the description, click the link under where it says: "CS106A at Stanford University" then on the right side of that website there are quick links, click on "Karel Book" and then simply scroll down to page 18." Let me know if Java's getting easier for you with these tutorials, just to see if I should keep doing them.
gonna watch all 28 of these videos.... love them
Excellent!
I am studying Mechanical engineering but this is interesting!
so the version of eclipse i have on my Windows 7 PC at home - would need to be uninstalled for karel to work ?
I just have to say the way this guys teach its amazing, he give you the cookies when you ask the question, my teacher hit us the piece of chalk every time we would ask the "stupid question" you can figure after a while no one ask the questions.
Does anybody know where is it possible to download the ZIP-starters for the projects without being asked for Stanford SUNet Id?