Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
coderzach
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
31.
▲
by
coderzach
10y ago
I see two issues with the ternary operator. One, the syntax is much less readable, and two, the consequent and alternate are both single expressions, so you can't do something like: x = if(something) { a = foo(); baz(a); } else {
32.
▲
by
coderzach
10y ago
Prepared statements can't have things like dynamic columns. I.e. imagine the user specifies a list of fields they want to see. Although, in that case you still probably want to lookup that the field exists.
33.
▲
by
coderzach
10y ago
It's bad because it's inconsistent with how every other attribute in jsx works. Nothing else in jsx changes the control flow of the code.
34.
▲
by
coderzach
10y ago
Now that sweet.js supports babel, the best option may be to write an if expression macro.
35.
▲
by
coderzach
10y ago
> All laws are moral. However, immoral actions may be lawful. Are you saying that there is no such thing as an immoral law? It sounds like from your comment that you're saying: There may be immoral things you can do legally, but leg
36.
▲
by
coderzach
10y ago
> By and large the law already has an answer Not really, morality =/= legality. I don't want legal self driving cars, I want moral ones. Laws will always be an imperfect implementation of morality. Do self driving cars have
37.
▲
by
coderzach
10y ago
They should probably have added an @2x version of the image, the text looks super blurry on high dpi displays. I'm surprised apple wouldn't have an automatic build process for generating multiple resolution versions of all images
38.
▲
by
coderzach
10y ago
Lightning is none of those things.
39.
▲
by
coderzach
10y ago
How about "No sir, never."
40.
▲
by
coderzach
10y ago
> That's the part banks do not care about so I think it's largely irrelevant in the context of this article. I have no idea where you got that idea, but it's not true. Which is why any deal that happens between institutio
41.
▲
by
coderzach
10y ago
I don't think those data tables are schemaless. It seems like the value prop here is that it efficiently handles heterogenous data shapes.
42.
▲
by
coderzach
10y ago
I've had great experiences with optional static typing from tools like flow[1] and mypy. I've found you can gain most of the bug catching and readability benefits of static typing, while having the power of dynamic typing when com
43.
▲
by
coderzach
10y ago
Why not just mock the HOC to be the identity fn? `(Component) => Component`
44.
▲
by
coderzach
10y ago
using `x` as a variable name is not the reason this code is terrible.
45.
▲
by
coderzach
10y ago
1) The default design of autocomplete makes your app look really bad. 2) There is an input for searching by name, email, etc. And you don't want it to auto fill with the users credentials.
46.
▲
by
coderzach
10y ago
This is already an existing problem with SNAP (food stamps), which I believe are disbursed once a month. You can totally use it all the first week of the month and be SOL for the rest of the month. As for rent, the current "safety net
47.
▲
by
coderzach
10y ago
The name.
48.
▲
by
coderzach
11y ago
Oh, yeah, I read it as if the ">>" was outside.
49.
▲
by
coderzach
11y ago
YES! I almost always find myself digging through the network graph of cordova plugins hoping to find one that works.
50.
▲
by
coderzach
11y ago
I don't think that's the case, the default behavior of gnu parallel is to buffer the entire output before outputting. The output will only be interleaved if the `--ungroup` option is used. Parallel also has --line-buffer, which
51.
▲
by
coderzach
11y ago
Postgres isn't designed from the ground up for high availability or scalability. Most of the in-built functionality for setting up HA wasn't introduced until 9.0, and the process of setting up HA postgres with automatic failover
52.
▲
by
coderzach
11y ago
http://observer.com/2012/01/uncanny-valley-the-real-reason-t...
53.
▲
by
coderzach
11y ago
You're thinking of proof of work. Proof of stake means people with lots of money (cryptocurrency) can decide what to decrypt. Which is imo even worse.
54.
▲
by
coderzach
11y ago
The best example I can think of is in middle distance running, when Roger Bannister broke the 4 minute mile.
55.
▲
by
coderzach
11y ago
Huh, I saw all the games in my cart disappear, I wonder if someone else mysteriously ended up with a cart full of games.
56.
▲
by
coderzach
11y ago
The problem is that the current system is just the digital version of a bunch of guys yelling at each other on a trading floor. No one asked what the market should look like, they just took the existing system and computerized it.
57.
▲
Slock.it: Locks controlled by Ethereum smart contracts
(slock.it)
2 points
by
coderzach
11y ago
|
0 comments
58.
▲
by
coderzach
11y ago
The problem with sql for me has been the lack of composition. Once a sql string is generated it can't be extended or modified. When I'm writing pure sql it's generally not a problem, however, most sql I write is in part gen
59.
▲
by
coderzach
11y ago
The entropy comes from the mined hash. Could a cartel of miners all decide to not submit hashes where they don't win? Wouldn't that make this technically exploitable?
60.
▲
by
coderzach
11y ago
Using event delegation makes that a non issue.
More ›