Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
codeptualize
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
181.
▲
by
codeptualize
4y ago
Departure from class based components was one of the motivations behind hooks, those are: 1. It’s hard to reuse stateful logic between components 2. Complex components become hard to understand 3. Classes confuse both people and machines Se
182.
▲
by
codeptualize
4y ago
Skimmed over your article. The infinite loop situation is not exclusive to hooks and very much exists in classes. The situation is calling setState from useEffect, which triggers a render, triggers the setState, render, etc... If you setSta
183.
▲
by
codeptualize
4y ago
How do you mean? Imo it's easier to organize as you can split up your logic into normal functions and custom hooks (which are also just functions). I also find functions much easier to read as there is no "this" and you can s
184.
▲
by
codeptualize
4y ago
No, the article tells you that aesthetics have impact on (perceived) usability, fonts are hugely important to aesthetics. Better usability is whats going to sell more widgets. But in terms of sales the branding is probably even more importa
185.
▲
by
codeptualize
4y ago
Every week? Hooks are from 4 years ago.. Only new things now are suspense and server components, both completely optional. React is amazingly stable and largely backward compatible (where it’s not there are usually codemods available to do
186.
▲
by
codeptualize
4y ago
It’s funny that controllers are conceptually not that different from hooks just with classes. Question: can controllers access everything on the host? As that would easily turn into a giant mess. Probably you shouldn’t but isn’t that the sa
187.
▲
by
codeptualize
4y ago
Access to this.setState would be horrible, imagine the conflicts. You need separate state, and then you sort of have hooks again.
188.
▲
by
codeptualize
4y ago
You are not wrong, I think renderprops are valid, and I still use them in some situations. They are imo not ideal as they are hard to memoize because of the render function. It’s funny that if you try to memoize renderprop components you li
189.
▲
by
codeptualize
4y ago
With merge props I mean passing down the local state to the next component. If you see the react article I linked it’s the injectedProps. I think this might be quite common, if you haven’t experienced HOC hell I can understand the confusion
190.
▲
by
codeptualize
4y ago
Sure! It's generally about "stateful logic". Basically logic that relies on state and/or the lifecycle methods (componentDidMount, componentDidUpdate, etc) as with classes those are only available as part of a component.
191.
▲
by
codeptualize
4y ago
Why are so many comments about class components, I thought we ended that debate 3 years ago? Hooks are better because they allow you to reuse component logic, impossible with class components. They solve all the issues and gotcha's of
192.
▲
by
codeptualize
4y ago
And then we have another framework! This is why we have so many :D
193.
▲
by
codeptualize
4y ago
Umm...like I pointed out, it doesn't have to be as we now have "font-display" which provides multiple strategies for loading (or not loading) web fonts. MDN: https://developer.mozilla.org/en-US/docs/
194.
▲
by
codeptualize
4y ago
The aesthetic–usability effect has been studied in the types of experiments you describe. It is also pretty easy to find yourself if you do some simple usability tests. There is a scale to it of course. It's not like aesthetics can fix
195.
▲
by
codeptualize
4y ago
If you take individual stylistic elements you can easily argue they don't make a difference, but all these little details combined is what makes the difference. Fonts and typography are hugely important, especially in minimalistic styl
196.
▲
by
codeptualize
4y ago
But I think nobody is arguing that all of it should be illegal, but there is a big difference between legality and whats socially acceptable. That's often conflated, and actually the point I have been trying to make; you can say a lot
197.
▲
by
codeptualize
4y ago
It's because generally people want everyone to just be able to live their lives and not get discriminated, bullied, or even physically harmed for who they are, what they believe in, where they come from, or who they love. Things you ca
198.
▲
by
codeptualize
4y ago
I think on the surface I agree. Hate mobs doesn't sound great and death threats are simply illegal and should be prosecuted. If it is in fact all lies etc, then sure. But, I do think this is often exaggerated, and a lot of times "
199.
▲
by
codeptualize
4y ago
I did not make that jump, I said "often" controversial is used for hateful speech which is true, and I specifically clarified that I was not assuming this was the case here. The reason I had to include it is that the original comm
200.
▲
by
codeptualize
4y ago
It depends on the things you want to say and where you say them. In most countries, even the US, free speech has limitations. If you stay within the law you are totally fine to say whatever you want, but it's a fuck around and find out
201.
▲
by
codeptualize
4y ago
I've been involved in quite a lot of usability testing and I'm often positively surprised by the responses. Which is why I'm sort of skeptical when reading such claims. Also because I think user experience overall has improve
202.
▲
by
codeptualize
4y ago
I’m seeing a lot of anecdotes, not a lot of research. Nngroup used to publish analyses of the state of usability, but I don’t think they have done one recently. The old ones always showed progress, and that’s also what I would expect talkin
203.
▲
by
codeptualize
4y ago
> the modern webapp experience is so miserable for the average person. I see this claim a lot and I'm curious what this is based on, can somebody drop some links to further reading?
204.
▲
by
codeptualize
4y ago
It sounds like he tortured himself then got PTSD from it. Most things are fine when done in moderation, most things are bad when taken to the extremes. "13 days to go" suggest this was some crazy regimen, if you would do that to p
205.
▲
by
codeptualize
4y ago
Haha that's amazing. This is exactly what I mean, for the right use cases it's absolutely amazing. Good luck with the drama! Make sure to read a summary for the next family meeting haha.
206.
▲
by
codeptualize
4y ago
Thanks! Very interesting. I guess our challenge will be surviving the inevitable dip.
207.
▲
by
codeptualize
4y ago
You are probably right, kinda sad. My last resort is to just remove all AI references from my marketing and just deliver the product.
208.
▲
by
codeptualize
4y ago
> complex genomics papers I think it's fair to say this is not one of the use cases where it shines. It's not great at logic, it's also not that smart. That's exactly what the hype does. Too big claims and then it get
209.
▲
by
codeptualize
4y ago
I think this is sort of the other side of the hype, totally dismissing it is also incorrect imo. Yes, it's overhyped, but it's not useless, it actually does work quite well if you apply it to the right use cases in a correct way.
210.
▲
by
codeptualize
4y ago
I'm working on a project that uses GPT-3 and similar stuff, even before the hype. I think the overhype is really tiring. Just like with most of these hype cycles there is an actual useful interesting technology, but the hype beasts tak
More ›