What EU-wide law requires it to be as easy to cancel as to sign up? I’m sitting in Germany right now and I’m unaware of any such law - though it might very well be recent and not fully transposed into German law, or might be situational or not widely complied with.
There is a law that requires that subscriptions can be cancelled online within "the click of a button" with automatic confirmation. (since 2022)
If no such option to cancel is implemented by the provider the minimum contract duration is void and you can cancel immediately.
We have the regulation in Germany, but afaik it's not EU-wide. The "Gesetz über faire Verbraucherverträge" basically says that if something can be subscribed to easily online, then the company also has to provide an easy unsubscribe. It goes into detail how such a button should look like, how labelled, what data the confirmation page has to list and how fast the confirmation has to be (immediate).
I believe the EU law sets the minimum required conditions for contracts (fair, not abusing the customer), but the individual EU-countries can implement more consumer friendly rules.
It's horrendus in Germany trying to cancel a mobile phone subscription, internet service, gym membership or the likes. You have to jump through hoops like sending a registered physical letter, 3 months before the end of the service period for it to be considered a valid cancellation ("Kündigung"). Without this, you're forced into paying for another year.
EU regulation is badly needed to cut out this anti-consumer nonsense.
This is no longer true, it is limited to a one month period (after a possible 2 year minimum contract to offer "special discounts") in advance and every contract can be cancelled online.
People not used to AI have blind spots that prevent them from seing evident use case like this.
I'm always surprised at the amazed look of my friends when they see me concretely use the tool. They just didn't picture it until they saw it in action.
It's not even people not used to AI, I developed a tool that uses AI to do something, and then kind of couldn't be bothered to fix some of the output manually. It only occurred to me days later that I can ask the AI to fix it.
On HN, hundreds of devs worked for FAANGS and this includes working on all the projects we also claim are immoral.
If you start discussing this topic here, you will get a wall of people defending their position and a ton of downvotes, but the bottom line is, they are like the politicians or CEO they blame: if the money is good enough, morality is flexible.
No amount of BS in their beautifully worded code of conduct will change that.
You can focus on multiple things, you know. There is some low-hanging fruit in Python for performance in certain circumstances (mostly hot loops, at least, in my experiments). For example, if you need to extract a string from a datetime object, doing so manually with f-strings is about 20% faster than strftime. If you use the string mini-format language instead, it’s 40% faster.
What you’re describing is myopia. Focusing purely on performance at the expense of anything else would probably result in highly unreadable code, yes. Being aware of and caring about performance, and choosing to prioritize it when reasonable is not the same thing.
You can, but each added focus degrades the quality of the others.
The key principle is thinking with a mindset of cost.
Even if it’s low hanging fruit, there’s a world of difference between assuming we can work it in, and saying, “this is what it will cost, and this is what we won’t work on result”.
And similarly, saying ”that’s impossible” is not in the same universe as “the cost is extremely high and it’s not important enough to us to pay that cost”.
IME from the perspective of an SRE / DBRE, performance is nearly always given up (if it’s ever even considered) in favor of making things easier, and this tends to have large consequences later on.
People seem to have taken the quote, “premature optimization is the root of all evil” to mean “don’t focus on performance until you absolutely have to,” but when you push them to prove that they don’t have to, they often haven’t even profiled their code! Cloud compute – and especially K8s – has made it such that it’s expected that you simply over-provision and scale as necessary to get the throughput you need. I don’t personally see running through a profiler (ideally as part of CI) as being particularly difficult or onerous.
For having worked 30 years to get out of the socially inept zone, and given plenty of people consume known carcinogens willingly, I think this statement is a bit simplistic at best.
Smokers know they should stop smoking but it's hard to do so. Yet the path is clear.
If you are socially blind by nature, the path is really not clear and you are going to suffer from your ignorance while painfully battling to get out of a hole you can't see but feels very much is trapping you.
You probably don't need to compel them. PRISM have shown it's easy to setup a program where they are forced to just share everything through a back door to the gov and not tell anyone.