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
@@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.
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!!!
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.)
@@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
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:)
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.
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.
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?
@@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.
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
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.
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; }
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
This forum link and the link in description to Projects aren't working.
Even fewer people are taking these courses as you go further. Let's finish these courses till the end. You are not alone.
@@bobanmilisavljevic420 yes I did.
@@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.
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!!!
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.)
@@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
@@cyborgdale try the university of people they offer an online degree for computer science and tuition is free
I like my professors, but David is at the next level.
This youtube channel has actual, useful content on it! It's a miracle.
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.
Free code camp helps me very much.
Thanks for uploading. Real help for highschool dropouts
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:)
Man.. David brings the light into my heart
This guy had speedforce for breakfast!
Super, super! Thank you so much! You answered my questions without me asking them!
This lecture is pretty good
i don't get bored of this man.
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.
Takes me back to the days of installing games on floppy disks in DOS
52:08 I think this is wrong. If s is suppose to come before t alfabethically, it will return a negative value.
is this Harvard university ?! wow!
If you like that, also check out MIT course videos here on RUclips.
Meantime on my third world uni, professors teach us this with black board crappy painting of memory array.
A great presenter. Easy to follow. 👍
Quality class and excellent resources with great proficient teacher status
best teacher
freeCodeCamp is the best.
Thank you so much...if i become big....i will mention how dis channel is helping students like me become big in my interviews....
This is the 2nd video where i see students jump at the opportunity to get some food. What is going on at Harvard?
LOL
College students aren't exactly known for having many resources
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.
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?
@@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.
All these videos are amazing !!! Thank you so much !!
Will be courses for more languages ?
Interesting that "string" in C is not a data type? Why it is a data type in Javascript?
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.
bool is a data type that was added to C in 1999, even though all computer science is based on it.
very fun. Thanks
1:19:07 ...body once told me
Please set the Speed to 0.75 from settings menu....
why?
i think normal speed is enough
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.
1:17:51
"A char* should not have the '*' right behind the data type - FoR ClArItY"
of course...
Thanks very very much
How can I obtain documents for lectures even PDF ?
cs50.harvard.edu/x/2021/weeks/0/
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
playback speed at (0.95) = 👍
@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.
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.
Best ❤️❤️
1:34:28 bhaio ladki bahut smart hai.
SUBTITLES ? TO VIDEO ARE IMPORTANT, TKS
"subtitles" as in other languages? Because I get a "closed caption" just fine.
ENGLISH? TO WORLD IS IMPORTANT, PLS
0:50
Nice, Can I get certification from this university (actually remotely even if paid) without wasting time from going from place to place............
Yes, you can. Take the course CS50 on edX platform.
@@sravanthkumarchintalacheru1359 thank you
I hope someday freecodecamp will make coding bootcamps obsolete.
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.
Watching him. I myself is having difficulty breathhhng....
Did Blinky have a smile or was it his moustache?
At 1:38:49, he calls Pepsi garbage
wow where was this type of professor in my school haha
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;
}
cs50 LOL
People: "See"
My BRAIN: "C" 😊
Free code camp TOP
1st
.