Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tengbretson
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
89 ms
·
1231.
▲
by
tengbretson
10y ago
I would make the exact opposite argument in fact. I would argue it is entirely irrational to perpetuate this bizarre notion that living in a prosperous nation is some sort of original sin that must be atoned for by self-flagellation. Prospe
1232.
▲
by
tengbretson
10y ago
I'm afraid I don't understand what you're trying to insinuate here. Capitalism is part and parcel to disruptive services such as this one entering a space where established players have created price fixing opportunities for
1233.
▲
by
tengbretson
10y ago
I've had great success running kvm as a host and macOS as a client and passing through hardware to get good performance. That said, this is on a dual socket xeon board and not a NUC, so ymmv.
1234.
▲
by
tengbretson
10y ago
I lied. More like 5 lines. http://codepen.io/anon/pen/MbjLMB
1235.
▲
by
tengbretson
10y ago
That's kind of what I'm saying. If you don't value those things, why introduce a library at all? What you're describing can be implemented in < 10 lines.
1236.
▲
by
tengbretson
10y ago
I guess I fail to see the value of this. If you don't want the component lifecycle, event system, or DOM diffing that React gives you, you might as well just write your own declarative wrapper around `document.createElement(...)` and b
1237.
▲
by
tengbretson
10y ago
Correct me if I'm wrong, but the production build of React strips out PropTypes as well doesn't it?
1238.
▲
by
tengbretson
10y ago
FTA > When Donald J. Trump said in February that he would “open up our libel laws” if he became president to make it easier to sue news organizations for unfavorable coverage I think this is a rather dishonest interpretation of what was
1239.
▲
by
tengbretson
10y ago
Maybe these people would rather be lied to by a con artist than to be made the punchline of every joke by every liberal blogger, pundit and late night host on a daily basis. This election taught us that one of the parties is peddling very d
1240.
▲
by
tengbretson
10y ago
> 2. not jobs that these people actually want anyway, so at worse you will see a lot of inflation, or a lot of open job positions. It doesn't make sense, but it won't really make sense. Is it your intuition that the labor marke
1241.
▲
by
tengbretson
10y ago
Literally all of the things you listed have made web programming much better.
1242.
▲
by
tengbretson
10y ago
> JavaScript - Dynamically typed, does not scale What does this even mean? I see the phrase "does not scale" bandied about all the time. In what way is a language supposed to scale? It seems like its just the latest semi-techni
1243.
▲
by
tengbretson
10y ago
I really hope that higher-kinded types can be brought to TypeScript. I really want that kind of power on the front-end, but I can't count on getting an entire team up to speed with PureScript.
1244.
▲
by
tengbretson
10y ago
You should checkout the ØMQ guide. They do such a good job of first defining the problem space, and then establishing the design patterns they use to solve it. The code examples almost become irrelevant because they make the patterns so cle
1245.
▲
by
tengbretson
10y ago
To be clear, I wasn't meaning that use of local state was an anti-pattern in itself. I only meant that dumping all of the state of a wrapper component into the child should be avoided. Ideally, the complexity of the data in the props o
1246.
▲
by
tengbretson
10y ago
In the section on higher-order-components: var enhanceComponent = (Component) => class Enhance extends React.Component { render() { return ( <Component {...this.state}
1247.
▲
by
tengbretson
10y ago
This is awesome! Like you mentioned towards the end, I've been stewing on the idea of a React Native <-> React bridge for a while now too, but haven't had the time to thoroughly dig into the code of other custom renderers to
1248.
▲
by
tengbretson
10y ago
I often leave off tests for strictly "synchronous" actions like `return { ...currentState, newProp }`. Most of my tests are for confirming that the right paths are taken for actions that trigger one or more async operations to ens
1249.
▲
by
tengbretson
10y ago
In my experience, as long as you have a well tested data model and use proptypes/Flow/TypeScript, testing the components themselves becomes almost entirely irrelevant. However, I can see the utility of component testing if I were