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.
I regularly receive DMCA outside of America, which I wished I could reply to "your law doesn't apply to me, cite the right one in my jurisdiction or get lost".
But I can't.
Because my hosting will process those by default and shut my sites down unless I just comply to the take down, no matter how legitimate it is.
It can be even a bogus take down from a US point of view, or even a take down for a non existing content.
Doesn't matter. I have to show that I comply, or 48h later, my server is shut down.
Check the terms of service and the acceptable use policy of your host; even if the DMCA doesn't apply to you directly, it would apply to a U.S. based host, and you agreed to their terms when you became their customer.
You're aware hosting companies can have locations in multiple countries but still be controlled by a parent company in the US? So if the US parent company doesn't play ball, that has the potential for downstream issues in the other hosting locations. Easier/safer as the company to just play ball. If you're so concerned about this, find a host based and run solely from a safe country and not controlled by a US-based entity.
Your hosting company is bound by US laws. Their defense for hosting illegal content is the DMCA, which allows them to claim that it is your responsibility (the end-user's).
This is the entire point of DMCA: exempt service providers from indirect liability for content on their network (at the cost of taking action for that content upon receiving notice).
If DMCA applied to them but not to you, how could that possibly work? A US company could host content that no one is responsible for?
In other words: this is not about you but about your hosting company. They are the ones the DMCA apply to, and was written for. This is true no matter where you live, if your hosting company is US.
You think it's reasonable for companies worldwide to be bound by US law? Companies doing business in the US, sure, but random hosting companies? Do you also expect US companies to honor takedown requests according to North Korean law?
If your hosting provider is in the EU, the Digital Services Act shields them from liability for hosting illegal content, provided they respond swiftly to takedowns, which is why they do.
The DMCA is the United States implementation of the World Intellectual Property Organizations treaties. So there likely is an equivalent statute in your jurisdiction.
It doesn't matter. DMCA is an implementation of the IP protection (and a very biased one). While the treaties might agree on the principles, fortunately most other countries don't have an equivalent mechanism. "Yet.", a pessimist would add.
Is this actually true? I was under the impression that the DMCA came first and then similar stuff was put into WIPO treatries but not necessarily ratified or fully implemented in the domestic copyright law of other countries.
Not really sure what the point of this comment is to be honest. Other jurisdictions didn’t simply copy and paste the DMCA. OP’s desire to be threatened in terms of the regulations that they’re actually beholden to is completely valid. Because, spoiler alert, international treaties aside, not every implementation is as terrible as the DMCA.
Aren’t you a little bit touchy yourself? During the Cold War espionage is the core mission of any intelligence agency. Anything can be acquired - bought or stolen, would be acquired. That wasn’t bad or a sin. That was the reality. Whether they became products is another matter.
The US was well ahead of the Soviets on technology advancement. That was indisputable. So KGB had to work harder than CIA on this front. Doesn’t mean the concept is foreign to CIA
I saw a story a while back where someone made their personal number premium rate to reduce nuisance calls (it was successful); that may also be an option.
Not a great one as the problem is Google rather than the callers, but I guess you could also have an immediate route to voicemail with the message "this is not, repeat not, google".
Sure, $50 is enough to file a court claim saying Google owes you £300 because of the cost of sorting out this mess.
It might work pretty well, Google can choose to say oh yeah, that's about right, here's £300 or they can make this into a big deal whereupon their in-house legal team are immediately going to spend far more than £300 just showing up and making their position in court, and they might well lose if you tried to get it fixed and they were useless.
How do you win a race against Usain Bolt?
Just run faster than him!
Every time one gives the other a technically correct but perfectly inapplicable advice, we just answer "yeah, run faster". It's our own private joke of a shortcut keeping our BS in check.
The thing is, when you are giving advice, you are usually missing a lot of context. Context you may not know exists, and that the other person won't or can't share with you. Maybe the other person doesn't even realize this context is needed or is aware of it.
But if you had this context, you would understand how unpractical your advice is to this particular situation, because it's too generic. Too theoretical.
After all, most smokers know they should quit, most fat people know they should lose weight. If it was just about hearing the right path, we would have little problems we can't solve.
But knowing where you should go tells you less than expected about the path ahead because of the aforementioned missing context, such as where you start from and the obstacles in your way, whether you'll be alone on the road or with friends or wild animals, if you have to carry a big bag, if you need to forage for food and if it rains.
That doesn't make advice useless.
But you should not expect to see the effect right now. Rather, they may contribute to a self-realization that the person has to build for themself, adapted to themself. It takes time, it's hard, and there are a lot of other things that fight for being a priority.
Assuming it was good advice to begin with of course, and there are not that many good advice to go around.
Python is python because people cared about other things for many years.