Hook-using functions basically are classes, just with utterly bizarre method and property declaration syntax and some strange and unhelpful behaviors.
I mean, they ultimately associate lists of properties and functions (methods, if you like) with a component object instance (yes, object) down in the React internals. Sure, access to them is FIFO rather than a lookup table, but that still looks a whole lot like very-weird classes/objects being reimplemented in a language that already has decent-enough ones.
Now, the trouble was certain optimizations and features were probably going to be hard to impossible to achieve while supporting both functional- and class-based components more-or-less equally, and the easy path forward was to let class components become more powerful and functional components slip to second-class (haha), but instead they put object/class-like features in their functions so they could have functions (but very much stateful/side-effecty, so WTF is the point?) lead the way, for whatever reason.
Everything in hooks is explicit. Which is a blessing and a curse.
Classes were really easy to compose and automatically easily bring everything you needed into the class. This did lead to some situations where you could over-engineer and get yourself into a bind. You can technically do the same/similar thing with hooks, it just requires a bit more code. Lack of setup/tear down with hooks also means you need to rely on nonces more often.
In general, hooks have a bunch of small, reactive-programming tricks that you learn with experience.
i'm a react noob too, but my impression is mostly that hooks are nicer for smaller components with simpler states, and classes reduce some boilerplate if you have a lot of different state variables within one component.
This is very neat. One question, would you consider making a version of your service that works like discourse.org? I don’t mean changing the discussion software to match theirs, I mean allowing clients to embed your software in their page. Also, for what it’s worth, if you had plug-in authentication of users you might find some clients in in web3.
It does not. Right now, Svija only supports effects that can be created within Adobe Illustrator.
From what I have seen, these kinds of effects are easy to reproduce with regular Illustrator effects. It might be interesting in more advanced animation to change the lighting with other movement.
It makes sense. It’s ridiculous to have to subscribe to individual news websites when there are so many; an intermediary that did deals with publishers wouldn’t be a bad idea.
Yes, definitely. Have had terrible burnouts in the past, to the point of not being able to code at all. Recovery is long, and these days I will burn out more quickly if I’m in a stressful situation, but I’ve also made changes so that I am not coding under the wrong conditions and it’s made all the difference.
I would love if indiehackers could help fill this niche. Since it is aimed at people trying to launch products, pragmatism should reign, but there are things about the presentation and site policy that would seem to hold it back for this use case.
As a new user of the site, im not allowed to post, very few of the posts inspire me to comment anything (mainly because I’m not that knowledgeable about founder problems, but if there were more tech conversations then i would comment more), and there is a low throughput of new discussions as well. I feel like it could be done better.
I have been thinking a lot about the epistemology issues social media is currently having and I’m wondering if old school forums with invites will make a return. Difference being this time maybe you have to be referred by x members and are interviewed by other current members. And maybe to keep it even more exclusive there is some type of monthly fee. Kinda thinking like what the Freemasons were/are (and hopefully without those issues).
Well, there are mastodon servers which are like that. But in reality, being open and socially curated should be good enough. Making the site invite only doesn’t preclude its eventual decadence, nor endure that you get the best user base.