Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ralfn
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
30 ms
·
271.
▲
by
ralfn
10y ago
But it's easy to forget, just once. For example: x => () => {} x(); // undefined instead of empty object This can lead to immediate syntax bugs, eventual errors throws and silent semantic errors. Which rein
272.
▲
by
ralfn
10y ago
If one forgets the (parentheses) you may or may not immediate or later can an error _somewhere_. It isn't about the workaround -- it's about all the subtle bugs it will introduce in the edge-cases, for example: f => () =
273.
▲
by
ralfn
10y ago
But fetch() returns a promise, rather than a handler you can use to cancel the request. So some people wanted to add "cancel" as a third potential state of a promise. Which smells a bit like a hack to me. Why stop at cancel? The F
274.
▲
by
ralfn
10y ago
But we already got our pitch forks out and everything!
275.
▲
by
ralfn
10y ago
I'm not disagreeing with your assessment of the current situation, but forever is a long time. > I know there's large chunks of our population that would welcome some other countries stepping up >t would certainly save us t
276.
▲
by
ralfn
10y ago
Yes both have query languages that are not native to your application (i.e. to your application it is data, such as a string or a json). But that is design flaw of SQL and MongoDB and does not apply to all databases.
277.
▲
by
ralfn
10y ago
That is wildly inaccurate. RethinkDB provides client drivers that model the rethinkdb queries in Javascript, so data and query are not combined into some horrible JSON query language (MongoDB) or horrible string based language (SQL). Input
278.
▲
by
ralfn
10y ago
Yes. And dangerous in the long term because the US wont be the most powerfull country forever. High trees catch a lot of wind. People are more likely to hate the US. When the tides change and the power inbalance goes away the hate and mistr
279.
▲
by
ralfn
10y ago
Don't assume malice. This would be considered completely normal in China, both legally and culturally. You would a have hard time explaining the concept of privacy to them. This is likely not some big conspiracy.
280.
▲
by
ralfn
10y ago
Its actually easier to believe this was by accident because in China there is no expectation of privacy.
281.
▲
by
ralfn
10y ago
That seems to be the type of answer they too believe to be appropiate. UsIng hipster day of week infrastructure like dc/os. And how about a normal infrastructure? Like OpenStack and Ansible or dedicated servers? We can't have a da
282.
▲
by
ralfn
10y ago
Is it still badly documented and near impossible to setup a cluster? Single node performance is good. Jespen tests are there. But devops says no. After two days they simply couldn't get it to run it in a cluster. So for now we switched
283.
▲
by
ralfn
10y ago
The operators are converted to methods, however methods are 'looked-up' at run-time. Not in a hash-table though, think C++ style vtables. So int + float isn't compiled to int.addFloat( float ) but to int.add( float ) and then
284.
▲
by
ralfn
10y ago
In your logic you equate statically typed and object oriented vs dynamically typed and functional. Object oriented programming is by origin (Smalltalk) dynamically typed. Class based programming languages (which we really shouldnt consider
285.
▲
by
ralfn
10y ago
That's a common misconception about the JVM. Although the language features allow type-erasure, the JVM actually stores the types with the data and uses tracing for optimization. This keeps the compiler output smaller and allows classe
286.
▲
by
ralfn
10y ago
>Even if it weighed five hundred pounds, as long as the handlebars are on a lubricated pivot, forward motion and striking the handlebar will knock the bike over. The weight point is different. You really don't flip 'over'.
287.
▲
by
ralfn
10y ago
This focus on helmets is ridiculous, because you only have to types of bikes: 1. Death traps 2. Dutch bikes You want less people to die in traffic while riding a bike? Don't make a helmet mandatory. Make the dutch bike mandatory. Your
288.
▲
by
ralfn
10y ago
It helps that our bikes are heavy and you sit up straight. The rest of the world keeps talking about helmets, even though they ride complete death traps. Their mountain bikes and race bikes. Off course you are going to die riding one of tho
289.
▲
by
ralfn
10y ago
>Both drivers and cyclists seem to believe this, but it is an exaggeration. I wonder how much safer this misbelief is making us though.
290.
▲
by
ralfn
10y ago
It's almost impossible to compare any single piece of a tax system in isolation without taking into account the cost of the living, market access and the tax system as a whole. It may be better to look at government spending in proport
291.
▲
by
ralfn
10y ago
>And the physics of falling off your bike are not that different and the ground is about as hard in Canada as in Netherlands. You would think that would be true, but no. 1. The ground in Holland is flat. 2. The bike is heavy. 3. The bike
292.
▲
by
ralfn
10y ago
> If your commute is one hour cycling in guessing you might sweat and need a shower? 1. The weather is Holland is kind of optimal in maximizing not sweating. 2. We are not going that fast. The effort we put into it is identical to a norm
293.
▲
by
ralfn
10y ago
>185 cyclists died last year in the Netherlands [1]. Of the almost 8+ million people biking almost every day. Just to put that in perspective. And that's not even counting the tourists, which likely skew the results a bit (since the
294.
▲
by
ralfn
10y ago
That is true for the original statement (that helmets provide safety on a bike) as well. I mean, you would expect some improvement, but (as a Dutch citizen), i expect it to prevent harm in the same way wearing helmet during sex would preven
295.
▲
by
ralfn
10y ago
The real solution off course is to rid your country of the embarrisment of Erdogan. Vote. If thats still legal coming next election.
296.
▲
by
ralfn
10y ago
>Development wise, we test for Edge ocasionally and so far we haven't come across Edge-specific quirks like the good ol' days of IE. Edge is simply expansive to test for, because at the places where i worked the only windows la
297.
▲
by
ralfn
11y ago
Some of those features are only possible because Java is statically typed. They couldnt exist in the same way for "pure" JavaScript.
298.
▲
by
ralfn
12y ago
>Well you didn't disprove my assertion (I was obviously talking about front end frameworks) by citing a front end framework that came with an extensive testing framework. So why on earth are you saying something without backing it w
299.
▲
by
ralfn
12y ago
> The decision to have scopes be objects that (sometimes, not always) inherit from one another, is entirely on Angular It's almost as if they try to shoehorn a custom adhoc programming language straight into your dom-nodes, but they
300.
▲
by
ralfn
12y ago
>Anything that makes programmers productive is a great tool. Angular 1.x definitely makes teams productive. Definately? Based on what? The teams i've seen and projects i've been on that use Angular take much longer and end up w
More ›