CS50x 2024 - Lecture 1 - C

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

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

***

TABLE OF CONTENTS

00:00:00 - Introduction
00:01:01 - Machine Code
00:05:58 - Visual Studio Code for CS50
00:09:14 - Hello, World
00:18:40 - From Scratch to C
00:20:29 - CS50 Library
00:31:14 - Format Codes
00:35:43 - Hello, World
00:36:11 - Hello, You
00:40:22 - Types
00:41:23 - Conditionals
00:47:58 - Variables
00:50:50 - compare.c
01:01:19 - agree.c
01:09:38 - Loops
01:15:40 - meow.c
01:24:48 - Functions
01:33:32 - calculator.c
01:36:06 - Scope
01:41:45 - Function Composition
01:44:14 - Linux
01:52:36 - Mario
02:08:32 - Integer Overflow
02:13:22 - Truncation
02:16:47 - Type Casting
02:18:07 - Floating-Point Imprecision
02:20:55 - Y2K
02:23:35 - Video Games
02:25:21 - Boeing

***

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
Рекомендации по теме
Комментарии
Автор

CS50 was my intro to programming, 3.5 years ago. Now I’m a Professional SWE without a formal CS background. This is the best beginner content available online. love the 2024 iteration 🖤

andythomas
Автор

I have been writing software for 15 years, this is such a great intro. happy for anyone who's starting with this material.

tomasb
Автор

Impressive energy. I remember the first time I watched CS50 so many years ago. I was impressed. And the guy is still full steam ahead. Great teacher!

JohelSouza
Автор

00:03 Today, we explore the traditional and older language called C.
03:07 Understanding source code and machine code in C
07:13 CS50.dev provides a user interface for writing and running code.
09:08 Introduction to writing, compiling, and running code
13:13 Using double quotes and semicolons in C
15:14 Learning the new syntax in C is necessary to fix the formatting issue.
19:02 Transition from Scratch to C programming language
21:01 Header files in C provide access to pre-written code libraries.
24:50 Using cs50.h to simplify input in C programming.
26:47 Functions in C can have return values, similar to receiving a slip of paper with an answer.
30:29 Remember to use semicolons in C programming.
32:29 Formatting a string using printf function in C
36:22 Using string variables and printf function in C programming.
38:14 Understanding compiler errors and how to troubleshoot them.
41:59 Introducing basic syntax for conditional statements in C
43:49 Standardizing code formatting for consistency
47:46 Introducing variables and data types in C
49:30 C offers succinct syntax for incrementing and decrementing variable values.
53:24 Control-flow diagram represents program's logic
55:26 Branching and decision tree logic in C programming
59:06 Optimizing logical circuits for efficient problem solving
1:01:04 Software using C or C++ is vulnerable to hacking, unlike other languages.
1:04:55 Implementing a more efficient method to handle uppercase and lowercase scenarios in C programming.
1:06:53 Consistency and efficiency in coding
1:10:39 Variables in C and how loops work
1:12:24 Understanding Boolean expressions and control flow in C programming.
1:16:04 Eliminating code duplication using a loop
1:17:54 Looping through code with different syntax and logic
1:21:28 Learn about loop and its syntax
1:23:18 Understanding loops in C
1:27:13 Defining and using functions in C
1:29:07 Function prototypes provide essential information for the compiler.
1:33:07 Creating functions that return values in C
1:35:07 Introducing the addition operation and the printf function
1:39:00 Updating add to take two integers as input
1:40:57 Describing the use of argument and variable names in C
1:44:36 Linux is a popular operating system, commonly used for servers.
1:46:42 Developing muscle memory for programming tasks leads to increased productivity in the long run.
1:50:36 Using rm command to remove files and its implications
1:52:25 Commands becoming muscle memory, basic operations, upcoming new commands, and solving problems.
1:56:03 Discussing the use of loops for better design in coding.
1:57:48 Dynamically printing rows and columns in C for Mario game
2:01:23 Using the CS50 library allows for dynamic input and improves usability.
2:03:16 Using a loop, the program ensures desired user input
2:07:07 Comments in C are used to add notes for humans to understand the code.
2:09:03 Finite memory in devices has real-world implications for counting and storing numbers.
2:12:52 The video discusses usage of larger data types like long integers.
2:14:41 Use %f for float values to ensure accuracy in division.
2:18:44 Computers have limitations in representing numbers, causing rounding errors and imprecision
2:20:46 Numbers and memory constraints can impact code correctness.
2:24:34 Numeric limitations causing critical errors
2:26:51 Facing challenges and mistakes in problem-solving in C programming

danceplusofficial
Автор

this is my second day. i must say that i am amazed how much i learned i such a little time, and how fun a 2 hour class can be.
keep the good material coming!!!

curdledstraw
Автор

i LOVE this new intro! gives a great spooky suspensful vibe

Blezerker
Автор

Some of the best lectures I've ever seen, super grateful to have the ability to watch these! Thank you!

DusKed
Автор

Finally the new CS50X is out, was watching the live stream version until now. Thank you Professor David Malan and team for this.

HIZN
Автор

I'm so glad I discovered this course, he is an awesome teacher, `
he makes the fundamentals so interesting and clear, it's helping me a lot

cecilbrews
Автор

The best CS course with the best teacher!

DanielD
Автор

Happy new year David Malan and CS50 team!

koijoijoe
Автор

I've been coding in C professionally for over 30 years, and I *still* prefer a good GUI over a CLI. So, if you find that you, too, prefer a GUI, don't let that discourage you. Just following along with these carefully constructed lessons, but feel free to use the GUI to accomplish the same tasks whenever you want. And hold your head up high. All that matters is that you get the job done, done on time, and done right.

yapdog
Автор

Absolutely a great resource. Any one with any background can jump to CS by this kind of Thank you so much from are some idiots who are doing videos saying "Why not to go for cs50", just to get some vews.

suneelbhat
Автор

just finished the lecture.. It literally took me more than 3 weeks, on and off due to my college work....I enjoyed it and looking forward to complete the other lectures and their problem sets as well...
CS50 is a masterpiece

ppjgqqd
Автор

This is balls to the wall type engergy to teach people about the wonderful world of software. This is a sight to behold. Awesome.

godDIEmanLIVE
Автор

I love these lectures they just keep getting better every year🙌🤙

yesdoeee
Автор

Great lecture/r! Even though I am studying this subject now for 3 years it is great to listen to different approaches to explain some of the concepts. Great energy of the teacher, keep up the good work! :)

Nillipilli
Автор

Great start of the new year to drop 12 CS classes all in the same day. Time to learn!

theguypersondude
Автор

I watched the CS50 2023 edition, and the instructor, David, presented a more structured and cohesive logic in this 2024 lecture, making it more easily understandable for beginners like me. I am truly grateful for David and his team!

zoljjce
Автор

What an amazing teacher and team! Another year grateful to be quacking along with you guys! Greetings from Perú !! 💻🐤

GabrielaManrique