Memory - Intro to Computer Science - Harvard's CS50 (2018)

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

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

  • @freecodecamp
    @freecodecamp  6 лет назад +33

    This is the fourth video in the course. Check out the full playlist: ruclips.net/p/PLWKjhJtqVAbmGw5fN5BQlwuug-8bDmabi
    Here is a forum to discuss CS50 with other people from freeCodeCamp: www.freecodecamp.org/forum/c/harvard-cs50

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

      This forum link and the link in description to Projects aren't working.

  • @harryghgim
    @harryghgim 3 года назад +41

    Even fewer people are taking these courses as you go further. Let's finish these courses till the end. You are not alone.

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

      @@bobanmilisavljevic420 yes I did.

    • @ryanbeatbox
      @ryanbeatbox 2 года назад

      @@bobanmilisavljevic420 Not much is different, it's computer science, a lot of the things in CS are pretty static foundational concepts that apply to most programming languages, the differences occur as you get outside of the CS class and into specific languages and how those languages utilize the foundational concepts you learned in CS.

  • @pyrotechnick420
    @pyrotechnick420 6 лет назад +15

    This is hands down the best course I've ever taken online and I can't believe it's on youtube. And that's coming from someone who's paid for online programming courses before. I'm so glad I stumbled on this channel!!!

    • @cyborgdale
      @cyborgdale 4 года назад

      Please state your sources for your online programming courses. I'm looking for "credited" courses--those with certificates, CEUs and/or college credits. (I realize that this post is over a year ago so anyone else with information please reply as well.)

    • @pyrotechnick420
      @pyrotechnick420 4 года назад +4

      @@cyborgdale What this isn't an essay why you making me cite my sources? lol I used Udemy and Coursera and other sites for online programming courses. They were taught by individuals rather than schools so they just weren't as well thought out and comprehensive as Harvard's CS50. But unfortunately, I got stuck at Week 5 and stopped doing the course. I still think that this CS50 is perfect for anyone trying to learn computer science on their own

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

      @@cyborgdale try the university of people they offer an online degree for computer science and tuition is free

  • @evensandvik6140
    @evensandvik6140 5 лет назад +23

    I like my professors, but David is at the next level.

  • @666222333111
    @666222333111 6 лет назад +14

    This youtube channel has actual, useful content on it! It's a miracle.

  • @clodgozon3968
    @clodgozon3968 5 лет назад +3

    Are you taking our brains and stuffing it with your words of wisdom?! Cool. Never even had to focus too much to listen about it.

  • @debanjanbarman7212
    @debanjanbarman7212 6 лет назад +22

    Free code camp helps me very much.

  • @madhavtrivedi9500
    @madhavtrivedi9500 6 лет назад +4

    Thanks for uploading. Real help for highschool dropouts

  • @matt-g-recovers
    @matt-g-recovers 4 года назад +24

    I feel a bit mixed about this.
    I am a software engineer. I have been for a time.
    I have taken (and aced) countless CS courses while in school but I still have profound insight watching this supposed by number a 'half-assed CS' series...I get it, not advanced material but damn, it is so complete in layers for such a short class.
    Did I spend a fortune for nothing??
    I love the memory and data structures talks best:)

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

    Man.. David brings the light into my heart

  • @ravichandrareddy7509
    @ravichandrareddy7509 5 лет назад +31

    This guy had speedforce for breakfast!

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

    Super, super! Thank you so much! You answered my questions without me asking them!

  • @Shalve94
    @Shalve94 3 года назад +1

    This lecture is pretty good

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

    i don't get bored of this man.

  • @Adrian-Carstea
    @Adrian-Carstea 6 лет назад +7

    at 1:23:35 the professor feels lucky, but is actually not. scanf with %s means "String of characters. This will read subsequent characters until a whitespace is found". So even if you entered a lot of characters after "David ", because it's a whitespace after David, it prints ok. The segmentation fault example after that is due to the fact that are no spaces.

  • @isaaccardin
    @isaaccardin 2 года назад

    Takes me back to the days of installing games on floppy disks in DOS

  • @TroenderTass
    @TroenderTass 3 года назад +1

    52:08 I think this is wrong. If s is suppose to come before t alfabethically, it will return a negative value.

  • @stevenking9987
    @stevenking9987 6 лет назад +11

    is this Harvard university ?! wow!

    • @cyborgdale
      @cyborgdale 4 года назад +4

      If you like that, also check out MIT course videos here on RUclips.

  • @DarkGT
    @DarkGT 6 лет назад +8

    Meantime on my third world uni, professors teach us this with black board crappy painting of memory array.

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

    A great presenter. Easy to follow. 👍

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

    Quality class and excellent resources with great proficient teacher status

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

    best teacher

  • @BlockchainWeb3Channel
    @BlockchainWeb3Channel 6 лет назад +3

    freeCodeCamp is the best.

  • @ggpz1979
    @ggpz1979 6 лет назад +2

    Thank you so much...if i become big....i will mention how dis channel is helping students like me become big in my interviews....

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

    This is the 2nd video where i see students jump at the opportunity to get some food. What is going on at Harvard?

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

      LOL

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

      College students aren't exactly known for having many resources

    • @Sk8erMorris
      @Sk8erMorris 4 года назад

      you know that Food goes to waste all around us and causes the Green House Effect which is bad for Our Planet. This is also funny because no food is ever given for free.

  • @seclvded
    @seclvded 5 лет назад +3

    Okay, what's the difference between these two declaration of strings?
    char *foo;
    or
    char foo[10];
    This made me even more confused, when should I use the later, or the former?

    • @cyborgdale
      @cyborgdale 4 года назад +3

      @@RandomUserr_ To expand a little on his explanation: char *foo will give you a memory address. You can view that memory address directly if you care to. There is no set size to the memory location. OTOH, char foo[10] will allocate a chunk of memory for use with foo. You don't particularly care or know where this memory is located as long as you can use it.
      When allocated within a particular block of code, its "scope" is limited to that block. You may declare another sting inside another block with exactly the same name without affecting the original foo[10] unless you originally made it global.
      If you use char *foo, you return an address. You may manipulate the memory directly and globally, including each element of the array by adding integer values to the memory location in accordance with the byte size of the data type. This can be a powerful tool or a dangerous one since there is no protection from foolish mistakes. You can manipulate data from outside the scope.

  • @ΓιώργοςΜ-γ2ψ
    @ΓιώργοςΜ-γ2ψ 6 лет назад +3

    All these videos are amazing !!! Thank you so much !!
    Will be courses for more languages ?

  • @sergi3629
    @sergi3629 6 лет назад +3

    Interesting that "string" in C is not a data type? Why it is a data type in Javascript?

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

      JavaScript came way late compared to C language, people felt the need to add String as a data type, so that is why it's there in JS, I guess.

    • @47Mortuus
      @47Mortuus 4 года назад

      bool is a data type that was added to C in 1999, even though all computer science is based on it.

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

    very fun. Thanks

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

    1:19:07 ...body once told me

  • @muhammadasim8873
    @muhammadasim8873 6 лет назад +4

    Please set the Speed to 0.75 from settings menu....

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

      why?

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

      i think normal speed is enough

    • @cyborgdale
      @cyborgdale 4 года назад

      I set most of the speed of these videos to 1.25 but run this one at normal speed. Just choose which speed works best for you.

  • @aaronasissoard1098
    @aaronasissoard1098 Год назад

    1:17:51

  • @47Mortuus
    @47Mortuus 4 года назад +2

    "A char* should not have the '*' right behind the data type - FoR ClArItY"
    of course...

  • @Abhishek-qn6mf
    @Abhishek-qn6mf 6 лет назад

    Thanks very very much

  • @a.i.m447
    @a.i.m447 4 года назад +1

    How can I obtain documents for lectures even PDF ?

    • @osama.khan1
      @osama.khan1 3 года назад

      cs50.harvard.edu/x/2021/weeks/0/

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

    The RETURN statement. He doesn't elaborate.
    int main (void){... means that the return value is an integer and there are no arguments. This works in all compilers. Some compilers have an implicit " } return 0; " at the end but it is best practice to include it.
    void main(void) {... is allowed in some compilers but not all. This should be avoided for compatibility reasons.
    zero = GOOD --- !zero = BAD

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

    playback speed at (0.95) = 👍

  • @georgejbaker
    @georgejbaker 6 лет назад +2

    @freecodecamp, videos 5 and 6 in the CS50 playlist are not playable, as it says they are private videos and they can't be displayed.

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

      I am having no problem. Either the problem has been fixed (your post is over a year old) or some other issue is going on.

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

    Best ❤️❤️

  • @sunilkumar-ft3nk
    @sunilkumar-ft3nk 3 года назад

    1:34:28 bhaio ladki bahut smart hai.

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

    SUBTITLES ? TO VIDEO ARE IMPORTANT, TKS

    • @cyborgdale
      @cyborgdale 4 года назад

      "subtitles" as in other languages? Because I get a "closed caption" just fine.

    • @47Mortuus
      @47Mortuus 4 года назад +2

      ENGLISH? TO WORLD IS IMPORTANT, PLS

  • @doran4034
    @doran4034 2 года назад

    0:50

  • @eissa6443
    @eissa6443 6 лет назад +3

    Nice, Can I get certification from this university (actually remotely even if paid) without wasting time from going from place to place............

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

    I hope someday freecodecamp will make coding bootcamps obsolete.

    • @cyborgdale
      @cyborgdale 4 года назад

      Coding bootcamps offer "face-to-face" interaction that some people need. You also cannot ask a video questions, however, you can here on Facebook and in StackExchange, with the proper "netiquette". Bootcamps also provide "pressure" and are accelerated. They throw the stuff out there like beads at Mardi Gras. Some people may need this pressure to get motivated if they lack self-motivation. If you go to a bootcamp, to succeed you have to get friendly and form study groups outside of the classroom if you expect to survive.
      Also, bootcamps are EXPENSIVE--outrageously so. On the plus side, a bootcamp will offer you some type of certificate upon successful completion which some potential employer may respect. There are other free-to-low-cost solutions on the internet, such as code challenges and codewars, which can give you much more prestige in the coding community.

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

    Watching him. I myself is having difficulty breathhhng....

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

    Did Blinky have a smile or was it his moustache?

  • @saicharanmarrivada5077
    @saicharanmarrivada5077 Год назад

    At 1:38:49, he calls Pepsi garbage

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

    wow where was this type of professor in my school haha

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

    That Compare2.c program did not work for me at all the way he did it.
    I had to modify it slighly for some reason.
    to this instead
    #include
    #include
    #include
    bool compare_strings(string a, string b);
    int main(void)
    {
    string s = get_string("s: ");
    string t = get_string("t: ");
    if (compare_strings(s,t))
    {
    printf("Same
    ");
    }
    else
    {
    printf("Different
    ");
    }
    }
    bool compare_strings(string a, string b)
    {
    if (strlen(a) != strlen(b))
    {
    return false;
    }

    int n = strlen(a);
    int i;
    for (i = 0; i < n; i++)
    {
    if (a[i] != b[i])
    {
    return false;
    }
    }
    return true;
    }

  • @GmanGavin1
    @GmanGavin1 Год назад

    People: "See"
    My BRAIN: "C" 😊

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

    Free code camp TOP

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

    1st

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

    .