Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ratww
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
47 ms
·
451.
▲
by
ratww
4y ago
React actually does more than "one thing", and it does those things quite well, actually: First, it provides a relatively performant diffing mechanism that gives a happy medium between manual diffing and templating; it also provid
452.
▲
by
ratww
4y ago
Nope. I'm not conflating my personal experience, because I'm not denying that other people can have different experiences. All I am saying is that blogs posts created to generate buzz and SEO-driven-traffic are not indicative of
453.
▲
by
ratww
4y ago
Preact-router is more feature-complete than this one, but most of the code there is due to the more ergonomic API.
454.
▲
by
ratww
4y ago
How is this gaslighting? Just because someone wrote an article to profit on your FOMO doesn't mean React (and also Vue) usage in the real world hasn't been extremely stable over the years. If anything, this kind of article is the
455.
▲
by
ratww
4y ago
You read that incorrectly. Only the active route component is returned by the Router function, therefore React's render() won't do anything with the others.
456.
▲
by
ratww
4y ago
I disagree that the scale of the problem is worse in the Frontend. About being uncharitable: IMO this constant mischaracterization of frontend is the real uncharitable thing here. I also do a lot of backend work and even the most "trad
457.
▲
by
ratww
4y ago
It really depends on what you mean by saying wheels are being "reinvented". Is it really wheel reinvention, or is it a small incremental evolution that fixes one pain point, but has to keep all other aspects the same? In this same
458.
▲
by
ratww
4y ago
The author's goal in this seems to be education, not really optimization or replacement of a bigger framework. And I guess this would probably be much less than 1k!
459.
▲
by
ratww
4y ago
Because making a simple router or simple state management library from scratch is quite simple. So a lot of people do them to learn how the internals work, like this case here. This makes people better programmers. Some of those folks will
460.
▲
by
ratww
4y ago
"Desktop App" could be anything from a taskbar app with a couple screens, to a CRUD app, to something that plays video, to a screenshot app, to something that only deals with audio, to something that only really needs system dialo
461.
▲
by
ratww
4y ago
> according to their industry, WordPress is leading the security space It's not the marketing industry. It's just that some people have this tendency of conflating popularity with supreme quality. "It can't be bad i
462.
▲
by
ratww
4y ago
Well it definitely does improve the security on the "Wordpress" part, but there's still the custom plugins to worry about. Sure, the Woo* plugins and other premium offerings are great, but there's still lots of niche plu
463.
▲
by
ratww
4y ago
With way too much abstraction your code also "becomes an unmaintainable, fragile disaster, leading to bad outcomes for the user". Both extremes are terrible. And GP is not advocating using no abstractions.
464.
▲
by
ratww
4y ago
Well, yes. There's also Github Copilot, which pretty much replaced almost my entire usage of Stack Overflow. But the thing is that with a rando package is that one doesn't have to review the code. Sure, the code is also coming fro
465.
▲
by
ratww
4y ago
Definitely! On the other hand... maybe not, for more conservative industries? You don't need a full-blown frontend team to be very productive. A great frontend engineer (easy to find) and a cookie-cutter backend code-monkey (also easy
466.
▲
by
ratww
4y ago
Fair enough! True, Babel is only "core" for a subset of JS developers, not for the language. I don't really despise anyone in Babel, though, I'm only criticising their packaging method. Babel isn't doing the million
467.
▲
by
ratww
4y ago
To be fair, when there are several hundred tweets involved it's even more difficult to to follow on Twitter. Your format is better.
468.
▲
by
ratww
4y ago
The problem is that those fame-chaser maintainers aren't the only ones doing it. Babel does it. Webpack does. ESLint does it. Before them others did. If we ban those, we'd have to ban Babel and Webpack too... Oh now, wait a minute
469.
▲
by
ratww
4y ago
The reason it is tolerated is because the philosophy of "thousands of small packages" has spread far and wide. For every person calling it out like we're doing here, there are ten others praising maintainers able to whip ten
470.
▲
by
ratww
4y ago
Definitely. It is more akin to SEO spamming than black market spamming, though. They're polluting NPM in the same way SEO farms spam Google. It makes life difficult for everyone, but it's still a gray area in terms of legitimacy.
471.
▲
by
ratww
4y ago
If we're going to call a spade a spade, then let's go ahead and say that the majority of the packages that are always referenced in those discussions (is-even, is-odd, etc) is maintained and primarily used by a minority of devel
472.
▲
by
ratww
4y ago
Yep. Another common case is appending to an inner array vs replacing that array.
473.
▲
by
ratww
4y ago
undefined would in theory be slightly "better" for deleting values (the value { key: undefined } serializes to {} ), but, alas, it isn't supported by JSON, so you'd have to use a custom serializer and deserializer f
474.
▲
by
ratww
4y ago
> I remember when I was momentarily the most senior dev at one of these jobs, once the lead had left, and I decided to just use SQL where it made sense. Not only did this cut down on lines of code and method calls, but those queries end
475.
▲
by
ratww
4y ago
Bit of an off-topic hot take, so sorry in advance, but: In my experience with hiring, the only reason it has become easier to move a lot of logic and state to the frontend is because frontend developers are plentiful and easier to hire. I&#
476.
▲
by
ratww
4y ago
> and when I can’t get into my building because of a power outage Just carry a Tesla Powerwall for your building. You could fit in the space you save by not needing keys!
477.
▲
by
ratww
4y ago
> Time to call a locksmith (or digital equivalent, a hacker?). Kinda hard to with a phone that's out of charge...
478.
▲
by
ratww
4y ago
Even phone calls need advanced notice these days I personally have an arrangement with some friends: they can call me or pop over any time… but they have to accept I might be busy, and vice versa. So far it has worked because we’re all too
479.
▲
by
ratww
4y ago
Immigration is quite open in Italy and I personally know a very large amount of people who got citizenship. They are all working elsewhere in the EU, though.
480.
▲
by
ratww
4y ago
> Any time you have props and state, updating props is best done by replacing the component by changing the key No, it isn't. This is a ludicrous statement. Replacing the key will RESET the internal state of children objects. Mean
More ›