3 ms·
Django is ok if you have a web site with content and forms that map nicely onto SQL tables. Any 1998 website, basically, with not too much of a load. Any other
by tgv 7y ago
Django is ok if you have a web site with content and forms that map nicely onto SQL tables. Any 1998 website, basically, with not too much of a load. Any other setup, and it gets messy.
> Needing to put dict property names `{'in': 'quotes'}.
Now that's a part I like.
- TylerE 7y agoThe inclusion of that made me question the entire thing. It's just so...wrong. Does the author not realize that you can use (almost) anything as a dict key? a = 123 b = 'foo' d = {a:456, b:123, 2.3:'2.3'} print(d) >>> {123: 456, 'foo': 123, 2.3: '2.3'}
- droithomme 7y agoIt seems he just doesn't want to type quotes and is OK with breaking everything else to get that. Which is fine, but no one else supports that change request.
- coldtea 7y ago>Does the author not realize that you can use (almost) anything as a dict key? You can do that in JS too, it's just coerced to string, so you can do e.g. {foo: "bar"} where foo is not a variable, but assumed to be the string foo. In Python you can't, because you couldn't tell if it's foo the string, or a reference to an existing (or non-existing) foo variable. That said, in JS, not only you're limited to using (real or coerced) strings as keys to Objects, but you also need to use the square bracket: {[foo]: "bar"} syntax, so it can tell that you need it to use the value of the variable foo as the key (else it will understand {"foo": "bar"}).
- TylerE 7y agoThat's different though. In python there is no coercion going on with the keys.
- diminoten 7y agoGraphene + React is just fine.