Recent submissions

Comment · 11 days ago
> I’m presenting from a presentation, I want to switch to a live demo environment, and to do so I need to turn off the presentation entirely?

While a bit annoying, that seems like the optimal solution within the constraints of apple's design culture.

Comment · 1 month ago
There is no such trick. Python is only now getting those sort of JIT style optimizations, and that one in particular still hasn't hit. Do not use += on strings in a loop unless you are certain the iteration count will be small.

There is an optimization for lists, and maybe that's what GP is remembering. l += is functionally different from l = l +. The former mutates l, whereas the latter creates a new l. The difference matters when the line above is m = l. The mutation version will mutate m as well (they're the same reference), the creates new version will not. This optimization can just as easily turn into a footgun if the programmer is unaware of it, and in that sense is unpythonic.

Comment · 1 month ago
It doesn't practically matter whether the ads are from google. They're shown on a third party site, not using google won't get rid of them, only not using that site will (or installing an adblocker...). Users very reasonably blame the site, who have direct agency to remove the ads.
Comment · 1 month ago
debugger;
Comment · 1 month ago
weird f*ing site. apparently doesn't like hn visitors and doesn't want me opening the console. i know when im not wanted
Comment · 1 month ago
It tells you a lot about the best value. It certainly doesn't tell you everything, and you might well pick a more expensive phone with less ram for other reasons, but all else being equal a phone with more ram will be better.
Comment · 1 month ago
The mercator projection has neither a top nor a bottom, it extends infinitely upwards and downwards. Hence all visualizations of it cut it off at some arbitrary point. Making antarctica humorously large does nothing besides make a point.
Comment · 1 month ago
People who actually care about their money often like to compare competing products and decide which one provides them the best value.
Comment · 1 month ago
There shouldn't be "mass layoffs" for that reason. If they are both reasonably large companies, the size of the HR department depends on the number of employees. When you merge the companies, the number of employees initially stays the same, hence there is no HR to be fired. You might consolidate the HR departments, and this might lead to some roles becoming redundant, but not on a mass scale. Similarly for accounting, marketing, etc.

The fact is that there are no synergies for many companies, even companies operating in the same industry. The reason for promoting a merger between such companies is exactly that they will see reduced competition and hence greater profitability. The ideal merger is actually between companies making different products, where the one company can benefit from more vertical integration.

Comment · 3 months ago
Was it released with it? Iirc they tried moving to such a license from bsd, which contains no patent grants whatsoever, and hence they thought it was a strict upgrade. The community did not agree so they moved back.
Comment · 4 months ago
It requires the claim to be made with "willful disregard for the truth". Notifying someone, especially with a cease-and-desist on fancy letterhead, makes it legally clear that they know better, and thereafter would be definitely libelling you (assuming the claims are in fact untrue and harmful). But you can still sue them for the claim prior to the notice, you just have to prove they should have known better prior to making the claim.
Comment · 4 months ago
A lot of these style of reframings seem to completely lack a theory behind them, as if reframing things will magically solve a problem. In this case, further vilifying or antagonizing drivers will do absolutely nothing to increase road safety. How would it? These memes won't reach the majority of drivers. Those it does, rather than feeling mollified, will feel accused, and hence will be more likely to drive recklessly around cyclists.

A reframing that would have the power to lower collisions between cars and bikes would be to blame the road design, or even the car design. These are things that can be easily changed for a large number of people if enough political will exists.

Comment · 5 months ago
People misunderstood your original reply. Correcting you is not pedantry.
Comment · 5 months ago
Language is a communication tool. If you misuse language you will be badly understood. The solution is to use the correct word for what you mean, not to accuse others of sophistry.
Comment · 5 months ago
Having assets under management doesn't mean you have that money. You don't own it, you are just taking care of it for somebody. When describing a company as an $X billion company, conventionally this is referring to the market cap. You could use it to describe other things they possess if you wanted to, but assets they manage will never be something they possess.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton