Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
paol
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
30 ms
·
271.
▲
by
paol
10y ago
Yes, "foo".equals(bar) is useful in Java if bar can be null, but that's a different thing.
272.
▲
by
paol
10y ago
Don't do this. In languages where accidental assignment is possible (i.e. writing if(a=b) when you meant if(a==b) ), configure the compiler or linter to emit a warning in this situation. For example in C, GCC will complain about this w
273.
▲
by
paol
10y ago
Very cool. And also very depressing.
274.
▲
by
paol
10y ago
No idea about JSONB, but CTEs and window functions are common features in most systems, SQL Server included.
275.
▲
by
paol
10y ago
It probably is, but there's an even better reason: Windows may be worth getting rid of, SQL Server isn't (except perhaps on grounds of licensing cost) I've worked with all major RDBMS systems at one point or another and SQLS
276.
▲
by
paol
10y ago
Classic example of collateral damage. No one would have objected to his sponsorship message by itself, but in a world where advertisers and blockers are involved in no-holds-barred arms race this kind of thing is inevitable.
277.
▲
by
paol
10y ago
You exaggerate, but only slightly. Whatever the theoretical properties of the windows security model, it's a failure of usability, and that means most of the time none of it gets used. Windows is not alone in this, SELinux suffers from
278.
▲
by
paol
10y ago
I read the PDF version that is floating around the net and it wasn't mangled. What problem did you have with it?
279.
▲
by
paol
10y ago
Not the OP, but I do live here: because you can't have a concentration of startups without a concentration of venture capital, and that has yet to materialize. Nor do I see a particular reason why it should materialize.
280.
▲
by
paol
10y ago
Not much, i.e. there's no no enforcement of the law in practice. Having said that it's not that difficult to find jobs where the 8h day is generally followed, and work/life balance in general is not bad. Edit: to clarify a qu
281.
▲
by
paol
10y ago
> Redux reinforces that the majority of your app should effectively be (props) => JSX Sure, Redux strongly recommends that practise - and it's a good one - but nothing about it is specific to redux. You can factor your components
282.
▲
by
paol
10y ago
I'm 3 months into my first React/Redux project and wouldn't adopt Redux again if I were starting over. Don't get me wrong, it's not horrible, but it's not great either. Compared with the extreme elegance and si
283.
▲
by
paol
10y ago
If that's the case, that leaves the problem (from the consumer's point of view) of where to get access to a complete(ish) catalog of films. Netflix actually achieved this back in the disc-by-mail days. So we're actually movin
284.
▲
by
paol
10y ago
In his own words "Reality is made of cardboard and if you push too hard, you fall through." Describes his stories perfectly.
285.
▲
German economy minister says EU-US trade talks have failed
(bigstory.ap.org)
112 points
by
paol
10y ago
|
74 comments
286.
▲
by
paol
10y ago
Lots of large applications have extensive telemetry without any significant blowback (as far as I'm aware). MS Office, Firefox, Chrome, ... It's not undoable for utilities either, just the effort/benefit ratio probably doesn&
287.
▲
by
paol
10y ago
Rather bizarre logic regarding unit tests. Surely the correct thing to do is to add telemetry to the application to get metrics on feature usage. Of course this may not be practical for small utilities, like ls in the example. By the way ls
288.
▲
by
paol
10y ago
Not a very good parallel. The pope has real power in a large organization with genuine real world influence. (Not nearly as much influence as it used to have, but still.)
289.
▲
by
paol
10y ago
"Don’t Panic – The Facts About Population" is probably the ultimate Rosling presentation. Highly recommended. https://vimeo.com/79878808
290.
▲
by
paol
10y ago
Interesting, that page attributes use of the snake and palm tree to both Portugal and France.
291.
▲
by
paol
10y ago
You're responding to a statement I didn't make. I just corrected the common misconception that the SS tax is 11%, it's not, it's 34.75% [0] What would happen if those taxes were lowered is for economists to speculate, I&
292.
▲
by
paol
10y ago
You're apparently unaware that not all tax appears on your salary receipt. Employers have to pay 20% to SS, on top of the 11% that the employee pays. (This amount doesn't count toward your gross income for IRS purposes though, whi
293.
▲
by
paol
10y ago
Let me correct your numbers. For 1500€ monthly net your employer will pay about 3000€ (~20% income tax + ~30% social security). Multiply by 14 (Yes there are 14 salaries in a year. Don't ask.) and the yearly gross is 42000€. Edit: htt
294.
▲
by
paol
10y ago
> the question I am asking is whether it is possible to always get heads, an infinite number of times No. By my definition (lay, may be wrong), the probability is the ratio of heads to tails to which we converge at the limit (infinity).
295.
▲
by
paol
10y ago
> For any finite number of tosses you can certainly not converge to 0.5 I think you mean "may not" rather than "can not". But yes, that's why you need to resort to limits[0] to understand the problem. [0] https:
296.
▲
by
paol
10y ago
> doesn't mean that in the long run you will obtain the same number of heads and tails IANAM, but in my understanding that's exactly what it means, if you express "in the long run" as "the ratio tends to 0.5 as t
297.
▲
by
paol
10y ago
This is absolutely good advice, but people giving it rarely acknowledge that it isn't always possible. A particular irritant is that most (all?) db APIs make it impossible to use parametrized queries with IN clauses. I find myself havi
298.
▲
by
paol
10y ago
That's a fine principle for moral choices that only concern individuals but for society-level choices, of which there are many to be made, it's impossible by definition.
299.
▲
by
paol
10y ago
Setting aside whether "the EU intentionally cripples the UK's competitiveness", what would you expect the author (or anyone) to work toward if not their moral values?
300.
▲
by
paol
10y ago
My sweet spot for laptops is 4:3 @ 14in, but 16:10 @ 15.6in is a reasonable choice as well. 16:9 on the other hand has no place in anything but very large desktop monitors (say 27in and above). Whenever I have to use someone's 13in not
More ›