Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
miguelgrinberg
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
31.
▲
by
miguelgrinberg
3y ago
Microdot creator here. Happy to answer any questions about Microdot if you have any!
32.
▲
by
miguelgrinberg
3y ago
My assertion is that none of the refactorings in the 3.0 release bring a benefit to the community. I did not imply that the entire 3.0 release is void of improvements.
33.
▲
by
miguelgrinberg
3y ago
Explain to me how you would apply this concept to a book. Or to a YouTube video. I'm not unreasonable, I get that things have to change from time to time. I just think maintainers should think more carefully when they introduce breakin
34.
▲
by
miguelgrinberg
3y ago
So consider what happens when you try to learn Flask in a world like the one you describe. You pip install Flask, and you get 3.0. Next chapter asks you to install Flask-Login, and now you are forced to downgrade Flask. What you are saying
35.
▲
by
miguelgrinberg
3y ago
Normally tutorials ask readers to install latest versions of everything. If you have to provide a version for every package used in a tutorial, it means that every time any of such dependencies releases a new version the tutorial has to be
36.
▲
by
miguelgrinberg
3y ago
Knowing how to build a parser manually will make you much much better at generating, and most importantly debugging, automatically generated parsers.
37.
▲
A toy programming language in 137 lines of Python code
(blog.miguelgrinberg.com)
121 points
by
miguelgrinberg
3y ago
|
44 comments
38.
▲
by
miguelgrinberg
3y ago
Have you reported these? The library has a fairly complete testing suite, and if you are saying there are regressions I'd like to know what those are so that I can make sure the testing is adjusted to cover those cases going forward. T
39.
▲
by
miguelgrinberg
3y ago
Thank you so much. Glad to hear you've found my work useful.
40.
▲
by
miguelgrinberg
3y ago
Thank you, Ricky! The privilege was also mine. :)
41.
▲
How to Retry with Class (2016)
(blog.miguelgrinberg.com)
2 points
by
miguelgrinberg
4y ago
|
0 comments
42.
▲
by
miguelgrinberg
4y ago
What few people understand is that by responding you are also elevating the engagement score of the ridiculous take and ensuring it gets in front of many more eyes.
43.
▲
Ignore All Web Performance Benchmarks, Including This One (2020)
(blog.miguelgrinberg.com)
2 points
by
miguelgrinberg
4y ago
|
0 comments
44.
▲
3 Reasons Why OpenAPI Is the Best Documentation Platform for Your API
(twilio.com)
1 points
by
miguelgrinberg
4y ago
|
0 comments
45.
▲
API Authentication with Tokens
(blog.miguelgrinberg.com)
4 points
by
miguelgrinberg
4y ago
|
1 comments
46.
▲
APIFairy: Automatic OpenAPI Documentation for Flask APIs
(github.com)
1 points
by
miguelgrinberg
4y ago
|
0 comments
47.
▲
Moneylike
(doctorow.medium.com)
3 points
by
miguelgrinberg
4y ago
|
0 comments
48.
▲
by
miguelgrinberg
4y ago
I explain this in the post. The goal is to optimize the application for users. I really don't care if Postgres is faster than SQLite or viceversa, I just want users to have a snappier application. The experiment was to swap out the dat
49.
▲
by
miguelgrinberg
4y ago
SQLite isn't running in WAL mode. This application isn't just read-heavy, it is ready-only for users, so I wouldn't think this will make a difference. The writes occur while everybody is sleeping, from a cron job that runs on
50.
▲
by
miguelgrinberg
4y ago
This isn't the topic of the article so I haven't included it, but I have taken several "solid steps" to optimize this application throughout its year and a half of being in production. This article is about one of them o
51.
▲
by
miguelgrinberg
4y ago
I did not feel that was a relevant topic for this article. I have spent a good amount of time over the life of this application optimizing indexes, though. But the article is about how I designed a test to benchmark these two databases, no
52.
▲
by
miguelgrinberg
4y ago
For this particular application I discuss in the article it would make no difference, since there is only one not heavily used table that uses UUIDs. All the other tables use integer primary keys. Also this may be not a very popular opinion
53.
▲
by
miguelgrinberg
4y ago
The point of this exercise was to determine how these database perform with same schema, and if it makes sense to make the jump from SQLite to PostgreSQL or not. As a side note and since you ask, the indexes on this database are fairly well
54.
▲
by
miguelgrinberg
4y ago
This is 100% correct. This is a dashboard application that is mostly read-only for users. There is a cron job that imports and writes new data once per day.
55.
▲
by
miguelgrinberg
4y ago
I think you are oversimplifying this. If you don't know how FastAPI handles sync code, then you can't claim it is on par with Flask. I suggested it might use an executor, after looking in their code, they use a thread pool support
56.
▲
by
miguelgrinberg
4y ago
Not sure what you mean by "ignoring async". If you write your handlers as regular functions, I would imagine FastAPI is going to send them to run in an executor. So all the concurrency benefits of FastAPI go down the drain, and no
57.
▲
by
miguelgrinberg
4y ago
Something that I think not everybody realizes is that Flask does not require extensions for most things. The extensions are nice because they integrate with the Flask configuration object, and with before/after request handlers when it
58.
▲
by
miguelgrinberg
4y ago
This is really a matter of preference. I do not use Flask-Admin on my projects, I have always preferred to design my own admin pages than being forced to accept the choices that are imposed by these big extensions. This allows me to have a
59.
▲
by
miguelgrinberg
4y ago
Flask Mega-Tutorial author here. This was a surprise. :) Happy to see people continue to find my tutorial useful and relevant. If you have any questions, I'll be happy to answer.
60.
▲
by
miguelgrinberg
6y ago
Hi, author here. I believe I did discuss this, and in fact, I list the same a) and b) conditions you mention using slightly different words. Quoting the article: "To benefit from the async style, an application needs to have tasks that
More ›