8 ms·
Tangential, but I practically owe my life to this guy. He wrote the flask mega tutorial in what I followed religiously to launch my first website. Then right
by nadermx 1y ago
Tangential, but I practically owe my life to this guy. He wrote the flask mega tutorial in what I followed religiously to launch my first website. Then right before launch, in the most critical part of my entire application; piping a fragged file in flask. He answered my stackoverflow question, I put his fix live, and the site went viral. Here's the link for posterity's sake https://stackoverflow.com/a/34391304/4180276 https://stackoverflow.com/a/34391304/4180276
- svieira 1y agoNice story! My guess is that the site was https://yout.com/ https://yout.com/ given your profile. Does it still run Flask?
- nadermx 1y agoIt's all grown up now. Runs on Django for the admin panel. Not that flask ever failed. Just became easier to manage the user base that way.
- swyx 1y agobecause of Django admin? any downsides/notable warnings for people considering Flask v Django? any migration guide that's helpful?
- devjab 1y agoTo limit the amount of languages we support I recently rewrote one of our backend services from Go (with SQLC) to Python. I hadn't worked with Python "web" for a while and started with Litestar and also their Advanced-Alchemy. Part of the reason was that their DTO's and dataclasses seemed like a good way to skip Pydantic. Anyway, once models became complext it wasn't easy to skip Pydantic and it also wasn't easy to deal with Advanced Alchemy. One afternoon I got so annoyed with it I rewrote everything with Django Ninja. It took me 4-5 hours that evening to recreate all the previous weeks stuff with Django because of how good the batteries included are. I'm not sure I'd ever use any other web framework than Django going forward, and I'm not using half of it (including the admin). I think Litestar is great by the way, Django is just so easy to produce with.
- swyx 1y agook so the recommendation is use Django Ninja? first am hearing of it.
- nadermx 1y agoGo with what you understand easier. No downsides to making an app in either, other than the logo.
- nadermx 1y agoAfter sleeping, this is my old man yelling at clouds moment. I'm glad they are trying something new.
- signalblur 1y agoThanks for sharing this story. It goes to show how much of a difference being kind and helping a stranger can make. Hope I'm able to do the same for someone one day :)
- miguelgrinberg 1y agoYou have made my day, sir. :)
- nadermx 1y agoRock on man
- LostMyLogin 1y agoWhen I was in college I discovered the flask mega tutorial and fell in love with programming. Switched from an economics degree to software engineering and now work in the industry. Thank you for the work you put in.
- rajamaka 1y agoAlso discovered flask in college but was a year away from finishing a marketing degree. I'm now a SWE with just a marketing degree!
- johnisgood 1y agoI am a SWE without any degrees. :D I dropped out to... study. Yeah, our education system sucks that much. https://www.youtube.com/watch?v=zDZFcDGpL4U https://www.youtube.com/watch?v=zDZFcDGpL4U
- barrenko 1y agoEconomist here, started to learn to code as an elaborate way to procrastinate on my master's thesis after I've quit playing videogames.
- naldb 1y agoI also learnt a lot from your tutorial of Flask. Thank you.
- c0balt 1y agoThank you for the Flask Tutorial, it got me started in web development and down the line into systems development.
- AtlasBarfed 1y agoDid you throw any money his way?
- nadermx 1y agoDidn't know he had a patreon, just set it up so the first 100 people, since that's the max it allowed, can get a 1 year access to his discord https://www.patreon.com/miguelgrinberg/redeem/f/C28EB241BB https://www.patreon.com/miguelgrinberg/redeem/f/C28EB241BB
- icelancer 1y agoThat's awesome!
- miguelgrinberg 1y agoThank you so much!
- KingFelix 1y agoAwesome
- xp84 1y agoDidn’t even know you could do this, but what a cool way to do that — helping others learn from him while also materially supporting him.
- Imustaskforhelp 1y agoThank you!
- bunnybender 1y agoThank you!
- Y_Y 1y agoCool story, but was your life really at risk in that situation?
- nadermx 1y agohttps://torrentfreak.com/tag/yout/ https://torrentfreak.com/tag/yout/
- Y_Y 1y ago> Brazil Advances Criminal Prosecution of American Yout.com Operator Touché! I see sibling comments assuming I was being sarcastic (without mandatory sarcasm tag!), but what I was really hoping for was more backstory like this. I guess it depends on how you read things in your head.
- jryb 1y agoNot all statements should be interpreted literally.
- shoobiedoo 1y agoYou just took the wind right out of his sails
- uoaei 1y agoI missed the part about a boat?
- actionfromafar 1y agoTurn the new Flask logo upside dowb, it’s a sail.
- antod 1y agoLuckily all the whooshing has refilled them.
- 1y ago
- wiseowise 1y ago> flask Off-topic, but I absolutely loathe new Flask logo. Old one[0] has this vintage, crafty feel. And the new one[1] looks like it was made by a starving high schooler experimenting with WordArt. [0] - https://upload.wikimedia.org/wikipedia/commons/3/3c/Flask_logo.svg https://upload.wikimedia.org/wikipedia/commons/3/3c/Flask_lo... [1] - https://flask.palletsprojects.com/en/stable/_images/flask-name.svg https://flask.palletsprojects.com/en/stable/_images/flask-na...
- bigmadshoe 1y agoIt’s hideous!
- Stratoscope 1y agoI hope they go Full Cracker Barrel on this: 1. Original logo has country charm and soul. 2. Replaced with a modern soulless logo. 3. Customer outrage! 4. Company (or open source project) comes to its senses and returns to old logo. https://media.nbcboston.com/2025/08/cracker-barrel-split.jpg https://media.nbcboston.com/2025/08/cracker-barrel-split.jpg (n.b. The Cracker Barrel Rebellion is sometimes associated with MAGA. I am very far from that, but I have to respect when people of any political stripe get something right.)
- UltraSane 1y agoThe Cracker Barrel "controversy" seems to have largely been fueled by bots.
- eatkd 1y agoAny source for that?
- toomuchtodo 1y agohttps://www.nrn.com/casual-dining/cracker-barrel-s-logo-controversy-was-driven-by-bots-what-operators-should-learn-from-this https://www.nrn.com/casual-dining/cracker-barrel-s-logo-cont... https://www.wsj.com/articles/bot-networks-are-helping-drag-consumer-brands-into-the-culture-wars-63dffa04 https://www.wsj.com/articles/bot-networks-are-helping-drag-c...
- lucb1e 1y agoFor anyone else wondering whether to click to find what "fragged file" means: no, it's not about Quake and the linked page does not mention 'frag' at all. The question asks how to stream a file to the client in Flask as opposed to reading it all into memory at once and then sending it on. I figured as much (also because e.g. IP fragmentation) but first time I hear this alternative term for streaming
- jbs789 1y agoSimilar story here. Pleasant to work with too. The accessibility of this material and also the broader python ecosystem is truly incredible. After reflecting on this recently, started finding ways to give back/donate/contribute.
- hoerzu 1y agosuch inspiring story!! And please bring back: https://www.microphonetest.com/?lang=en https://www.microphonetest.com/?lang=en one day of vibe coding
- tomhow 1y agoWe fixed the typo in the first sentence: ow -> owe. Hope that's okay! Edit: corrected typo in "typo".
- ohduran 1y agoSame happened to me; I owe a career to having gone through his Mega Tutorial. Miguel if you're reading this, thank you from the bottom of my heart.
- pietroppeter 1y agoYet another appreciation story for Miguel’s mega tutorial. In 2017 I used it to create our wedding site and learn a bit of web dev (my background is in data science). To motivate me to actually do it I used the strategy the fund the then occurring refactoring of the tutorial. I am still very fond and proud of that first time I actually went and funded some open source effort, it gives you back more than you might expect
- rnikko 1y agoSame here with following the mega tutorial. Truly one of the goats.
- jacobtomlinson 1y agoSame! This tutorial from 2012 was one of the first things I did in Python. Coming from PHP it was so refreshing. https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world-legacy https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial...
- robertlagrant 1y agoThe other answer to your question there is why Flask is so good. One short file and you have a backend and a frontend!
- Izikiel43 1y agoWhen I saw you were using readlines to read binary file I thought wtf at first, seems like he noticed as well.