CS50 2021 in HDR - Lecture 9 - Flask

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

TABLE OF CONTENTS

00:00:00 - Introduction
00:01:17 - Web Programming
00:02:29 - http-server
00:03:36 - Paths and Routes
00:06:01 - Flask
00:20:11 - Forms
00:32:58 - Templates
00:41:10 - GET vs. POST
00:46:50 - Model, View, Controller
00:52:37 - froshims
00:58:49 - Form Validation
01:08:05 - CSS and Flask
01:10:29 - Jinja Loops
01:16:08 - Model
01:22:41 - SQLite and FLask
01:34:13 - Email
01:40:46 - Sessions and Cookies
01:47:58 - Login
01:54:24 - Shopping Cart
02:02:50 - Search
02:10:09 - JSON
02:15:18 - This was CS50

***

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

Woooow! The difference between any tutorial and this video is the teaching professional.

William-nx
Автор

For anyone who's curios, the lightbulbs binary says </html>

AriaHarmony
Автор

Few videos on youtube that you don, t need to listen with twice speed

airepublic
Автор

Just finished the Week 9 lecture and can't believe i'm now at week 9

DeKu-rloy
Автор

Best lecture ever. And seeing how teacher David deals with his mistakes is another level of teaching.

The audience silence is driving me crazy 😠

Mamdouh_
Автор

This was a lot, but I can't help loving it. So much fun.

cristianmedina
Автор

Guys, please make sure that you name the templates folder as "templates". It wont work if you name it as "template". We get error 500.

shivaprasad
Автор

See how smart people with the name David are!

davidx
Автор

My brain hurts badly after watching this lecture, so much information for a noob xd

guillermoemmanuelsanchezin
Автор

Wow! Amazing Professor. I am planning to enroll for CS 50

anuradhamangalpalli
Автор

please can someone explain to me what is happening here(1:23:39)? I am stuck at this point. like how do I create a database...

FatimaZahra-zbub
Автор

18:17 finally, this is answered😭 (the significance of 'question mark' in URL)
but honestly it looks like he doesnt know the answer. He just answered out of spite of giving a satisfying answer😂
18:22 nvm. he actually did give a good answer here
1:02:03 wait, is /register actually supposed to be necessary or did we only changed it cause /greet was already used??
or are these routes actually supposed to be specific? in relation to file name or input tags? i m confuse
1:04:34 him making mistakes actually is effective for learning
1:17:02 i guessed it out of the blue to be 'empty dictionary', , i feel proud of little things😭
1:37:35 this is funny though😂
1:45:34 cookies compared to resort stamps
2:01:52 my question as to why he never used elif or else in these conditionals has finallly been answered
finally done (July 16 2023)

raicyceprine
Автор

Admittedly I just started the video but in the first three quarters of an hour there was nothing that php couldn't do. I'm curious where the advantage of flask will be.

immanuelkantholz
Автор

1:58:20 I tried modifying the ids and my request works, they append to the session["cart"] even with a different id from the database. I think line 33 does nothing because it doesn't check if the key exists in the database, only if the id is None. By the way, it doesn't show a book with id 30, for example, because in line 38 we select books with ids 1 to 7. But I think we should stop before appending, am I wrong?

e-raticartist
Автор

2:12:33 how did the data get converted to json format. has anyone tried this?

sashildath
Автор

Anyone know what theme David is using? That's the best light theme I've seen(for me anyways) but I can't find it. 😫🤷‍♂

dakoderii
Автор

This messing with HTML code reminds me of the times when I was changing the content of the Steam website to add a different amount of money to the wallet than the default 10, 20, 50 euros, etc. I don't know if the Steam people were so lazy to fix it, or if they just thought that if someone cares so much, they will just let them add an undefined amount to their wallet, after all, it's profit for them anyway

sowki_tv
Автор

David making those mistakes makes me really nervous about pset9, does it hurt? 👉👈

sayori
Автор

It's kinda reassuring that when he asks the audience of students for answers, they have no idea either 😆

Really fascinating stuff though, I never realized that HTML was being dynamically generated

montheist_tv
Автор

Wow every time there's less comments as the series goes on

sayori