I've been watching these lectures for the past two days now they're awesome:) feel like i've done a crash course at Stanford Uni and saved 50 grand!! haha... I could watch these vids all day and i probably will:).
@PONY4LYFEHAHDERP Although it's easy, that doesn't mean an academic student shouldn't know this. And the speed of the lectures is certainly up to academic standards if you ask me.
Just wish my professors taught me like Mehran does, I just got clubbed to death with math formulas and proofs. Well, teaching CS was still in it's infancy back in the early 90's.
@jjjdeste Even if it is indeed, up to academic standards, I was led to believe that Stanford University was above standards, is it not? Just as implied, in i believe, lecture one, where the professor claims the students to be above average. Does this not mean that the academic standards should be brought up to the level of such BRILLIANT students?
All the math formulas that you've been "clubbed to dead with" you should have learned in grade school, or at least first year university math.
@PONY4LYFEHAHDERP Even brilliant students have to learn the stuff they don't know yet, I think these lectures are doing a terrific and speedy job of teaching this material to smart people who potentially don't know anything about the subject yet.
I AM talking about first year uni math. This course is first year too, right? I got straight A's for math in grade school, but was very disappointed to ONLY see math and virtually NO computers or programming at all in my first year CS.
@PONY4LYFEHAHDERP Dude this is just like basic stuff for people that have no prior knowledge of coding. He stated that in the first Lesson, if you weren't such a pinoy snub you would actually know that he also said that there's a course for adept/advance student "extreme" which is called CS106x.
@imorio His code contains one assignment operation, one arithmetic operation, and the return, whereas yours contains two arithmetic operations (slower) and then the return.
For the truly anal, adding one initial subtraction can save us one operation on each iteration of the method (and discard his extra line):
int counter = StartValue - 1;
the method then reads: { counter++; return counter;}
Correct me if I'm wrong though, as I only very recently began my foray into programming.
@fakexaveir There's a neat little trick you'll learn in Lecture 16, wherein you discover '++' is just a method which actually returns the value of the variable it is being called on before said variable was incremented.
Knowing this, you can simply write the function as follows:
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.
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.
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.
@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.
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
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???
@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.
@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.
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.
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.
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?
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.
^^ Nice to know that Stanford University was founded by ppl from Germany. I am from germany and was astonished to read german on the University Sign (the one with the Tree on it). It says sth. like: "Der Wind der Freiheit weht." --transfered to english--> "The wind of freedom blows." ;). Just if anyone was wondering what it means.
He needs to add a close brace before writing the method body! It's a really good habit to get into.
Phl3xable 1 week ago in playlist SU Programming lectures
@Phl3xable Most IDEs do that automatically.
pairalines 1 week ago in playlist Course | Programming Methodology
Comment removed
preeti7496 2 weeks ago
best explanation of the 'this' pointer ive found! top notch lectures mate
howroyd 3 weeks ago
"Yeah! Good Times"
jameskyle123 1 month ago
Comment removed
jackdentltd 2 months ago in playlist Course | Programming Methodology
wow.guys in speedos! i want to go to class at stanford!
chattychar 2 months ago
I've been watching these lectures for the past two days now they're awesome:) feel like i've done a crash course at Stanford Uni and saved 50 grand!! haha... I could watch these vids all day and i probably will:).
manchesternorth7 2 months ago 4
Can I touch your variables?
rmastiyev 3 months ago in playlist Course | Programming Methodology
Stanford Swim Team!
rmastiyev 3 months ago in playlist Course | Programming Methodology 2
omgb this stuff is easy how is there a university course on this
PONY4LYFEHAHDERP 4 months ago
@PONY4LYFEHAHDERP Although it's easy, that doesn't mean an academic student shouldn't know this. And the speed of the lectures is certainly up to academic standards if you ask me.
Just wish my professors taught me like Mehran does, I just got clubbed to death with math formulas and proofs. Well, teaching CS was still in it's infancy back in the early 90's.
jjjdeste 4 months ago
@jjjdeste Even if it is indeed, up to academic standards, I was led to believe that Stanford University was above standards, is it not? Just as implied, in i believe, lecture one, where the professor claims the students to be above average. Does this not mean that the academic standards should be brought up to the level of such BRILLIANT students?
All the math formulas that you've been "clubbed to dead with" you should have learned in grade school, or at least first year university math.
PONY4LYFEHAHDERP 4 months ago
@PONY4LYFEHAHDERP Even brilliant students have to learn the stuff they don't know yet, I think these lectures are doing a terrific and speedy job of teaching this material to smart people who potentially don't know anything about the subject yet.
I AM talking about first year uni math. This course is first year too, right? I got straight A's for math in grade school, but was very disappointed to ONLY see math and virtually NO computers or programming at all in my first year CS.
jjjdeste 4 months ago 2
@PONY4LYFEHAHDERP Dude this is just like basic stuff for people that have no prior knowledge of coding. He stated that in the first Lesson, if you weren't such a pinoy snub you would actually know that he also said that there's a course for adept/advance student "extreme" which is called CS106x.
BmCNinJa 1 month ago
@BmCNinJa No, it's called "Accelerated" xD
CS106A was taken so they had to come up with another letter for accelerated :P
Xcelerated
ShadowSky24 3 weeks ago
STANFORD SWIMMING! STANFORD SWIMMING!
VvLestatvV 4 months ago
WHY ISNT THIS VIDEO HD/HQ?! >:(
109talal 5 months ago 2
Comment removed
109talal 5 months ago
31:51 This is Why Stanford is one of the BEST University in the WORLD..
Thumb Up if You agree..
parthasawant 5 months ago
What the hell just happened there?!
Aaronichi 5 months ago
UseCounter program doesn't work...
kavanohk 6 months ago
1 person wasn't on the swim team...
pantellica051 6 months ago
@ZenDDavis Constructors are used to pass parameters into instances of classes just like passing parameters into functions
MyClass myCls = new MyClass(100);
If 'MyClass' didn't have a constructor that took an int I would have to declare the class then assign the int a value (for that instance);
MyClass myCls = new MyClass();
myCls.MyPublicInt = 100;
using a constructor forces you to assign the int a value when you create a new instance (which might be important for each instance of the class)
tlee01621 6 months ago
I still don't understand exactly what constructors do. Could someone help explain?
ZenDDavis 7 months ago in playlist Course | Programming Methodology
@ZenDDavis look up "Java Programming Tutorial - 17 - Constructors" from thenewboston on youtube.
paulfsherwood 7 months ago
That 1 dislike is the person that missed class.
MightyPhalus 7 months ago 3
I wish I found it sooner
TheOkham 8 months ago in playlist Course | Programming Methodology
sick Eclipse looks so much like Jcreator
TheMrRobdawg 8 months ago
Stanford Swimming~~~ haha
suke1031 11 months ago 2
This has been flagged as spam show
I‘m watching these lectures,seeking for friends,my twitter ID:caiyuhui
ramoncyh 11 months ago
This has been flagged as spam show
I‘m watching these lectures,seeking for friends,my twitter ID:caiyuhui
ramoncyh 11 months ago
I‘m watching these lectures,seeking for friends,my twitter ID:caiyuhui
ramoncyh 11 months ago
Salam
1. when running the Stanford class an object is being created(i.e an instance of Stanford)...
2. the "Stanford object" will reference the stud object that is created from class Student
3. the stud object is held in the Student class
~~~~~~~
is that right???
CallMeJAVA 1 year ago
imorio 1 year ago 3
@imorio His code contains one assignment operation, one arithmetic operation, and the return, whereas yours contains two arithmetic operations (slower) and then the return.
For the truly anal, adding one initial subtraction can save us one operation on each iteration of the method (and discard his extra line):
int counter = StartValue - 1;
the method then reads: { counter++; return counter;}
Correct me if I'm wrong though, as I only very recently began my foray into programming.
fakexaveir 7 months ago in playlist Course | Programming Methodology
@fakexaveir There's a neat little trick you'll learn in Lecture 16, wherein you discover '++' is just a method which actually returns the value of the variable it is being called on before said variable was incremented.
Knowing this, you can simply write the function as follows:
{ int temp = counter++; return temp;}
imh3r3now1 7 months ago in playlist Course | Programming Methodology
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.
kstahmer 1 year ago 6
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.
Entropy56 1 year ago
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.
Entropy56 1 year ago
At 19:32 the professor didn't have to create a temp variable. He could have returned,
++counter
Entropy56 1 year ago
@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.
kyrdsin 1 year ago
@kyrdsin You're right.
Entropy56 1 year ago
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
bearhuntaa 1 year ago
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???
sharpnmild 1 year ago
@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.
whattheima 1 year ago
@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.
bearhuntaa 1 year ago
@bearhuntaa Head First Java will it be better if I read it now/after/during this course?
jellybellies132 1 year ago
@jellybellies132 read it now, and code what these lessons and the book teaches you at the same time.
bearhuntaa 1 year ago
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
sacredgeometry 1 year ago
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
sacredgeometry 1 year ago
@sharpnmild i agree
mynamegoeshere10 1 year ago
This has been flagged as spam show
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?
Rasmusorum 1 year ago
are the handouts available as well ?
greenscollection 1 year ago
Thanks a lot Stanford & Prof. Mehran... Your lectures are of great help for people don't have resourses to learn java.
RichaPandey09 1 year ago
"dogs and cats are sleeping together, everything's out of control!"
Great teacher or greatest teacher?
KillinGnatsies 1 year ago 4
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.
mvszao 1 year ago
This comment has received too many negative votes show
yes we are all the OBJECT as we are all inherent by our CLASS/ SUPERCLASS ( Adam and eve)
hmk984 2 years ago
i could not dissolve this lecture i tink i should go through the lecture again
hmk984 2 years ago
Love what he says at 11:00
"You are an object, most things on an object are private."
Humans are objects too!
Bulacanos 2 years ago 4
@Bulacanos yes, he is so lovely! In previous lectures he said people are objects, when he explain classes, superclasses and other stuff!
mvszao 1 year ago
strings
v12345vtm 2 years ago
hes a cool dude
v12345vtm 2 years ago
this lecture uncoverd alot!
and wow i still can't belive i'm watching a full cs course of stanford in israel.
btw, isn't professor Sahami brilliant in the way he lectures? it's insane! stanford surely knows how to pick it's teachers.
thank you stanford for providing these videos to youtube, i hope i would find more CS courses besides 106a/b/x in the future.
propercoil3 2 years ago 14
What a great teacher!!!!
superjuice19 2 years ago 12
Lol at 31:50
webmessia 2 years ago 10
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
mallithemadman 2 years ago 2
This has been flagged as spam show
check this.learn report program generator
as400 - rpg . tk
MusicMan208DT 2 years ago
..."Stanford Swimming"...
djruckusx 2 years ago 21
good times:)!!!!
amightyo 2 years ago 7
This has been flagged as spam show
Share your programming thoughts, ideas, or questions with other programmers! tvlinkshare. com
heheakou 2 years ago
^^ Nice to know that Stanford University was founded by ppl from Germany. I am from germany and was astonished to read german on the University Sign (the one with the Tree on it). It says sth. like: "Der Wind der Freiheit weht." --transfered to english--> "The wind of freedom blows." ;). Just if anyone was wondering what it means.
HaNoCr 2 years ago 11
good
SanaNidhi18 2 years ago
Thank you so much! I'm having such a hard time understanding my professor and things just seem to clear up watching this.
Soccerboy8891 2 years ago 8
THIS WAS THE BEST LESSON YET!
Gerardk42 3 years ago 50
i like him, i think that he does it in purpose
jovanis123 3 years ago 14
he's a good teacher. Just talks a bit too fast. But in a way, talking faster is better than talking slower cause it keeps you alert =)
xEternalx 3 years ago 12
Watch CS106B...then you'll take back "talks too fast" :-)
w3sp 3 years ago 9
lol
xEternalx 3 years ago 5
Where can I see CS106B. I like this teacher, but I'm more of a C++ guy.
diegopmc 2 years ago
--> Course Programming Abstractions
w3sp 2 years ago
31:54
jkromp 3 years ago 87