3,142 karma · joined Feb 12, 2018 (8y ago) · 1,452 submissions
comment 1y ago · link · parent
When there are particular topological textures like skyrmions you do get a spin hall effect which is quantised but in applying currents you also change the magnetisation through something called spin transfer torque.
comment 1y ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
It's a really weird one, effectively, car dealerships can offer finance to customers. Generally many of these customers won't be able to get an unsecured loan for the value of the cars they're interested in, which is why they get finance through the dealerships. The dealerships make commission on the finance they sell. They had to disclose this for many years in the finance paperwork. The court case that was lost by a dealership was that the size of the "secret" commission wasn't disclosed to the car buyer who might have sought finance somewhere else had they known. This is all quite unlikely because if you were going to do that, you'd likely have taken out a loan prior to going to purchase the car, which is why this is so odd.
The government is halfheartedly signalling that they may seek to limit through legislation any compensation because it's likely to ruin the UK car lending market which will then kill off what vestiges of car manufacturing still remain in the UK.
comment 1y ago · link · parent
I'm not sure I agree, sure they require you to pull in a large dependency, and that might not be good for some use cases (particularly microservices) where you're sensitive to the final size of the image but for e.g. with Django you get spawned a project with settings.py which configures your database, middleware, etc. and urls.py which configures your routes, and then you're really free to structure your models and endpoints however you like.
comment 1y ago · link · parent
https://www.django-rest-framework.org/api-guide/pagination/#...
That's the same as for most other configurable things. And ultimately if you want to override the behaviour for some specific endpoint then you can still easily do that by just implementing your own method for it.
After working in Go now for several years, what I've found is that generally people just don't some things in their first pass because it's too much work and makes the PRs too large, and then they retrofit it afterwards. Which meant that the APIs were less consistent than the ones I worked on in Django.
comment 1y ago · link · parent
Just picking one of the examples I gave, pagination - that requires (a) query param handling (b) passing the info down into your database query (c) returning the pagination info in the response. In Django (DRF), that's all built in, you can even set the default pagination for every endpoint with a single line in your settings.py and write no more code.
In Go your equivalent would be wrangling something (either manually or using something like ShouldBindQuery in Gin) to decode the specific pagination query params and then wrangling that into your database calling code, and then wrangling the results + the pagination results info back.
Composable components therefore always leave you with more boilerplate
comment 1y ago · link · parent
Looking at economic stats, spending on food and drink outside of the home grew enormously between 1992 and 2004 to overtake spending on food within the home: https://onlinelibrary.wiley.com/doi/full/10.1111/j.1467-3010...
comment 1y ago · link · parent
For e.g. in my city I can order Pizza from Dominoes or Pizza Hut. Both are located on the same road. Dominoes uses it's own staff, Pizza Hut uses Deliveroo. I've tried both but Dominoes will delivery reliably in 25-35 minutes, and Pizza Hut took over an hour and a half. Guess which one I use still!
comment 1y ago · link · parent
I find such a blanket opinion to be unhelpful, what's fine for writing microservices is less good for bootstrapping a whole SaaS app and I think that people get in a bit too much of an ideological tizz about it all.
comment 1y ago · link · parent
In my day job I work with Go and while it's fine, I end up writing 10x more code for simple API endpoints and as soon as you add query parameters for filtering, pagination, etc. etc. it gets even longer. Adding a permissions model on top does similar. Of course there's a big performance difference but largely the DB queries dominate performance, even in Python, at least for most of the things I do.
comment 1y ago · link · parent
comment 1y ago · link · parent
They translated the documentary's participants use of the word Yehud i.e. Jew into 'Israeli'. One of the cameramen Amjad Al Fayoumi (who effectively directed it, since the 'directors' were based in the UK) had posted on Facebook support about the 7th October terrorist attacks that kicked all of this off.
The problem is that the BBC and other media producers need to be squeaky clean when doing reporting on this, on both sides. It's not even like this was a quick news broadcast where accuracy needed to be checked, it was commissioned well in advance, they followed the boy around for months.
comment 1y ago · link · parent
I (UK) bought this (https://ao.com/product/wnc25410gb-bosch-series-8-idos-washer...) Bosch one a few months ago and it is perfectly usable without enabling any of the smart capabilities though. I haven't connected mine to wi-fi at all.
comment 1y ago · link · parent
The paper was written by four Chinese authors who had previously collaborated together. It was one of the worst papers I've ever seen. It went over the same ground as previous studies so in that sense there was nothing new, but more bizarrely it did things like state well known equations incorrectly (most notably one of Maxwell's equations) incorrectly and drifted off onto total tangents about how one might calculate certain things in an idealised situation that had no relevance to the method that the authors used. My assumption is that they had generated the methods section using generative AI and not gone over it with even a cursory check.
But the worst part is that I recommended rejecting it outright, and the journal just sent it on to it's slightly less prestigious sister journal rather than doing so.