@@the-naked-sailor I think it goes through a lot of content in a really cohesive manner. anyone starting here has a lifetime of learning ahead, I think of this video as a table of contents or index for the future.
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 🖤
@@BerekeTSame Lol nah. The comment section on these lectures isnt for questions or community learning, its rather for people to make general comments and acquire Likes.
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!!!
@@Ara-ara-g this is a computer science course. It teaches the basics. In the course they'll be using C, Python, HTML, CSS, Javascript and SQL. Buuuuut like I said: It's a computer science course not a course about one single language. Because if you know the basics of programming syntax and concepts you know literally any language (even though all use some form of different flavor of these basics)
You honestly might be one of the best, if not the very best teacher online for someone new to programming or computer science. Thank you so much for making this free for anybody to learn from, and explaining things in a very digestible chunks. Things I didn't understand, you've broken down very simply, and in an entertaining way. I'm very impressed and plan on following all 10 weeks of this class.
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
David, you and your staff and Harvard as a whole are helping me recognize my dreams. I started out as a tradesman and I decided my body was not worth being destroyed to get a paycheck. This course has given me the courage to take the course as well as get my Bachelors in CS, so thank you to you and your team!
Greetings Prof@@davidjmalan I'm Oscar from Uganda, East Africa 😊 but currently studying computer engineering in Tehran, Iran My deep heartfelt gratitude to you and the entire team. I just started watching the series and I'm a little confused and overwhelmed and need some guidance How do you advise me to go about this? I watched the scratch lecture but never downloaded nor did I practice because I thought it wasn't that necessary. When do I move on to the next lecture? Is it after I've practiced and understood every concept covered in one lecture or how exactly do I move on? I badly wanna learn and get a good grasp of these concepts. ThanK you Professor
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 1 #include 2 #include 3 4 int add(int a, int b); 5 6 int main (void) 7 { 8 int x = get_int (" x: "); 9 int y = get_int ( "y: "); 10 11 int z = add (x,y); 12 printf ("%i ", z); 13} 14 15 int add(int a, int b); 16 { 17 return a + b; 18 }
wow, it took me 3 days and a handful of error messages to get through this lecture. I'm v excited to take this course. Thank you for making it available to the public
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
Amazing lecture Devid. Even my college professor took around 1.5 month to teach all of these concepts which you have teached in just 2.5 hours. Thank you.
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!
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! :)
Absolutely a great resource. Any one with any background can jump to CS by this kind of resource...... Thank you so much from India........There are some idiots who are doing videos saying "Why not to go for cs50", just to get some vews.
If you're watching this after Lecture 0, consider yourself lucky to found CS50, and luckier to have completed the first lecture and moved on to the second. To Seize that huge amount of fortune, quickly return to the lecture!
Being a 53yr old student (pre req for AI class), I really appreciated the video game, y2k, and (WOW!) Boeing real world examples of the implication of code written with care, esp. in regards to efficiency!
For anybody curious enough: You can print your history of commands and pipe its result to grep and look for any command that you wrote that contains the string passed to grep So lets say you mv a file named duck.txt and you don't remember where you put it: history | grep duck.txt That should return the whole command in which duck.txt was used.
I can never find anything in my laptop for some reason xD I usually use locate but doesn't really work and I haven't got around installing whereis You are welcome! @@АндрейМаксименя
Guys, you have to do it with the free notes and problems in their website. This is my second time watching, after doing everything in the course notees and it is making so much sense now.
ahh I've never been so attached to a lecture video till i joined cs50. its magical how can i watch this in focus 2 hour straight and understand almost everything . 😂
Note: 1. Machine code: binary langauge 2. A programmer writes "source code." (higher level) 3. A program "compiler" translate our source code to machine code. 4. "scope" means "context in which variables exist"
This course is very entertaining if your try to retype the code in a editor while viewing. I'm inside Godot retyping examples from the lecture. I'm sure this will help my brain absorb more information. I've learned that I don't know how to get user-typed information in GODOT 4 yet. But I will figure it out.
The lecture was engaging, well-structured, and provided a solid foundation for understanding fundamental programming concepts. The instructor’s ability to break down complex topics into manageable and relatable segments was particularly impressive. It’s clear that this university is committed to equipping its students with the skills and knowledge necessary to excel in the tech industry.
After Justice course I found CS50 and it's just as well produced, so it really helps in engaging, even though I wasnt intending to go with C, but to start from scratch once again it's a great presentation before jumping right into Python conveniences 🐍
I finally understand how things execute in the command line and why you have to indicate the program to go up one folder and then run the program from the 'outside' So when we are in the terminal, when we 'enter' commands such ls, cd, grep or whatever, we are telling the computer to execute a program in one of the folders in our path, if we want to run an executable file, we would have to add it to our path and possibly give it an alias, maybe even make a .desktop file to it or we can: Go up one folder with '.' Go in the folder that contains the executable file with '/' Execute the file by calling it by name was we would a function inside a script. At the very least, that's my take on it.
Apparently much of the commands used in this course are use in linux as well. I think there is a course called Library Carpentry and its pretty much a course on how to use the Linux Terminal.
Very nearly. You're right about it making sure that you specify the local file rather than one that might be found in the path. But the single dot means the current directory, and the slash is just to delimit each element in the path. So rather than up-one and down-one "./" Just means the current folder and "./program" means the file program in the current folder. You can do "cd ." and check that it leaves you in the same folder as you were before.
can you help with one thing. Commands that Profs is using (make hello.c and clang hello.c in the next video) to run and compile the program are not found in my terminal. Why is that? and by the way there is no $ sign at the begining there is a path that leads to my folder.
Another, more grim, example of the dangers of integer overflow is the THERAC-25. One of the software errors, out of many, was a flag variable that can overflow and reset back to 0. Which allowed the continued use of the machine, resulting in injuries and 3 deaths.
As complete beginner , learning all this concepts in a row is super confusing , I know this is an introduction to CS and it's not supposed to be in Depth in every single subject but man we went from 20% to 80% speed from week 1- week 2 in the blink of a eye, the 700 IQ nerds inside the class don't help either they just make me feel more stupid responding questions that I wouldn't have figured out by myself in a whole years . The teacher David J. Malan is also great , good energy and excitement but I wouldn't say for sure this course is for complete noobs like me , I've rewatched this almost 3 hours long video like 3 times and I still have stop the video in certain concepts , but maybe it's just me , this is for Harvard's students after all.
@@d33zknots88going over it again and again means you watched the video not just once, right? And, are you practicing the examples that the prof is doing?(I'm asking for me to figure out how best to grasp the concepts)
@@theafricanliberationagency4652 Yes you go over the parts you dont understand and make sure you taking down notes, then you apply what you've learnt to the exercises the professor has given. Another thing you should also be doing is looking at other peoples work and try to understand their code. To retain what you've learnt you can make up your own scenarios and try to apply as much as you've learnt previously into it, thus solidifying your revision. and main thing is keep coding, you will always learn something new, even at times where you think you know the lesson.
So "int" is integer (as always in programming). In this case, int is being returned as a value that tells the operating system that the function has been performed successfully.
I have the feeling that time passes differently when you are there. I would definitively be so absorbed by what he says, that I would not mind the time. For the teacher though it must feel like a full body workout :))) We also don't know how long the break is between different classes.
I have been writing software for 15 years, this is such a great intro. happy for anyone who's starting with this material.
Really? I thought it was horrible. Spoke way to fast and failed to elaborate. I feel sorry for the kids.
@@the-naked-sailor I think it goes through a lot of content in a really cohesive manner. anyone starting here has a lifetime of learning ahead, I think of this video as a table of contents or index for the future.
@@tomasb3191 what languages do you speak?, and, what kind of software do you write for pleasure?
@@the-naked-sailor there's a pause button for a reason lol.
@@detectivegrumpy4652 lolololoololololololololol...... you idiot. The only reason you see it is because I put it there.
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 🖤
Can you tell me what you did after the CS50 course? What languages did you learn?
@@mskadwa yes
Please tell us so they can too?
@@BerekeTSame Lol nah. The comment section on these lectures isnt for questions or community learning, its rather for people to make general comments and acquire Likes.
😮 17:21
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!
How that meat taste?
@@adan6566 why so mad
@@ApathyGaming01 boffa
Bros probably that person who says "pause" every 2 second.
@@shuri07 🍑💨
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!!!
Is this series helpful to mean I'm a beginner and I don't understand a thing when my teacher taught and they taught either . Is this full c course?
@@Ara-ara-g this is a computer science course. It teaches the basics. In the course they'll be using C, Python, HTML, CSS, Javascript and SQL. Buuuuut like I said: It's a computer science course not a course about one single language. Because if you know the basics of programming syntax and concepts you know literally any language (even though all use some form of different flavor of these basics)
@@aliti9315 then where can I learn full c course in youtube?
@@Ara-ara-g you should focus on completing this course first.
You honestly might be one of the best, if not the very best teacher online for someone new to programming or computer science. Thank you so much for making this free for anybody to learn from, and explaining things in a very digestible chunks.
Things I didn't understand, you've broken down very simply, and in an entertaining way. I'm very impressed and plan on following all 10 weeks of this class.
Hows ur progress
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
thanks mate
Thank you @@Naveen-ql6ry
not all heroes wear capes
Thanks for your help 🙂
Anyone say this is enough to learn...? Then why all youtubers spending 10hr of time to teach c??
i LOVE this new intro! gives a great spooky suspensful vibe
I agree, feels like watching a TV Series or so xD
It's similar to the Silo OST for me, at least in a middle
The learning curve is steep. I watched one time through, but need to watch it again.
David, you and your staff and Harvard as a whole are helping me recognize my dreams. I started out as a tradesman and I decided my body was not worth being destroyed to get a paycheck. This course has given me the courage to take the course as well as get my Bachelors in CS, so thank you to you and your team!
So glad to hear!
Prof. David Malan clearly understands the material at a granular level. His lectures are the absolute best.
Greetings Prof@@davidjmalan
I'm Oscar from Uganda, East Africa 😊 but currently studying computer engineering in Tehran, Iran
My deep heartfelt gratitude to you and the entire team.
I just started watching the series and I'm a little confused and overwhelmed and need some guidance
How do you advise me to go about this? I watched the scratch lecture but never downloaded nor did I practice because I thought it wasn't that necessary.
When do I move on to the next lecture?
Is it after I've practiced and understood every concept covered in one lecture or how exactly do I move on? I badly wanna learn and get a good grasp of these concepts.
ThanK you Professor
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.
30 years wow . that's great. help me out. @1:41:41
@@Piratagorranegra What part are you having trouble with, the:
print("%i
", add(x, y));
line?
@@yapdog on line 16 I have an open bracket and it's giving me error expected identifier or c' { and has green arrow pointing to the bracket.
@@Piratagorranegra let me see the code; just paste it here.
@@yapdog 1 #include
2 #include
3
4 int add(int a, int b);
5
6 int main (void)
7 {
8 int x = get_int (" x: ");
9 int y = get_int ( "y: ");
10
11 int z = add (x,y);
12 printf ("%i
", z);
13}
14
15 int add(int a, int b);
16 {
17 return a + b;
18 }
The best CS course with the best teacher!
wow, it took me 3 days and a handful of error messages to get through this lecture. I'm v excited to take this course. Thank you for making it available to the public
Hey Veronica, I guess same here. Did you ever get an error message about the word 'make' right at the beginning?
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
Amazing lecture Devid. Even my college professor took around 1.5 month to teach all of these concepts which you have teached in just 2.5 hours. Thank you.
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
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!
what makes this one less clear
@@rubii3421 read him once again
@@rubii3421 homie literally said this one is easily more understandable lol
Finally the new CS50X is out, was watching the live stream version until now. Thank you Professor David Malan and team for this.
i love his energy. I love learning from this man.
for sure for sure he is passionate about C. and I love the vibe for sure for sure he is a great teacher.
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! :)
I have never seen any teacher that much eager to answer students questions.
He is really ❤❤❤
Absolutely a great resource. Any one with any background can jump to CS by this kind of resource...... Thank you so much from India........There are some idiots who are doing videos saying "Why not to go for cs50", just to get some vews.
Agreed 😊
I'm so smart thanks to you. I have little nephews back in India and it makes me cry to see how much more opportunities they will have 😃
Some of the best lectures I've ever seen, super grateful to have the ability to watch these! Thank you!
Estoy tomando este curso para por fin aprender código y darle un giro diferente a mi vida y mi carrera.
yo iigual bro, suerte
exitos maestro aguila genio fenomeno crack
I am SO grateful for having the visual representation you included. I never realized I am in fact a visual learner until now.
If you're watching this after Lecture 0, consider yourself lucky to found CS50, and luckier to have completed the first lecture and moved on to the second. To Seize that huge amount of fortune, quickly return to the lecture!
This is the biggest opportunity to learn programming❤. All thanks to Prof and team. We're learning
Great start of the new year to drop 12 CS classes all in the same day. Time to learn!
Happy new year David Malan and CS50 team!
Being a 53yr old student (pre req for AI class), I really appreciated the video game, y2k, and (WOW!) Boeing real world examples of the implication of code written with care, esp. in regards to efficiency!
50+ as well! 🎉
What AI class?
i tried code 1 year ago i started with python gave up found this chanell from code camp and learned so much more and are now learning C
The best CS course with the best teacher!
I love these lectures they just keep getting better every year🙌🤙
If I had got a teacher like that with so much energy I would be happy to learn anything
The introduction is really good.. One of the best parts of the online lecture
For anybody curious enough:
You can print your history of commands and pipe its result to grep and look for any command that you wrote that contains the string passed to grep
So lets say you mv a file named duck.txt and you don't remember where you put it:
history | grep duck.txt
That should return the whole command in which duck.txt was used.
Thanks for an example. Didn't think about that one. Actually, not really good with grep and find for some reason. Constantly mix them up.
I can never find anything in my laptop for some reason xD
I usually use locate but doesn't really work and I haven't got around installing whereis
You are welcome!
@@АндрейМаксименя
Guys, you have to do it with the free notes and problems in their website. This is my second time watching, after doing everything in the course notees and it is making so much sense now.
Hy is this enough to learn c then why all youtubers spending 10hrs of time to teach c lang? Pls reply
@@Pranitha63 I think this is enough to learn the basics of cs, but yeah not enough to learn C.
@@Pranitha63 it is not enough ..it is just basics of c ..fool
ahh I've never been so attached to a lecture video till i joined cs50. its magical how can i watch this in focus 2 hour straight and understand almost everything . 😂
Note:
1. Machine code: binary langauge
2. A programmer writes "source code." (higher level)
3. A program "compiler" translate our source code to machine code.
4. "scope" means "context in which variables exist"
What an amazing teacher and team! Another year grateful to be quacking along with you guys! Greetings from Perú !! 💻🐤
starting this beautiful series now, will look back in this comment when I become a software specialist. Thank you so much CS50 LOVED IT❤❤
Robert from Brasil here! 😎Another lecture completed!!!
Thank you Prof.Malan I am just starting C programming
I just loveeee this course!!! Thanks Harvard and Professor Malan!
Talk about a way to start the year!
This course is very entertaining if your try to retype the code in a editor while viewing. I'm inside Godot retyping examples from the lecture. I'm sure this will help my brain absorb more information. I've learned that I don't know how to get user-typed information in GODOT 4 yet. But I will figure it out.
What an incredible teaching. Thx for the course
Woah ! The end was amazing .. enjoyed it .. 👏🎉
I pretty love this new intro ,very impressiive!
Amazing course, thanks from Brazil, Recife!
The lecture was engaging, well-structured, and provided a solid foundation for understanding fundamental programming concepts. The instructor’s ability to break down complex topics into manageable and relatable segments was particularly impressive. It’s clear that this university is committed to equipping its students with the skills and knowledge necessary to excel in the tech industry.
Very clear instructions for beginner 👍love it~ thanks million ☺️
1:23:45 omg the visuals make things so much easier to understand thank you!
Love the opening theme. 007 finally is going cyber
I feel good when students ask questions. 🥰
david the best instructor ever
Simply Amazing!
Happy New year everyone and team CS50X . Mark your present if u are starting it from 1/1/24
This intro is a masterpiece!
Аt the end I expected the duck to shoot at me like in the Bond 007 films )
Golden gun 😂
are we not gonna talk about this introduction that should win more spotlight here?
After Justice course I found CS50 and it's just as well produced, so it really helps in engaging, even though I wasnt intending to go with C, but to start from scratch once again it's a great presentation before jumping right into Python conveniences 🐍
This legend is a gift to humanity
I finally understand how things execute in the command line and why you have to indicate the program to go up one folder and then run the program from the 'outside'
So when we are in the terminal, when we 'enter' commands such ls, cd, grep or whatever, we are telling the computer to execute a program in one of the folders in our path, if we want to run an executable file, we would have to add it to our path and possibly give it an alias, maybe even make a .desktop file to it or we can:
Go up one folder with '.'
Go in the folder that contains the executable file with '/'
Execute the file by calling it by name was we would a function inside a script.
At the very least, that's my take on it.
Apparently much of the commands used in this course are use in linux as well. I think there is a course called Library Carpentry and its pretty much a course on how to use the Linux Terminal.
Very nearly. You're right about it making sure that you specify the local file rather than one that might be found in the path. But the single dot means the current directory, and the slash is just to delimit each element in the path. So rather than up-one and down-one "./" Just means the current folder and "./program" means the file program in the current folder.
You can do "cd ." and check that it leaves you in the same folder as you were before.
love you bro, thanks!
@@logaspam
Thank you!@@paolaReina9684
can you help with one thing. Commands that Profs is using (make hello.c and clang hello.c in the next video) to run and compile the program are not found in my terminal. Why is that? and by the way there is no $ sign at the begining there is a path that leads to my folder.
Another, more grim, example of the dangers of integer overflow is the THERAC-25. One of the software errors, out of many, was a flag variable that can overflow and reset back to 0. Which allowed the continued use of the machine, resulting in injuries and 3 deaths.
this session is really gorgeous
1:06:33 There is a principal in life and programming and that is don't repeat yourself unnecessarily.
such great energy, to anyone watching this is way more valuable than bitcoin.
Thank you Pr Malan ! I hope to see you soon in October in Harvard 😊
The best intro for a course. Or "The first cinematic intro for a course in the whole world" #CS50
Great David! thanx for all
Impressive lecture. thanks cs50💛
For a complete beginner, lecture one was a lot to take in, but easy non the less once you've done an in depth study after.
I wish everyone of you luck and enjoyment of this great course. There is no better course for intro to CS than this!
As complete beginner , learning all this concepts in a row is super confusing , I know this is an introduction to CS and it's not supposed to be in Depth in every single subject but man we went from 20% to 80% speed from week 1- week 2 in the blink of a eye, the 700 IQ nerds inside the class don't help either they just make me feel more stupid responding questions that I wouldn't have figured out by myself in a whole years .
The teacher David J. Malan is also great , good energy and excitement but I wouldn't say for sure this course is for complete noobs like me , I've rewatched this almost 3 hours long video like 3 times and I still have stop the video in certain concepts , but maybe it's just me , this is for Harvard's students after all.
Broo i feel you 🙂
My nephews inside of India love this guy 😁🙃
I just became a fan of David Malan Sir!
no complains absolute masterpiece
Yep! Completed week 1 today.
i watch these every year and never move on. lol
The last 10 minutes were very impressive.
That was fast ❤ good luck to every one.
simplicity at it's peak.
If you are from non english speaking country and find david superfast while teaching try reducing speed to 0.75 👌👌👌thank me later
I'm from india and i would prefer to turn on the subtitles.
Frfrfr with subtitles
@@_mykitchen2301right..
This one felt so much harder than the first scratch lesson damn
aswrr
@@prof-pras Same here lol, lost braincells over Mario blocks but as u go over it again and again, you understand it better.
@@d33zknots88 ukkk
@@d33zknots88going over it again and again means you watched the video not just once, right?
And, are you practicing the examples that the prof is doing?(I'm asking for me to figure out how best to grasp the concepts)
@@theafricanliberationagency4652 Yes you go over the parts you dont understand and make sure you taking down notes, then you apply what you've learnt to the exercises the professor has given. Another thing you should also be doing is looking at other peoples work and try to understand their code. To retain what you've learnt you can make up your own scenarios and try to apply as much as you've learnt previously into it, thus solidifying your revision. and main thing is keep coding, you will always learn something new, even at times where you think you know the lesson.
Honestly i have always preferred static typing simply because it helps with debugging a LOT
Waiting for the C++ lesson! Would like to learn something more advanced such as template metaprogramming!
Great lesson! That was a lot of information for a newbie like me 😅
Best thumbnail of all time
Heyyy watching this from 2024 ❤
god damnit I just love that intro music!
So "int" is integer (as always in programming).
In this case, int is being returned as a value that tells the operating system that the function has been performed successfully.
Looking forward to the next video
Day-1 : Completed.
Linux will always be a must.
Awesome
I love Harvard cs50
2.5 hours with a 10 minute break is insane
I have the feeling that time passes differently when you are there. I would definitively be so absorbed by what he says, that I would not mind the time. For the teacher though it must feel like a full body workout :))) We also don't know how long the break is between different classes.
Happy New Year 01/01/24
So excited !!!!!🎉
Awesome lecture!!!