3,142 karma · joined Feb 12, 2018 (8y ago) · 1,452 submissions
comment 2y ago · link · parent
Natural England are a statutory consultee for planning applications, so if they oppose the scheme there is a good chance it doesn’t go ahead. It’s crazy that a government can decide to build something only for other arms of the state to block it with a narrow focus only on one aspect.
comment 2y ago · link · parent
comment 2y ago · link · parent
So for e.g. if you’re writing solvers for ODE systems, then you tend to test it on things like simple harmonic oscillators.
If you’re very lucky, some algorithms have bounded errors. For e.g. the fast multipole method for evaluating long range forces does, so you can check this for very simple systems.
comment 2y ago · link · parent
comment 2y ago · link · parent
The number of people I've had to explain this to when advocating switching from Flask/Django -> FastAPI on a CPU-bound problem because it's "faster"... drives me nuts.
I would say the biggest issue with async Django is that if you have an existing Django site, rewriting it to use django-ninja is not that straightforward if you're heavily invested in DRF, which just hasn't moved to add async support.
comment 2y ago · link · parent
585.
AI tool could influence Home Office immigration decisions, critics say(theguardian.com ↗)
4 points · by physicsguy · 2y ago · discuss
comment 2y ago · link · parent
https://www.railmagazine.com/features-1/time-for-electrifica...
comment 2y ago · link · parent
How many people do that becasue they have thought about what they perhaps look back on posting on MySpace or Bebo or whatever and think "thank god that's disappeared from the internet"?
591.
There's Almost No Gitlab(julien.danjou.info ↗)
38 points · by physicsguy · 2y ago · 72 comments
comment 2y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
You basically have either a property or a function with the name get_property for a certain number of things (queryset, serialiser, pagination class, etc.) in any case. I tend to recommend in our projects style guides that once you want to override the behaviour of a mixin, you don’t inherit from the mixin anymore.
The two biggest issues I came across with teams in DRF were people coupling the serialised directly to a single database model (i.e. using ModelSerializer everywhere, even when that didn’t make sense), and trying to put too much stuff into a single class based view or viewset.