Seeing David use the duck made me realize I’m not alone. Such a real moment Love this course so much.
@ProgrammerPenguin6 ай бұрын
when does he do that?
@lintz_lin6 ай бұрын
@@ProgrammerPenguin 1:22:42
@ProgrammerPenguin6 ай бұрын
@@lintz_lin thanks for replying so quickly and also that's funny as hell.
@tensevo3 ай бұрын
I know right, students need to see you are both godlike and with human flaw, for them to be inspired.
@ClearSteps-e6lАй бұрын
@@tensevo exactly
@dwkeirstead10 ай бұрын
The moment with the DDB was hands down my favorite moment so far in these lectures. So relatable and David’s reaction was honestly adorable 😅 so he is human too…
@stepanrusinko2456 Жыл бұрын
This is the big reckoning, so much is connecting together. My head hurts but I am not giving up this far.
@lpdemodimi11 ай бұрын
This is the way.
@FlowersByIrene10 ай бұрын
I just looked at Problem Set 9 Finance and it truly does all come together. Quite overwhelming
@boundlesstraveller9 ай бұрын
Keep it up and enjoy every minute of it...❤
@arnab_x248 ай бұрын
This man is a legend and the best teacher that I found till now... Lots of love and respect to prof. David J. Malan and the entire team of CS50
@alainrouleau7 ай бұрын
6:36 This is actually a very good definition for a so-called "framework" that I never really thought about before. It's not just third-party code. But it's third-party conventions as well. Which means you may have to learn a whole new syntax, etc.
@johnpasir320710 ай бұрын
great class... definitely not for beginning beginners but more for advanced beginners
@meera.srivastava5 ай бұрын
i was an absolute beginner when i started cs50 and i think that if you care about the subject and are willing to put in the time and effort, then you can do it! it’s bound to be hard, but just keep going yk?
@velezmusic43509 ай бұрын
It was nice to see the maestro get flustered but gracefully demo his googling / prompting. That hunch and deep breath was not giving staged 😂
@lpdemodimi11 ай бұрын
ok this really fried my brain. Thank you for the efforts, will need to let that sink in.
@CarlosReyes-e3o3 ай бұрын
At. 1:22:47 LOL. He is Human!!! I have never loved him more than at that moment! Thank you for what you do, David!
@UnboxRacing7 ай бұрын
"Let me go ahead and PROPOSE that...." Bingo! Classic David. I wish we had Profs like DM when I was at school.
@MarkBetterDev Жыл бұрын
after every lecture i watch, i tend to think to myself how i would've coped if i was a complete beginner. even with a year of coding, this course is hard
@prcvl11 ай бұрын
this course is really easy
@berkeumutsahinturk92111 ай бұрын
just no@@prcvl
@harshpalsinhzala109211 ай бұрын
I was a complete beginner when I took this course 2 years ago. I don't think it's that hard. In fact because of it, I fell in love with Computer science and now I'm half way through my degree.😊
@elokthewizard9 ай бұрын
@@prcvlthis was a productive and positive comment. this is the kind of comment that makes people value your input and become your friend.
@elokthewizard9 ай бұрын
i came from the odin project - the insight this course provides is the difference between blind flailing and planned execution
@lionking25925 ай бұрын
🎉 completed. This is awesome intro for flask begginers. THANK YOU 🙏🙏
@teaganp50117 ай бұрын
I’m really thankful for this class. It really feels like I am part of the class and that duck debugger moment get so relatable
@fyardlest14 ай бұрын
The real Flask course!
@MazineZ11 ай бұрын
Every lesson fulfills my brain with so much information and this is no exception.
@AnythingGoesCodes6 ай бұрын
Duck >> Stack Overflow > glance at the audience for help
@josephlevin2 ай бұрын
~1:23:00 That was very rich. I admire David's humor and candor in that moment, and appreciate how I'd have done exactly as he did- Googling then Ducking for an answer!
@Piranha_Dark Жыл бұрын
Thanks once again for an amazing and helpful content. Cheers to 2024 🎉
@faizanahmed9304 Жыл бұрын
Thank you team @CS50
@Aman-fz1ew11 ай бұрын
Awesone Video . Simultaneously coding helps to understand the concept
@BrokenRecord-i7q10 ай бұрын
Do you use fuel monitor.
@TheeInfoBaron13 күн бұрын
David using the duck and google for the getlist command reminded me that he is indeed human. Novel moment, absolutely love the guy!❤
@mikael59149 ай бұрын
Excellent course quality aside. Is anyone else obsessed with the soundtrack (intro)?
@paolobalestriere12015 ай бұрын
present
@TháiĐạt20124 ай бұрын
David is so good that even when he messes up, people still like it
@grindinguy11 ай бұрын
hardest part of the all lecture imo
@Alexander-iq5yq11 ай бұрын
Something weird happens at 50:27
@coreydubia288110 ай бұрын
AI generated David!🤣
@jeannoelhonisch70376 ай бұрын
I knew he would be an alien or sum cause my teachers didn't teach as he does.
@mr_DIY Жыл бұрын
That’s the lecture here. A lot but interesting ❤
@ronaldogandra3 ай бұрын
"RALLRIGHT, any other questions this far on this...?" some of David's phrases just stick in your head lol thanks for this course!!
@CodingByAmp10 ай бұрын
love cs50 flask
@wrt37783 ай бұрын
So much energy! Thank you.
@ChristopherBruns-o7o5 ай бұрын
1:03:55 can't you use base64 and assign an id to get Sports in hex and css the id tag?
@GenZ_01_4 ай бұрын
Another high quality lecture🙏🏽
@jazzyniko9 ай бұрын
app = Flask(__name__) Is this calling a function or creating an object from the class Flask? Can someone explain this, please? (on minute 12:22 more or less)
@jazzyniko9 ай бұрын
Ok I found this so now I understand that better: In Python, classes can be callable, which means they can behave like functions when called. When you use Flask() in Flask, you're actually calling the Flask class, which acts as a constructor function to create a new instance of the Flask application. So, to clarify, Flask() is both a class and a function. It's a class because it defines the blueprint for Flask applications, and it's a function because you use it to instantiate objects of that class.
@alainrouleau7 ай бұрын
Using the CS50 duck was nice... But I'm surprised I haven't seen more use of the built-in help function? I don't think it's even been mentioned once? Could be wrong though. Very easy to use, for example, in the terminal just use >>> help(print) at the prompt. Will tell you everything you need to know about the print function and all its parameters. Same thing for any other object such as a class, function/method, module, list, dict, str, int, etc. Plus, there's code completion in VS Code or simple dot notation with documentation pop-ups. Has all of that been disabled? Knowing how to access and read documentation is a skill every developer or programmer needs to know.
@ptd3v9 ай бұрын
I got a little lost in this episode, I think it was the Jinja stuff. The duck saving the day was amazing.
@bastionbet38098 ай бұрын
Почему так много людей пишет, что курс сложный?!) Я программирую пару месяцев и этот курс выглядит максимально понятным и доступным для всех!
@shawn14isme3 ай бұрын
Here i was thinking that i was doing crazy stuff with bootstrap last week.
@chrisjoyce40477 ай бұрын
There are two problems with the code presented in the lecture in the froshims section. Firstly, David's code uses request.form.getall which does not work in the current CS50 ide. You need to use request.form.getlist instead. Secondly, "Ultimate Frisbee" gives an error when a loop is used to check the sports with {{sport}}. To make it work you need to use "{{sport}}" instead.
@rida_brahim10 ай бұрын
i faced some trouble with the cart app, the session["cart"] is that holds the list containing the id's of books added to the cart isn't working, after debugging and printing the values i always find myself passing an empty list to the cart.html, i tried to figure what's going on and found out that the Sqlite command to books = db.execute("SELECT * FROM books WHERE id IN (?)", session["cart"]) didn't want to work, it seems that the syntax somehow wrong and even chatgpt told me that maybe sqlite is expecting multiple "?" to process the list and not only one "?" to use the list, but for professor David it's working fine, note: i didn't implement the logic manually i literally downloaded the file src9, any idea guys ?
@rida_brahim10 ай бұрын
i found the solution, i will post it here if someone got stuck with this problem, after debugging and adding another list of my own, like this : if book_id: session["cart"].append(book_id) list_test.append(book_id) , i noticed that session["cart"] didn't add all the id's appended to it but list_test had all the values in it, so it was a problem of consistency from session["cart"], the solution after explaining the issue to duck debugger was to add this line : session.modified = True | after appending to the session["cart"] , it seems that this line just tells flask that the session got some new changes. i'm using flask on my local machine and running the server on my windows not codespace so probably that's the issue.
@jeerasakchanprasertkul385610 ай бұрын
I faced the same problem. Another way to solve it is to change this line of code from: session["cart"].append(book_id) to: cart = session["cart"] cart.append(book_id) session["cart"] = cart It's not the best solution, but it works
@tonyvenice52522 ай бұрын
Strangely, I had the same error and chat gpt gave me the same answer as "Flask only tracks changes if you reassign the modified list back to session["cart"]." but my error was writing : if cart not in session: instead of if "cart" not in session: Now it works like in the course
@makira468527 күн бұрын
"what a good duck!" I say that EVERY time now
@FreakCho16 күн бұрын
looks like i need to watch the video again so that i can wrap my head around
@RomarioKurti2810 ай бұрын
Profesor is hilarious 😂
@UnboxRacing7 ай бұрын
If you are following this at home your won't have access to the same environment as David. Advisable to create virtual environment in 'hello' and run flask that way. Django would have been nice but DM's teaching is world class.
@freelance-writer3 ай бұрын
1:22:40 Love it. 🦆
@alex.triflesclear582711 ай бұрын
Finally got here, thanks god!
@ShivanshSanghvi Жыл бұрын
4th comment? also thanks cs50, amazing course from which I have learned a lot
@caiofernando7 ай бұрын
I have a question about the last bit of this lecture. Since he got rid of the template search.html and just returned the jsonified list of shows, at what point does the json file get iterated over and converted into a list with the titles of the movies? I'm assuming version 3 of shows has an extra piece of code at index.html that does that, right?
@usuariodefectuoso40466 ай бұрын
Yeah, i had to download the src material to see that on index.html these lines are added inside of the for loop (it sanitizes the title to prevent HTML injection) : let title = shows[id].title.replace('
@caiofernando6 ай бұрын
@@usuariodefectuoso4046 Yeah, I was able to find the answer in the notes as well!
@mallickpriyanshu9 ай бұрын
I love the moment of David with DDB 😂 He was honest and adorable and It's what all devs do when they get stuck 😂
@hemelhasan3488 ай бұрын
2:05:35 not working for me. Any solution!
@TheImaginativeSachin2 ай бұрын
1:10:58 As soon as you put a web application on the internet, bad things will happen to it! 😂 So true!
@SMD-kk8ud5 ай бұрын
Just....Awesome!!
@noaydev10 ай бұрын
I'm going to make it 🔥🔥🔥🔥🔥
@arungjose18493 ай бұрын
Can anyone please tell me why cs50 thought of teaching Flask rather than Django? Do more people use Django nowadays? Are there any frameworks better than flask and django, and was this just to teach the basics? Anyways, I really enjoyed the class
@LeelaSankharM3 ай бұрын
flask is a microframework and is simple than django. i think cs50 opted flask so that it doesnt overwhelm the students but teaches the fundamentals, get the job done. tbvh for me this was very intense, imagine how it would be for django. and also coming to frameworks which are better is a subjective topic ig!
@not_amanullah9 ай бұрын
This is helpful ❤
@RomarioKurti2810 ай бұрын
My last week 🎉🎉🎉🎉😂
@Herzhoz9 ай бұрын
This was the last one? great content, btw
@Nikita_Code9 ай бұрын
in my virtual workplace " flask run" give me an error in a web page 🙄
@UnboxRacing7 ай бұрын
Yup me too
@Svish_7 ай бұрын
Really wish you would've introduced the label tag, instead of using the placeholder-attribute, which is kind of terrible for multiple UX and accessibility reasons 😟
@chrisjoyce40477 ай бұрын
Continuing the lecture I see he fixed the request.form.getlist problem, but the second problem remains.
@swampguy2776 ай бұрын
the DDB moment was so damn funny hahah
@aopen1309 ай бұрын
01:22:00 wow. I can estimate the amount of sweat drip down his back while his code is not working in front of hundred of students.😅
@RomarioKurti2810 ай бұрын
How come in the shows part, the html placeholder is {{show}} while in the app.py file the variable is show(singular) and it still works?
@tjejenathina382910 ай бұрын
Unless I'm mistaken, it's because Flask uses Jinja as a template engine. Jinjas syntax uses double brackets while python only singular. But double check the jinja documentation so im not lying to you lol
@danon31708 ай бұрын
Привет из Ленинградского государственного университета 🤙
Anyone know how to open a terminal after I accidentally close all the terminal?
@boncoderz14306 ай бұрын
Click Open in integrated terminal after u right click any file in ur vsc.
@xiuzhenyang80475 ай бұрын
@@boncoderz1430 Thank you!!
@harshpareta-o6o2 ай бұрын
Cheers !
@ansh41313 ай бұрын
42:00
@luigi-b5m8 ай бұрын
Thank you.
@thetasworld7 ай бұрын
And I thought week 8 was tough...good lord.
@matei83276 ай бұрын
Its hard, Its useful to make projects and use every new thing that you learn in this week. Practice everythig ;)
@viniciusalencardev Жыл бұрын
very great
@八玲珑11 ай бұрын
这个教程真的很牛逼
@labaz_dictateurgamingАй бұрын
Game idea... let me go ahead and have a shot every time David says "Let me go ahead and..."
@not_amanullah11 ай бұрын
Understood++
@e.n857845 ай бұрын
I wonder if Yale will add the term "boilerplate" to their Bingo card
@BarronMartinez-tz1up8 ай бұрын
Coming here to prep for my interview next week for django web dev. I know im gonna learn alot and be entertained.
@Hillgrov6 ай бұрын
hopefully you know this by heart if you're going to apply for a webdev job :S
@Alec06 ай бұрын
How did it go?
@kidzeeplier24685 ай бұрын
how did it go?
@Hillgrov5 ай бұрын
@@kidzeeplier2468 guess OP lost all hope and moved into the wilderness.
@kidzeeplier24685 ай бұрын
@@Hillgrov and..he was never seen again.
@chrikke2 ай бұрын
If only there was a language that could do this kind of server side rendering lol
@bpopphixo96273 ай бұрын
Help me i don't know what i need to remember
@FreakCho16 күн бұрын
I think you should implement some starting things till he introduce src9 and then just sit and watch then rewatch the lecture again and focus what he is doing why is he doing that thing. maybe that would help
@tinvan81464 ай бұрын
1:01:16 his voice xD
@Dpk_YT Жыл бұрын
❤❤
@danilbanan406 Жыл бұрын
Why they using flask ? Why not FastApi
@hiramarturooliveromuoz372810 ай бұрын
Flask is better
@LoadNewYear9 ай бұрын
Flask is simpler for students to understand as many of us are beginners who are taking CS50 as their first course.
@bekay76638 ай бұрын
It's always strange when people act like they know more then the teacher. The entire course curated the way it is for a reason.
@quang.luu.1796 ай бұрын
👍👍👍
@chal7z4 ай бұрын
@Rapha_Carpio4 ай бұрын
40:05 what happen with these people, they dont ask question having the opportunity of be with this guy face 2 face........
@MrSomethingdarkАй бұрын
1:12:22 pipe meme
@SkepticLens Жыл бұрын
2nd comment?
@ferabreu19809 ай бұрын
What a good duck. 😄 But... CS50's staff is smarter than this. I'm sure it was all made up just to show the AI off. 😂
@JeremyMitts6 ай бұрын
If that's the case, David deserves an Oscar. It was the most believable acting I've ever witnessed... (stop it. humans make mistakes.)
@7amseel5 ай бұрын
I also suspect that a little bit. Because they are so prepared for everything, like every tiny detail to be mentioned is included in the slides and the code. Even the mistakes are intentionally designed so that David can teach the process of improving code instead of impossibly trying to get it perfect the first time. So, I have no reason to believe that they hadn't actually worked it all before and it accidentally was mistyped in his printouts. But still can't rule out the other possibility cuz we are all humans. (Somebody ask CS50 staff. I am curious!)
@SathvikP-v3v3 ай бұрын
I also think the same. Even though there exist so many platforms where you could debug errors, the team wants us to use the duck instead of other platforms which would limit taking help everytime. That was pre-planned for sure !