Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ng12
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
59 ms
·
631.
▲
by
ng12
7y ago
If all the other frameworks jumped off a bridge, would yours jump too? :) The real win here, even if you're familiar with other template solutions, is that you never have to ask the question "How do I do X in template solution Y?&
632.
▲
by
ng12
7y ago
I don't think this is a compelling example. React would implement this almost identically: const Counter = () => { const [count, setCount] = React.useState(0) return ( <div> <p>You hav
633.
▲
by
ng12
7y ago
So do enterprise developers. If I can use the "well they can do that in excel" defense to avoid implementing a feature, I will.
634.
▲
by
ng12
7y ago
You're not making it clear why it's unconvincing. Let me summarize my post: Vue had to fundamentally introduce a new concept (which developers, myself included, find confusing [1]) to solve a problem you can easily solve in React
635.
▲
by
ng12
7y ago
> markup to create bindings to reactive data Right, and my argument is building this in JavaScript directly (rather than a HTML-ish/JavaScript-ish template language that gets converted into JavaScript) is a better model.
636.
▲
by
ng12
7y ago
I don't really understand what you're talking about. For building a dynamic UI you need JavaScript (or another programming language). Both React and Vue use JavaScript to build their dynamic views. If you're not building a dy
637.
▲
by
ng12
7y ago
I completely disagree on first note, mostly because it's almost all JavaScript. There's very little "React" there. On the second note it's copy-pasted code from the official Vue docs.
638.
▲
by
ng12
7y ago
Both Vue and React have props. The above code is a snippet; I used the same format as the Vue documentation (which I agree is a little confusing). > Where's the span for x? I assumed Vue was only using the span for v-if, in React we
639.
▲
by
ng12
7y ago
Agreed completely. My favorite example is the `slot` directive which doesn't exist in React because the pattern comes for free. To take the example from the Vue docs: // Component with a slot <ul> &l
640.
▲
by
ng12
7y ago
A lot of times the yard is rented as part of the ground-flour unit ($$$) so only ~1/4th of the people in the building have access.
641.
▲
by
ng12
7y ago
> That would seem not to be true. How would you explain the stagnant wages of the last 4+ decades compared to the massive economic growth? I don't think there's much evidence that the relationship between labor supply and econo
642.
▲
by
ng12
7y ago
In these types of discussions I think "good for the economy" is a weasel phrase -- what's good for the economy is not necessarily good for the worker. This should be obvious: child labor was great for the economy for the reas
643.
▲
by
ng12
7y ago
Because those states already taxed their citizens to the breaking point. It's much easier to pass it off to the federal government where you can't escape by moving to Florida.
644.
▲
by
ng12
7y ago
It makes perfect economic sense: it's a simple supply and demand curve. Increasing the number of workers decreases their value. The only confounding factor is whether the increase in workers increases the speed at which the economy gro
645.
▲
by
ng12
7y ago
I'm not saying it doesn't. The grandparent's point was that the gov could spend the some of the $T it spends on the military on healthcare. My point is the gov is much more likely to fund healthcare through new taxes than to
646.
▲
by
ng12
7y ago
Or we could spend less on the military. If they need to raise taxes to pay for it they can't afford it.
647.
▲
by
ng12
7y ago
The US gov certainly can afford it but they'll pass the bill on to taxpayers all the same.
648.
▲
by
ng12
7y ago
Many years ago I worked at a company that had built a janky version of GraphQL in-house. The model fit our use case perfectly: our customers were dealing with a complicated ontology of objects and it allowed us to build new UIs on top of t
649.
▲
by
ng12
7y ago
There are some other options. I use a pump (OmniPod) that is entirely attached to my body. There's a small plastic pod that's taped to the skin and operated wirelessly. My chief complaint is that the FDA is overly restrictive. The
650.
▲
by
ng12
7y ago
I'm not sure I buy the argument that Lam is just a bumbling politician failing to deal with a crisis when she's backed by the most powerful authoritarian regime in the world.
651.
▲
by
ng12
7y ago
Yeah, it's such a huge failure on Facebook's part. It's completely unusable in an enterprise environment and I can only recommend it for small one-off applications. The tagline they use but is "convention over configurat
652.
▲
by
ng12
7y ago
I can't speak for Python but the JavaScript community has been investing heavily in TypeScript, and the desire for a more integrated IDE experience is a huge driver for that growth.
653.
▲
by
ng12
7y ago
The point is if their goal was to just serve news or articles the site would be just thin layer over a CDN serving raw HTML. In order to serve and track dynamic advertisements they build sites with MBs of JavaScript instead.
654.
▲
by
ng12
7y ago
If a site feels unusable like this it's because you're the not the user. News sites, for example, are SPAs because they want to sell you ads. It has nothing to do with the technology and everything to do with the business using it
655.
▲
by
ng12
7y ago
Because globalism traded jobs that once supported American families for jobs that allow Chinese families to live in grinding poverty? I don't get it either.
656.
▲
by
ng12
7y ago
There's more to building your UI than just implementing the design. Even if using this tool all the logic and state management you have to do by yourself. Putting together the form is the easy part, especially in a large application. Y
657.
▲
by
ng12
7y ago
I suppose if your use case is marketing sites or something similar. This doesn't match my experience at all.
658.
▲
by
ng12
7y ago
Building the form widget is the easy part, "connecting the dots" as you say is what takes 80% of the time and produces 99% of the bugs.
659.
▲
by
ng12
7y ago
What's the argument -- that if China stopped making toothbrushes we would stop buying them? A US factory might struggle to compete with a Chinese factory on price, but that's exactly my point. Global capitalism does not account fo
660.
▲
by
ng12
7y ago
> Here you seem to be blaming globalism for failing to account for the true price of a product. Fair, but in my mind this is why globalism is a thing -- because it doesn't account for the exploitation of human labor and lack of regu
More ›