Better HN
topnewbestaskshowjobs
Log inSign up

coderzach

738 karma · joined Aug 4, 2012 (14y ago) · 227 submissions

NYC

Hit me up: x.coder.zach@gmail.com @coderzach

[ my public key: https://keybase.io/zachs; my proof: https://keybase.io/zachs/sigs/juDKxijwVyXahGtTJ39re2D4uNXRL78rfKeqlKgTW9s ]

Submissions

comment 9y ago · link · parent

https://en.wikipedia.org/wiki/No_poo

comment 9y ago · link · parent

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 { b = bar(); baz(b); }

comment 10y ago · link · parent

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.

comment 10y ago · link · parent

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.

comment 10y ago · link · parent

Now that sweet.js supports babel, the best option may be to write an if expression macro.

comment 10y ago · link · parent

> 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 legality provides a "base" morality.

Women must keep their face covered in public, Jim Crow laws, etc.

comment 10y ago · link · parent

> 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 to respect the laws of countries that don't respect the rights of minority groups? Should self driving cars in Saudi Arabia prefer to hit women?

Legality isn't an escape hatch that absolves you of the moral implications of your actions.

comment 10y ago · link · parent

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.

comment 10y ago · link · parent

Lightning is none of those things.

comment 10y ago · link · parent

How about "No sir, never."

comment 10y ago · link · parent

> 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 institutions (and sometimes intra-institution) has an army of middle men who are responsible for verifying, monitoring, reporting, etc etc.

comment 10y ago · link · parent

I don't think those data tables are schemaless. It seems like the value prop here is that it efficiently handles heterogenous data shapes.

comment 10y ago · link · parent

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 come across a truly dynamic problem.

comment 10y ago · link · parent

Why not just mock the HOC to be the identity fn? `(Component) => Component`

comment 10y ago · link · parent

using `x` as a variable name is not the reason this code is terrible.

comment 10y ago · link · parent

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.

comment 10y ago · link · parent

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" has no problem with homelessness.

comment 10y ago · link · parent

The name.

comment 10y ago · link · parent

Oh, yeah, I read it as if the ">>" was outside.

comment 10y ago · link · parent

YES! I almost always find myself digging through the network graph of cordova plugins hoping to find one that works.

comment 10y ago · link · parent

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 will interleave lines, rather than arbitrary bytes.

comment 10y ago · link · parent

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 requires third-party tools. As for scalability, postgres can only scale vertically.

If you need a solution that can scale writes to more than than one node, or a solution that has first party support for HA with automatic failover, you shouldn't be using postgres.

As an aside, I find the dogmatic "just use postgres for everything" choir just as bad as the marketing BS associated with noSQL databases.

comment 10y ago · link · parent

http://observer.com/2012/01/uncanny-valley-the-real-reason-t...

comment 10y ago · link · parent

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.

comment 10y ago · link · parent

The best example I can think of is in middle distance running, when Roger Bannister broke the 4 minute mile.

comment 10y ago · link · parent

Huh, I saw all the games in my cart disappear, I wonder if someone else mysteriously ended up with a cart full of games.

comment 11y ago · link · parent

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.

58.

Slock.it: Locks controlled by Ethereum smart contracts(slock.it ↗)

2 points · by coderzach · 11y ago · discuss

comment 11y ago · link · parent

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 generated by some user input. By the end, a query that allows user input and extracts common reusable expressions, is a Frankenstein's monster of unreadable string interpolation.
12345
8