Lecture 4 | Programming Methodology (Stanford)

Поделиться
HTML-код
  • Опубликовано: 4 янв 2025

Комментарии • 408

  • @MrVarunparmar
    @MrVarunparmar 4 года назад +71

    1:00 The History of Computing
    06:51 Computer Science vs Programming
    09:41 What Does The Computer Understand?
    10:48 The Compilation Process
    17:13 Java is an Object Oriented language
    20:00 Inheritance
    25:04 Instance of a Class
    28:43 The acm.program Hierarchy
    31:04 Your First Java Program
    35:50 A ConsoleProgram example
    41:14 The Graphics Window
    44:51 The Sending-Messages-to-a-GLabel Example

    • @varshithkemmasaram2115
      @varshithkemmasaram2115 4 года назад +1

      Thanks

    • @quanquoctruong1276
      @quanquoctruong1276 Год назад +1

      love that for every video in the series, there's a guy that's kind enough to leave the table of contents for us :3

  • @IvelLeCog
    @IvelLeCog 8 лет назад +54

    I really like this guy. Great communicator and very comprehensive.
    Thanks Mehran.

  • @KshitijBajracharya
    @KshitijBajracharya 5 лет назад +8

    A Professor that teaches you and teaches you well while making you laugh. You sir are pure gold.

  • @doanhqdo
    @doanhqdo 13 лет назад +14

    This is the best introduction to programming that I have seen ever!

  • @malithavikum3412
    @malithavikum3412 10 лет назад +18

    i've been looking in to many of the books and internet sources about the java programming. most of them were not as simple as his explains.the way he explains about the concept of java its simply one of the best i've seen so far. thank you for your effort and bless you sir!! #salute

  • @S2R.MeSh.
    @S2R.MeSh. 2 года назад +2

    14 years down and I'm watching and loving Mehran from Nairobi Kenya. Thanks Stanfrod and Mehran.

  • @mcockney
    @mcockney 13 лет назад +2

    In a world where knowledge is the most valuable resource, those giving it away for free are the true kings.
    Thank you Stanford, Sequoia Capital and Mehran for making this excellent material available for the benefit of advancing knowledge for everyone. I commend you and shall hold you in ultimately high regard from now on.
    A home educated software engineer.

  • @akindad
    @akindad 13 лет назад +1

    Prof. Sahami is an excellent instructor and we are so lucky to be able to see his classes worldwide. Fascinating!

  • @filipnicolae9754
    @filipnicolae9754 10 лет назад +27

    Awesome teacher!

  • @surekharaja
    @surekharaja 11 лет назад +1

    I'm so obsessed with his lectures. Simply amazing. Truly he is blessed with teaching skill. Thanks SU for sharing this video.

  • @longnoseboi
    @longnoseboi 11 лет назад +8

    01:00 The History of Computing
    06:51 Computer Science vs Programming
    09:41 What Does The Computer Understand?
    10:48 The Compilation Process
    17:13 Java is an Object Oriented language
    20:00 Inheritance
    25:04 Instance of a Class
    28:43 The acm.program Hierarchy
    31:04 Your First Java Program
    35:50 A ConsoleProgram example
    41:14 The Graphics Window
    44:51 The Sending-Messages-to-a-GLabel Example

  • @poppin3000
    @poppin3000 14 лет назад

    if i have seen further, it is by standing on YOUR shoulders professor Mehran. thank you for making your education available and free (and fun) to all.

  • @iamdeancoulstock
    @iamdeancoulstock 12 лет назад

    Love these lectures; He has a clear voice; explains all his code to the audience; and is funny.
    I will definitely be spending the next 25 hours watching the rest of your lectures!

  • @tomaszharabasz
    @tomaszharabasz 11 лет назад

    it takes me only 2 evenings to finish 4 lectures. This is the best course I've ever watched! Really, if I visit Stanford University in the future, I will find Proffesor Mehran for sure :)

  • @deiu9999
    @deiu9999 12 лет назад

    I never though I will be addicted by this kind of videos, man, it`s so easy to understand from this "golden" professor!

  • @rockinrobin714
    @rockinrobin714 13 лет назад

    I have no background in a class like this - my undergrad was in Spanish and Psychology. But I really enjoy this class! Thank you so much for putting this online for free Stanford! and thanks Mehran!

  • @josefcb19
    @josefcb19 11 лет назад

    this professor is a good example of how all professors of University might be fantastic!!!!

  • @ro8erwong635
    @ro8erwong635 5 лет назад +2

    he is the best lecturer throughout my 24-year-life. Why don’t you @unimelb have professors like this?😔

  • @MrBlackspoon
    @MrBlackspoon 11 лет назад

    Wow, I like how he used that Heirarchy example of biology. Made it so simple to understand. Wish they did that 4 months ago at my Java classes in the Netherlands.

  • @MyNameGoesHere288
    @MyNameGoesHere288 15 лет назад

    This is such an excellent set of videos! This professor is very good at what he does!
    Thank you Stanford University for providing these videos!

  • @imegatrone
    @imegatrone 13 лет назад

    I Really Like The Video From Your Professor Sahami moves into the history of computing and introduces the program Java.

  • @AynenMakino
    @AynenMakino 12 лет назад

    Just wanted to say: This guy is really good at teaching! Give him a raise or something.

  • @ErezElias
    @ErezElias 12 лет назад

    what a great way to have such open source for everyone. Outstanding public relations!

  • @xJohnnys
    @xJohnnys 14 лет назад +4

    I love this teacher, he talks loud (GOOD THING) and he's funny

  • @MVIVN
    @MVIVN 16 лет назад

    Brilliant lectures! I'm about to start my Computer Science degree and these lectures are really starting to give me the feel of things. Thanks for uploading!

  • @bluenose20
    @bluenose20 14 лет назад

    Finally! someone actually teaching java in a way you can understand!

  • @TeeUniverse
    @TeeUniverse 12 лет назад

    Mehran,
    Currently I'm a freshman in college and my professors are knowledgeable but they don't make classes half a interesting a you. I watched all four lectures without yawning. Thank you Mehran and Stanford for doing this.

  • @-DeScruff
    @-DeScruff 14 лет назад

    Im really liking these lessons, I can understand everything I do, and I really wanted to learn java programing, not to mention I really like this teacher. Thank you Stanford :D

  • @jaimegarcia9088
    @jaimegarcia9088 10 лет назад +2

    I got stuck for hours in the Checkerboard problem of Assignment No.1.
    It was so satisfying to overcome that roadblock and I'm more than ready to venture into this lecture.
    Thank you for your wise words and sense of humor, Professor Mehran! You are a great guide for us newbies.

    • @YoungHoonLeeYOU
      @YoungHoonLeeYOU 10 лет назад

      Hey Jaime, do you mind to share your solutions to Checkerboard problem? I am doing it but having a difficulty. :(

    • @jaimegarcia9088
      @jaimegarcia9088 10 лет назад

      I sent you an IM, did you get it?

    • @skrudzas1712
      @skrudzas1712 10 лет назад +1

      I had a little bit problem with it too, but finnaly I solved it, I don't know is it right, but it works fine for me pastebin.com/Hw12Fz1G

  • @warnexus
    @warnexus 13 лет назад +2

    thanks Stanford. I learned so much! I truly wish I able to attend your college!

  • @soroushnajafi348
    @soroushnajafi348 2 года назад +1

    you are fantastic professor , at this moment Im proud to be an iranian.

  • @mizucami21
    @mizucami21 12 лет назад

    Actually the first ever computer humanity retrieved was found at Greece. Search youtube for the Antikethera computer. Again, Many thanks to Stanford and Mr Sahami for their brilliant work.

  • @Polya626
    @Polya626 13 лет назад

    Doo-dii-doo-di-doo! We're compiling, life is good.
    Can't put into words how awsome this guy is!

  • @Aa11qq
    @Aa11qq 6 лет назад +9

    So I switch my major from Computer Engineering to Computer Science and in CpE we took C++, digital Logic, all the engineering maths, etc. but I didn't learn Java like the first year CS students usually do. So I'm taking a class called "Software Engineering Principles" and I really need to learn this language before I start. Thanks standford for the free lessons and sorry at everyone at my uni who had to pay to learn this lmfao

    • @adamlee9347
      @adamlee9347 6 лет назад

      lol Java is not bad. Was C++ hard?

  • @SpringStingray
    @SpringStingray 12 лет назад

    Can we all take a moment to respect how much of a bloke Professor Mehran is?

  • @gustavocarvalho2995
    @gustavocarvalho2995 8 лет назад

    Another great lesson! You can easily see how much energy this teacher has.

  • @0ElectroMad0
    @0ElectroMad0 14 лет назад +1

    Great Professor & Great Course .. thanks Stanford

  • @moz658
    @moz658 8 лет назад +1

    I'm currently learning javascript and its libraries like react.js and node.js so basically what interests me is the software engineering methods that Mahren shows in his lectures and i think he is really good at teaching that.

  • @ddubs123
    @ddubs123 11 лет назад

    If you go to the stanford course website there are starter files for the assignments which have the acm jars. Also helps to use the version of eclipse they provide.

  • @DenysLazarenko
    @DenysLazarenko 12 лет назад

    it's not sad, it's natural. That's what make guys like you so valuable comparing to millions of those who prefer stupid videos

  • @bddaawwgg
    @bddaawwgg 11 лет назад

    I have a Chinese professor who is admittedly very smart, yet very ineffective in teaching the core concepts. She races through each lecture making sure to hit every single point without fail.
    I'm not bashing any foreign speakers, but when your audience speaks a different language than your native tongue, please slow down to ensure everyone is on the same page.

  • @TheAbstractHippo
    @TheAbstractHippo 11 лет назад +5

    "Hey, Eduardo, you went through the blastula stage. Good times." Best quote of the video.

  • @SuSp3cT666
    @SuSp3cT666 11 лет назад

    well Eclipse does the compiling when you press the run button, so as far as the user is concerned you can very well say that eclipse is the compiler, since that is 1 of it's functions

  • @forextradingforbeginners7016
    @forextradingforbeginners7016 7 лет назад +1

    Great lectures. Thanks Mr Professor and thanks Stanford. You truly are a class

  • @MyLittleMagneton
    @MyLittleMagneton 9 лет назад +34

    The second the class ends people stand up and leave, god damn it, let him finish the friggin sentence even if you "lose" a minute of your time.

    • @andjammor
      @andjammor 7 лет назад +6

      Yeah except at american universities they treat you like a little kid and punish you with tardies if you're late for your next class

  • @gelliravikumar018
    @gelliravikumar018 13 лет назад

    Excellent Teaching on object-oriented programming using Java classes

  • @blahdelablah
    @blahdelablah 15 лет назад

    @Uvthenfuv
    The term you're looking for is IDE, which stands for Integrated Development Environment. Eclipse is an IDE because it bundles a number of useful tools for application development into one program.

  • @_blank746
    @_blank746 10 лет назад +40

    Do they pass the candy to correct student when it hits an incorrect student?

    • @kiddcode2848
      @kiddcode2848 10 лет назад +83

      Finally someones asking the important questions.

    • @dadecountydiego
      @dadecountydiego 6 лет назад +1

      yes

    • @陈瀚龙
      @陈瀚龙 6 лет назад

      ​@Hetan Thakkar I think Karel will have a lot of candy to pick up at the end of the semester. He's probably depressed like Marvin from Hitchhiker's Guide to the Galaxy.

    • @dewdop
      @dewdop 3 года назад

      @Hetan Thakkar Yes, The Hitchhikers Guide to the Galaxy, by Douglas Adams.

  • @susanfoley8360
    @susanfoley8360 9 лет назад +4

    This guy is amazingly good.

  • @vidfather
    @vidfather 14 лет назад

    This teacher is awesome. I wish I had such an energetic lecturer.

  • @PrototypePrjs
    @PrototypePrjs 13 лет назад

    Amazing the change in computers in about 40 years...

  • @brownbear696969
    @brownbear696969 11 лет назад +2

    i've learned so much from him!!

  • @bilal59446
    @bilal59446 13 лет назад

    great lectures Mehran Sahami!
    thanx! made programming a lot easier for me!

  • @Dillboy928dfb
    @Dillboy928dfb 14 лет назад

    I was actually in the class you can see me in lecture one, believe me professor Sahami taught me very well!

  • @windcoder
    @windcoder 15 лет назад

    The fact that Stanford is letting us watch this for free is fantastic!!

  • @argyleghost
    @argyleghost 10 лет назад

    Loving this lecture series. Excellent way of explaining Computer Science and programming.

  • @dacherx
    @dacherx 14 лет назад

    @joaomrpereira actually eclipse has its own java compiler, independent of javac. So you can compile java programs using eclipse with only the java runtimes. To prove this to yourself, compile using eclipse compiler from commandline, from eclipse plugin folder copy org.eclipse.jdt.core.XXX.jar to your java code folder. For ease of typing rename eclipse compiler jar to ejc.jar. To compile your .java using eclipse compiler, from cmd.com> java -jar ecj.jar -cp .;acm.jar myprogram.java

  • @LetsJam2TheMAx
    @LetsJam2TheMAx 12 лет назад

    Thank you StandfordUniversity for this lecture.

  • @kolaolasupo3648
    @kolaolasupo3648 12 лет назад

    Thank u Prof Sahami for this video on Java..

  • @TallestFiddle
    @TallestFiddle 11 лет назад

    Every lecture should be recorded, its a crime that information is kept secret.

  • @liberty-matrix
    @liberty-matrix 4 года назад +3

    @ 21:26 *"Let me put in terms that you'll understand. You're a human being right? And if you're not, come talk to me. It wouldn't be the first time!"*

  • @trulysick86
    @trulysick86 12 лет назад +1

    Yes thanks for the videos! I wouldnt pay for education from the local community college if i didn't have to

  • @vdealer1
    @vdealer1 14 лет назад

    @xMjhsx A somewhat common misconception. Mac OS and Linux are both based on Unix. So they're more like siblings, not directly based off of each other. Hope this helps!

  • @Amitron17
    @Amitron17 12 лет назад

    @aquaizzy Or if you're suggesting The Stanford Center for Professional Development, then I apologize; although you could have been more clear.
    After poking around there for 10 minutes, however, I haven't found a problem-solving community.

  • @Musa3ad
    @Musa3ad 11 лет назад +1

    "Source code" Know it, Learn it, Live it, Love it

  • @ramumagar6981
    @ramumagar6981 12 лет назад

    he is a best lecturer, dont matter where he from, whether iran, afganistan, pakistan, israiel, india, just listen, his country, his religion is not our concern

  • @pur99strpka
    @pur99strpka 13 лет назад

    God, I made it to the 4th Lecture so far.. Its only been one day to. (Trying to watch as many as I can per day.) I must finish them all!

  • @rahulchopra404
    @rahulchopra404 12 лет назад

    He makes it very easy to understand. I'm thirteen and I 'm able to understand what he's saying.

  • @Artilla2012
    @Artilla2012 11 лет назад +23

    very usefull stuff.. i tired to get candy by asking questions to my monitor.. but no dice.. anyone?

  • @1SeanWalsh1
    @1SeanWalsh1 15 лет назад

    Excellent set of Video's,

  • @Ragemar
    @Ragemar 12 лет назад

    Nice powerpoint work with the hello world example

  • @mentalgamer11
    @mentalgamer11 15 лет назад

    No he is correct -- the subclasses inherit from the superclasses. You're thinking about abstract classes, where blank methods are given in the superclass then actually defined in the subclasses.

  • @stephenprofullobala5016
    @stephenprofullobala5016 5 лет назад +1

    All study of Java starts from this lecture

  • @qwertyfshag
    @qwertyfshag 14 лет назад

    i like the teacher. he is very well spoken

  • @j44fff
    @j44fff 12 лет назад

    wow! u must be so knowledgeable!

  • @darnellsbabygirl
    @darnellsbabygirl 14 лет назад

    First of all I would like to say that I cant get enough of these videos. Mehran is an excellant professor, made me wish I had gone to Stanford. I would like to know how to get my created worlds to show up in eclipse. I saved the world in its own folder and restarted eclipse and then tried to import it but all I get is the folder but not the java file to import. what am i doing wrong.

  • @gcontad
    @gcontad 10 лет назад +2

    This Guy is Awesome

  • @madmenyo
    @madmenyo 9 лет назад +13

    Byebye Karel, I have been programming for many years but you did teach me some important things like refinement.

    • @saidhussain5706
      @saidhussain5706 5 лет назад

      What is this

    • @arvinsloane6715
      @arvinsloane6715 3 года назад

      @@saidhussain5706 He refers to the term "stepwise refinement" in Lecture 3 (last part with he talks about decomposition, top down design and bottom up design"

  •  14 лет назад

    Nice. But note that eclipse isn't a compiler, is an IDE. javac is the compiler used by eclipse.

  • @StephenRayner
    @StephenRayner 16 лет назад

    I love Stanford I really want to go! I really want to meet Mehran. I love JAVA and he makes it so much fun

  • @dolphyjazz80
    @dolphyjazz80 12 лет назад

    The dude's speech can't keep up with his brain, so he speaks like a tweeker. Brilliant!

  • @Uvthenfuv
    @Uvthenfuv 15 лет назад

    I think run-time compiling is called parsing, but I guess (based on dragonprince's comment) that Eclipse uses Javac for compiling then runs it. Eclipse is a tool that uses many things and simplifies many other things to make development easier. (No more notepaddin', yay!)

  • @jjemknox
    @jjemknox 14 лет назад

    @Thymonico
    Thank you! I found the "jar" but didn't know what to do with it!

  • @pateluresh
    @pateluresh 14 лет назад

    @Thymonico Thanks would not have figured out without your note here.

  • @aartje9
    @aartje9 14 лет назад

    stanford is an awesome universety! and even if it wasn't, i would go there for the candy :D

  • @kstahmer
    @kstahmer 14 лет назад

    @mynamegoeshere10
    Since youtube doesn't allow posting links, please do a browser search on "Java Task Force" and click its Home Page link. That webpage will give you full ACM Java Task Force (JTF) access, including its JAR files.
    However, if you're only interested in the CS106A ACM JTF, do a browser search on "CS106A assignments" and download its ZIP files. CS106A assignments are designed for Eclipse.

  • @dg-hughes
    @dg-hughes 7 лет назад

    6:50 talking about what computers are going to be coming out and the iPhone was released only a month earlier in June 2008. Not a big computer and I'm not an Apple fanboy but it was significant but I can see how at the time it may have been overlooked or not even noticed only the week of its release, literally! iPhone released June 29, 2008 this video July 2, 2008.

  • @darcshado
    @darcshado 15 лет назад

    if you guys are following along on the videos, dont ask questions they arent at yet. Try to treat it like an actual class, and just learn!
    BTW
    Thank you for the videos :D

  • @PKRfiend
    @PKRfiend 15 лет назад

    Hi, if you download assignment 2 from the subject site and load it in the same way that you load Karel it should work. that is via import project or under file import. the icon looks like this |__| with an arrow going into it. the acm stuff is in assignment 2, i am pretty sure (i have only just started this assignment).

  • @dareko988
    @dareko988 4 года назад +2

    This course should be remade in a remastered versiom of 4k

  • @noobmartin
    @noobmartin 16 лет назад

    These lectures are great.

  • @MJMaximum
    @MJMaximum 15 лет назад

    This guy is really awesome

  • @MrJohnthedoe
    @MrJohnthedoe 13 лет назад +2

    I feel increasingly awesome as the views for each successive video decrease.

  • @Tutoelectro1
    @Tutoelectro1 14 лет назад

    Who would give a negative vote to this set of videos????

  • @coderopes2983
    @coderopes2983 7 лет назад

    Amazing pool of knowledge these videos are

  • @hattoosh
    @hattoosh 13 лет назад +1

    Thank you Stanford :D

  • @Max-my6rk
    @Max-my6rk 3 года назад +1

    11:41 "dududu~ know it, learn it, live it, love it"..

  • @vikas72
    @vikas72 15 лет назад

    If you have more questions about this video join ezdia and ask your questions there. eZdia experts will be glad to answer your queries.

  • @siddh781
    @siddh781 12 лет назад

    ya there are......you can find them at stanford.edu/class/cs106a

  • @6502-Coder
    @6502-Coder 11 лет назад

    Fantastic and totally engaging lecture,(prob the best prof ever?) so somewhat taken aback there was absolutely NO mention of the father of modern computing, and indeed computer science as we know it ... "Alan Turing"???
    ... I mean, c'mon???