Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ng12
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
46 ms
·
481.
▲
by
ng12
7y ago
They also strategically avoid mentioning the payoff which is that your project is entirely self-contained. `node_modules` is at once your complete development kit, build tool, compiler, and collection of runtime dependencies. Once you check
482.
▲
by
ng12
7y ago
> There's usually just one good library to solve a problem and it solves it in a particular way. Isn't this the author's core contention? He really needed an i18n library but wasn't allowed(?) to implement it himself
483.
▲
by
ng12
7y ago
Any personal behavior becomes cultish when it's other people dictating you adopt them.
484.
▲
by
ng12
7y ago
Limited supply is the disease, AirBnB is a symptom. AirBnB is popular in major cities exactly because real estate is so expensive.
485.
▲
by
ng12
7y ago
I'm not sure what your proposal is -- use functions that use prototype this or no this, and arrow functions for ones that use contextual this? It's easier to use arrow functions for everything except for the tiny minority of cases
486.
▲
by
ng12
7y ago
You've misspelled the handler, onClick is the correct casing. Fix that and it works. Also you don't need to use a ref -- if I were inclined I could have grabbed the element by a query selector. I'm not sure why I would though
487.
▲
by
ng12
7y ago
No, and part of the reasoning is to explicitly avoid the chance you might accidentally refer to the wrong `this`. There's an ESLint rule to enforce this: it will complain if you use a `function` without referring to the prototype this.
488.
▲
by
ng12
7y ago
Once a year I update my webpack, React, and TypeScript versions. And this is for a completely custom webpack toolchain. I don't think that's unusual compared to other technologies.
489.
▲
by
ng12
7y ago
React is not a silver bullet. It solves one problem and it solves it very well: dealing with dynamical updating DOM views. There are still many different ways to architect your application but it stops the bikeshedding and reduces the oppor
490.
▲
by
ng12
7y ago
Ah, your code sample was incomplete so I was extrapolating. I'm assuming the complete code would be: const input = React.useRef(null); return ( <> <input ref={input} /> <button onClick=
491.
▲
by
ng12
7y ago
Arrow functions help save you from `this` insanity.
492.
▲
by
ng12
7y ago
Some but mostly we relied on my expertise and a few others who've been thinking hard about these problems for a long time. We've been thinking about sharing some of our insights but haven't yet.
493.
▲
by
ng12
7y ago
Sure, but that's a problem for everything. You'll struggle to build a modern cloud architecture without at least a few people with extensive experience with the cloud. You can get pretty good mileage following industry best practi
494.
▲
by
ng12
7y ago
My thinking is the former problems -- pay, growth, perks -- are more damaging to their hiring prospects than the actual work the US gov is doing.
495.
▲
by
ng12
7y ago
Outside of the minority in the Twittersphere bubble most engineers are apolitical. Palantir offers the opportunity to work on interesting software solving interesting problems and that gets them very far. Defense contractors building bombs
496.
▲
by
ng12
7y ago
I would do this identically in React. const doThing = event => { const input = event.target input.value = value input.focus() sound.play() } ... <button onClick={doThing} />
497.
▲
by
ng12
7y ago
> It's great job security for UI experts, but expensive for organizations because they need stack specialists whereby before a one-man-band (or 2) could make useful apps for less than half the cost and time without having to spend y
498.
▲
by
ng12
7y ago
Zero exposure for someone working on a farm is utterly unrealistic.
499.
▲
by
ng12
7y ago
I'm not saying we shouldn't take all precautions we can. I'm saying it's necessary work and some exposure needs to happen.
500.
▲
by
ng12
7y ago
If so that'll happen no matter what. Packaged food will be handled by multiple people before it gets into the consumer's hands.
501.
▲
by
ng12
7y ago
But some people are going to have to be exposed. Farmworker's exposure helps us flatten the curve.
502.
▲
by
ng12
7y ago
I'm not sure about strawberries but aren't farmworkers in general essential workers? Our food supply and delivery chain is what allows others to stay at home.
503.
▲
by
ng12
7y ago
> Even React’s syntax really isn’t that different from a template as you need to enclose JS expressions in curly braces right? The difference is that they're real, actual JS expressions evaluated in the current scope. Anything you c
504.
▲
by
ng12
7y ago
Our questions aren't on leetcode and we aggressively monitor for leaks (including on Blind). You're also missing the point: we're intentionally avoiding the questions which boil down to a binary question of "do you know
505.
▲
by
ng12
7y ago
I can usually spot the candidates who are leetcode junkies. This is why I direct our interviews to be as pragmatic as possible. Most of our question bank comes from actual code one of our devs had to implement. I'm fairly confident tha
506.
▲
by
ng12
7y ago
> I think, most people have potential to be able to code. By "can" I mean if they applied themselves to learning. My time spent teaching makes me think otherwise. I saw so many smart, motivated young people who simply could not
507.
▲
by
ng12
7y ago
I hate to say it but I agree. RI had the right idea. NYC is a mess right now: we are still not taking this seriously. Trains are crowded, grocery stores are crowded, the Staten Island ferry is crowded, parks are crowded. In an especially hi
508.
▲
by
ng12
7y ago
If your goal here is just to gloat about how "everyone else is doing it wrong" then I don't think this is a productive conversation. I was doing web development before bundlers were a thing and I do not miss those days.
509.
▲
by
ng12
7y ago
Can't say I agree. The relative cost of bundling is minimal. I don't really think about my setup at all -- it's such a minute part of my daily workflow. Anyways, your disdain for front-end development will probably preclude a
510.
▲
by
ng12
7y ago
> But is it the most effective tool for writing web apps What's your preferred alternative, pray tell?
More ›