Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
scottmf
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
23 ms
·
271.
▲
by
scottmf
9y ago
Simply use create-react-app and don’t worry about setting up Babel and Webpack
272.
▲
by
scottmf
9y ago
I find it hard to believe it would matter either way. This White House has gotten away with things far worse. Edit: is it normal for posts to disappear from the front page within minutes?
273.
▲
by
scottmf
9y ago
I’m tired of seeing this same article on HN every week. I’ve begun to feel that a lot of HN is stuck in 2010, a lot of people refusing to adapt to a changing industry who want me to get off their lawn. I’m in desperate need of some links to
274.
▲
by
scottmf
9y ago
Some would rather just complain.
275.
▲
by
scottmf
9y ago
Battery replacements are cheap
276.
▲
by
scottmf
9y ago
You can't make comparisons like that. Take a look at the U.S. public healthcare expenditure per capita. It's higher than countries like the U.K. (with fully tax-funded healthcare), probably even Germany. And that's before acc
277.
▲
by
scottmf
9y ago
No, you're right. His 1GB is mostly cached data. The app is more like 200MB.
278.
▲
by
scottmf
9y ago
By the way, you don't need to use let in your original code. const x = {}; x.a = 123; You're not changing x, you're changing a property of the object it points to.
279.
▲
by
scottmf
9y ago
Maybe I'm not quite understanding the first function, but you could probably write it like this: (accum, borders) => ({ ...accum, [borders.datatype]: (accum[borders.datatype] || []).concat([borders]) }, {}) althoug
280.
▲
by
scottmf
9y ago
Check out Goofy http://www.goofyapp.com
281.
▲
by
scottmf
9y ago
Trying to shoehorn MVC into the front-end is also unnecessary complexity. You can get very far with setState before you need a library like Redux to manage application state. And you can get even further if you use something like Apollo or
282.
▲
by
scottmf
9y ago
>If we are to accept the 'Clinton Foundation spokesman' as the definitive source of truth, then in fairness we would have to accept the administration's claims on Russia with the same merits. This is some bizarre logic.
283.
▲
by
scottmf
9y ago
It's a non-issue and you're really wasting your time responding to these attempts to suggest "both candidates were as corrupt as each other" in the 2016 election: "Nonetheless. looking at the Clinton Foundation’s do
284.
▲
by
scottmf
9y ago
Could you share some?
285.
▲
by
scottmf
9y ago
Yikes
286.
▲
by
scottmf
9y ago
Your year and a half old React app shouldn't be "hopelessly out of date" unless you did something very wrong. If you want to use React with Rails, use Rails in API mode and keep the front-end separate. I'm not sure how r
287.
▲
by
scottmf
9y ago
Paywall. What is their proposed alternative?
288.
▲
by
scottmf
9y ago
Nuxt is the Vue version of Next, which I highly recommend for quickly bootstrapping a production-ready React app with server-side rendering and so on.
289.
▲
by
scottmf
9y ago
It's not uncommon to have Node installed, and it's to easy install if you don't. But if you find value in dropping in a CDN link, you can use React and Babel that way too.
290.
▲
by
scottmf
9y ago
CRA or Next.js make bootstrapping incredibly simple, and they're production ready.
291.
▲
by
scottmf
9y ago
What's the difference between :disabled and the regular HTML disabled? Same for ID, etc. How do strings differ from variable names? The only way I see that as being more "intuitive" is if you're familiar with other templ
292.
▲
by
scottmf
9y ago
I'm sorry but that is hideous. JSX is incredibly simple. Why would you do that to yourself and other devs?
293.
▲
by
scottmf
9y ago
What do you have against npm install create-react-app?
294.
▲
by
scottmf
9y ago
>Being gay is just like being a Nazi
295.
▲
by
scottmf
9y ago
Why is it statistically impossible for 50% of drivers to be good?
296.
▲
by
scottmf
9y ago
Not quite. It's more like: "since 1865, the huge decrease in black slaves—something notoriously tough for capitalists—has rendered the notion of a "productive economy" into an oxymoron". Followed by the non-denial:
297.
▲
by
scottmf
9y ago
Could you show me a quick example of what a request and response would look like with REST? I'm still not quite sure what you mean.
298.
▲
by
scottmf
9y ago
Absolutely. Personally I haven't made much use of NoSQL, I'm sure there are plenty of use cases, but for ancestry I would still use a relational db. I do see how nested objects might look like a perfect fit for this, since familie
299.
▲
by
scottmf
9y ago
Cool, which ones? I think the concept of requesting a response shape was inevitable. It's one of those "obvious in hindsight" ideas. You see many "GraphQL is similar to x, and x failed" comments on here, but I'
300.
▲
by
scottmf
9y ago
To anyone put off by this comment: don't be. With all due respect the parent commenter has misunderstood how to shape their API responses. GraphQL excels at nested data structures. When you have infinitely recursive child nodes of the
More ›