Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
korm
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
61.
▲
by
korm
7y ago
It's trivial to detect element visibility, this just doesn't work in bigger sites.
62.
▲
by
korm
7y ago
It's partially synthetic according to Google
63.
▲
by
korm
7y ago
From my research and experience the operating room effect is largely due to bad color rendering with most (cheap) LEDs. Good artwork/video/photo lighting with LEDs is very expensive and bought from specialized shops or the manufac
64.
▲
by
korm
7y ago
Step 1 becomes progressively easier after each wash. Steps 2, 3, 4 are completely eliminated by having an in-unit washer as you said, like most families in western Europe do at least. Step 6 is also pretty quick with practice.
65.
▲
by
korm
8y ago
To play devil's advocate, this has always been the case with React. Newbies always mutate props or use setState incorrectly or in the wrong lifecycle methods. We've relied on linting to solve this for a long time now.
66.
▲
by
korm
8y ago
Are you against using Babel and the class properties proposal? Binding members shouldn't have been a problem in your codebase in recent years.
67.
▲
by
korm
8y ago
I think you're talking about context, which isn't specific to hooks. Hooks give functional components features that only existed for classes. First of all, context is slow, at least currently. Secondly, it's just a vehicle fo
68.
▲
by
korm
8y ago
But... It's not a choice of one or the other, both global and local must be used appropriately. Also the shape of your global state plays a big role in its maintainability and redux provides good tools and documentation to achieve that
69.
▲
by
korm
8y ago
You'll eventually need data in the global state in anything but a toy app.
70.
▲
by
korm
8y ago
Thanks, this is incredibly useful, I use everything in this package! It also doesn't deviate from the spirit of Redux or abstract too much, like rematch for example. Without something like this, I find that many people structure their
71.
▲
by
korm
8y ago
> but you'll excuse me being skeptical that introducing more complex tools will solve my complexity problem I'm a consultant and in my experience this misconception is by far the most common source of problems in redux projects
72.
▲
by
korm
8y ago
These features existed in the form of 3rd party libraries like react-loadable for code splitting and recompose for hooks. I don't know any serious React devs who haven't used code splitting in the past few years, and recompose was
73.
▲
by
korm
8y ago
I hope we don't go back to MVC for everything. I think we just have to use the right tool for the job. If an app is highly interactive or will have frequent data updates, or if it's supposed to be used almost like a native app, a
74.
▲
by
korm
8y ago
When Reddit rolled out their new mobile site I had strong suspicions the org must be a mess internally. Out of all the problems one stuck out to me. For many months the comment sorting dropdown took 15 seconds to open from a warm start. Tha
75.
▲
by
korm
8y ago
Curious why, React can do that just fine. It doesn't force you to build a SPA. What's different with Vue?
76.
▲
by
korm
8y ago
Oh-my-posh + a few custom scripts for better autocomplete that I found here and there. Wasn't very easy to configure and it's still nowhere near my fish shell, but at least it's much better than plain powershell.
77.
▲
by
korm
8y ago
I assume the point is that some people bog themselves down with tools that make them less productive just because they read that it's best practice, without deeper understanding. For example, in most threads about Vue on Reddit, the fa
78.
▲
by
korm
8y ago
It's about choice. 2 billion people with Androids aren't sysadmins. The phones work fine out of the box. The parent likes choice, while some people don't miss it. No need for strawman arguments.
79.
▲
by
korm
8y ago
I just don't think the online news media will learn anything from tangential HN discussions so we might as well do away with these types of comments and either discuss the article's content or not visit the link at all. I think th
80.
▲
by
korm
8y ago
I didn't defend anything and I'm not a media employee. I complained about a common type of comment that is low effort and doesn't advance discussion, in my opinion at least.
81.
▲
by
korm
8y ago
The state of news sites is well known to everyone on HN. It's not nice to have this same comment pop up every time instead of discussing the article. There are article outlining services and add-ons you can use. I really don't mea
82.
▲
by
korm
8y ago
The history features are incredible and also the only ones I use, eg diffing, showing changed dirs/files/lines, blame, file/dir commit history. I've never used it for anything else git related because the ui is strange.
83.
▲
by
korm
8y ago
I think if the conversion is led by a very experienced React developer this could be a good decision. We decided to write all our sites in React a long time ago and couldn't be happier. It doesn't have to be a SPA because it'
84.
▲
by
korm
8y ago
Here are my personal opinions as a long time Dart/JS/TS developer. - Dart had a lot of features before either JS or TS. Important features like cancellable promises or optional chaining are still missing (I know they might be comi
85.
▲
by
korm
9y ago
This is not a fix, on mobile 100vh and 100% are different due to the auto-hiding address bar.
86.
▲
by
korm
9y ago
Safari is not as bad as IE was compared to other browsers. However, calling it the 'new IE' is accurate if the definition is 'the browser with the worst support of new features and most bugs'. Here is a comparison http:
87.
▲
by
korm
9y ago
React 16 (Fiber, release candidate) has pretty much the same performance as Vue https://rawgit.com/krausest/js-framework-benchmark/master/we... Angular is close enough too.
88.
▲
by
korm
9y ago
Not sure I understand your question. Functional components and class components both use createClass internally IIRC. In any case, they are the same. A PureComponent is simply a Component with shouldComponentUpdate written for you. Function
89.
▲
by
korm
9y ago
> When using immutable data structures the comparison in `shouldComponentUpdate` is very cheap. The equality check is always the same in pure components. Whether the data is immutable or not, pure components do a reference equality check
90.
▲
by
korm
9y ago
A functional component is not pure, it's exactly the same as its class counterpart. You can use recompose's[0] 'pure' HOC to turn it into a PureComponent. [0] https://github.com/acdlite/recompose
More ›