515 karma · joined Dec 27, 2017 (8y ago) · 421 submissions
comment 7y ago · link · parent
https://docs.djangoproject.com/en/2.1/topics/checks/
Standardization is always an issue, I guess. Env vars seem to be the norm in the community in my experience, whatever that's worth..
comment 7y ago · link · parent
This has long been a problem in the python/pip community, as its basically impossible for the build tools to determine the dependencies of a package without fully downloading and running the setup.py file.
Static config files are static for a reason!
comment 7y ago · link · parent
Are you aware of the hedonic treadmill?
> Our modern concept of egalitarianism is mostly a product of religious thinking
You must be kidding. Religions promote the most brutal form of inequality ever. Study up on "dalits" in India.
comment 7y ago · link · parent
Meditation, yoga are examples of the good one's. Sacrificing babies, worshipping cows are the bad one's.
Religions don't provide us with the tools to actually determine whether something is real or just a story.
The scientific method is to my knowledge the only feasible way to figure out the ground truth.
Religions do promote exploration of ideas, but they are mostly a waste of time and energy that might be better spent elsewhere.
comment 7y ago · link · parent
I tried doing it -- even with the knowledge of how it works, it took me at least a day to get to an acceptable implementation.
comment 7y ago · link · parent
But isn't the point of a truly cross platform framework just that? So what if fuschia has a different native toolkit. Maybe they are trying to launch a platform specific api that's more bare metal.
I mean Isn't the whole point of flutter is that you take the same app and run it anywhere?
comment 7y ago · link · parent
What's interesting is that you can literally run the same app on all platforms, because flutter draws the whole ui in dart code, using the canvas. And well, dart can run basically anywhere now...
comment 7y ago · link · parent
Bottom line, Its very safe to say that dart is a much better language than JS.
The language of choice has never ever, really mattered in software history.
And don't forget that the big G is behind this thing, which is well equipped to push it forward without the need of it being as popular as js.
comment 7y ago · link · parent
comment 7y ago · link · parent
@app.route(...)
def login():
...
Is literally the same thing as - def login():
...
login = app.route(login, ...)
Hopefully that clears up the air a bit?comment 7y ago · link · parent
Well, I don't see what's especially difficult about this?
from flask import request
@app.route('/login', methods=['GET', 'POST'])
def login():
if request.method == 'POST':
return do_the_login()
else:
return show_the_login_form()
I would actually argue that this is better, since I have to type "request" only once.Although I have to admitt, the middleware thing looks quite composable.
comment 7y ago · link · parent