Hacker News new | past | comments | ask | show | jobs | submit login
[flagged]
davidhariri 9 months ago | hide | past | favorite



Blogspam? It's just "hello world".

For those unaware: Flask is a web framework for Python. My personal favorite, similar to Django but imo with better docs.

Nothing really changed in 2023 (or 2022, or 2021, or 2020, or 2019...), flask is stable, easy to understand, and works well. If you learned it all 5 years ago, you're still current, it still works, and it's still a tool that can be used for fun or profit, or both.

But the blog post is all "correct", it's that easy (or easier) to get a flask hello world going.


This could’ve been an interesting article. E.g.:

- how to use flask with recent pytest versions (testing isn’t totally trivial in flask IME - maybe it’s better in 2023?)

- recent language features that make flask nicer

- best ways to deploy, maybe given that the devops landscape has changed a ton since flask started

- special preparations for NoGIL?

- compare the best flask event loop vs fastapi performance. could be interesting to see if there’s a gap and if it is closing/widening over time. (can I avoid async/await?)

etc


What especially is "2023" about this? This has been a ~good way for almost a decade now, even though poetry and other hot-new alternatives have muddied the ecosystem with all of their pros and cons...


As with all the previous posts from dhariri.com, it's kind of clickbait.


step 0: maybe use FastAPI instead.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: