CS50 2021 in HDR - Lecture 1 - C

preview_player
Показать описание

TABLE OF CONTENTS

00:00:00 - Intro
00:01:17 - From Scratch to C
00:04:24 - Correctness, Design, and Style
00:06:42 - Syntax
00:07:30 - Integrated Development Environment (IDE)
00:10:43 - Compiling
00:12:43 - Visual Studio Code
00:13:49 - Terminal
00:15:32 - Making and Running
00:19:29 - Recompiling
00:22:44 - Functions and Arguments
00:25:34 - Return Values and Variables
00:31:18 - printf
00:32:31 - Reading Errors
00:33:47 - What's your name?
00:38:45 - Placeholders and Format Codes
00:47:28 - Main
00:48:35 - Header Files and Libraries
00:51:01 - Linux Commands
00:58:07 - Types
00:59:57 - Format Codes
01:00:38 - Operators
01:01:05 - Variables and Syntactic Sugar
01:04:33 - calculator.c
01:10:10 - Comments
01:12:53 - Integer Overflow
01:16:21 - Conditions
01:20:30 - points.c
01:26:22 - parity.c
01:30:34 - agree.c
01:33:13 - Or
01:36:38 - Loops
01:46:20 - meow.c
01:55:19 - discount.c
02:02:43 - mario.c
02:04:53 - Validating User Input
02:12:00 - break
02:12:41 - Floating Point Imprecision
02:16:42 - Integer Overflow
02:24:23 - pennies.c
02:26:46 - Consequences of Overflow and Imprecision

***

This is CS50, Harvard University's introduction to the intellectual enterprises of computer science and the art of programming.

***

HOW TO SUBSCRIBE

HOW TO TAKE CS50

HOW TO JOIN CS50 COMMUNITIES

HOW TO FOLLOW DAVID J. MALAN

***

CS50 SHOP

***

LICENSE

CC BY-NC-SA 4.0
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License

David J. Malan
Рекомендации по теме
Комментарии
Автор

Gotta give him props for maintaining that lecture energy for 2 hours

danielawoke
Автор

This guy: fluidly explains the lesson and puts it in perspective

Our math teachers: "because that's what it says in the book"

roguespartan
Автор

I really want to appreciate professor Malan and the CS50 stuff members. This course is well organized and teaches what computer science is in a very interesting way. Thank you very much!!

ernestworthing
Автор

17:30- removing a folder- rm hello
18:30- list what's in the folder- ls
52:15- Linux commands
54:00- cntl L to make all the lines disappear
1:06:25- the first argument in printf has to be a string in double quotes
1:11:15- how he types so fast (tab or up key)
1:33:20- or, and
1:34:43- single vs double quotes
1:40:00- Doing something a certain number of times (loops)
1:54:59 - what if we need to create a new function (ie. get_cents)
1:55:19- creating a new file
2:11:21- in C, you must specify the return type, the name of the function, and the input (or arguments of the function) in that order, and if none of them are applicable, you write the word "void".

eagillum
Автор

These students are so good. They ask such good questions. Now I understand why studying in a smart class makes such a difference.

lishav
Автор

I cant believe this wonderful course is available to public for free I am starting my computer programming program 10 th jan. This series is gold for me

amerikanpoliskamerasvideol
Автор

I have a master's degree in cultural anthropology, I'm 31 and I decided to give programming a chance to turn my life around. I love how passionate the professor teaching is, although I feel sometimes I'm lagging behind. I really hope I'm up for this.

lorenzoforesta
Автор

Time Stamps:
53:27 Linux CLI Commands
1:41:18 While Loop using counter
1:43:46 For Loop - for (int i = 0; i < 3; i++) - (initialize variable; condition check; couter)
1:47:15 custom functions (meow)
1:57:15 Making a reusable function. (takes input and returns value) "return type - name - input"
2:05:02 "do while loop". Validating user input before carrying on with the program.
2:09:03 Nested for loops
2:12:21 using "break" to exit a loop.

cuddledog
Автор

Thank you for putting this up for free. I took CS in college and we had to learn mechanically and take a lot for granted, most concepts haven't been put in perspective. I decided to take CS50 to construct my foundations better as over the years I've dabbled into more modern languages but algorithms are a big part of coding interviews so might as well understand the basics better. There are too many devs and engineers who don't understand the basics and I don't want to become the guy who copy pastes stackoverflow answers without grasping what lies underneath the hood.
David, you make CS so engaging, wish I had lecturers like you in real life. My old teach copy pasted entire lectures from the internet, even the var names checked out completely and couldn't explain why in the world would you write void main() sometimes and int main() other times.. gosh, if I had a dollar for every time she debugged code where we had to return an int but used void main() and just stared at the screen for minutes not seeing the mistake, I'd probably have enough for 10% of the tuition fee to go to Harvard.
Great job man!

rolandcucicea
Автор

I took cs50 2021 up to lecture 3 and the new lectures came out. So out of curiosity, I revisited the lectures in the new version. How do you and your team continue to improve and make something that can be very complicated to normal beings so engaging? Your sweat dripping during your lectures make my eyes sweat. I really appreciate you. Thank you so much!

lsb
Автор

What an amazing teacher...!!
I've studied economics for 8 years, and I have never encountered a teacher that was this good...

mortenchristensrn
Автор

Hardest part of coding for any newbie is learning how to install and configure an IDE. It’s maddening!

NathanielRises
Автор

The content is pretty good, just make sure to watch this video many times if you are starting C. I'm not kidding, you will probably need to watch it like 4-5 times before things start to connect and make sense. Good luck

antoineweb
Автор

Professor is such an amazing guy!! He explains the subject so simply, and has an easy-going attitude towards students, I have never sen anything like that. He behaves on each lecture as he was having a TED talk. And it comes from a person who works as a programmer and came here just to wrap up some concepts for myself.

neurogeneza
Автор

I learned c++, matlab, and python in high school and college. Now I realized that I only learned to pass the exams and didn’t really understand the why behind the what. This is a good intro

haepoioaejojaef
Автор

I love this! We might not be able to get certification because that needs to be paid for but knowledge should always be free!

tengkuadam
Автор

God bless you Professor Malan. I have never had a teacher like you in my life. Keep doing what you are doing.

basic
Автор

I lost my job during the pandemic, I started this channel believing thing will get better 🙏🏻

TimelapsePro
Автор

I love this course so much! I can't express enough how appreciative I am that this exists!

smirkinmerkin
Автор

The feeling when you finish doing things accordingly is amazing!
I think it's so smart to use this human behavior to trick our selves work hard 🤣

KirubelTamene