Hacker Newsnew | past | comments | ask | show | jobs | submit | thebeastie's commentslogin

FTX violated ancient banker wisdom: don’t get high on your own supply.


For someone to arrived late to the party, what’s better / simpler when using classes?


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.


Depends on your use case; some things are easier as classes others as hooks.


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.


I haven't thought about that direction yet, although I am aware of discourse and disqus.

Metadocs is pretty young, so I'll think about it.


Does it support lighting effects?


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.


My tinny laptop speakers will protect me!


Bypass paywalls would be kind of a big deal imo. It could eventually shape how we use the internet and move away from ad based revenue.


It's been a feature for a long time. For some reason it was removed today and now Elon has "reintroduced" it as a new feature?

https://www.theverge.com/2022/11/1/23434502/twitter-blue-ad-...


Smart. Now he can charge for something that was already shipped and get the credit lol


This was definitely the part that stood out to me, but it really relies on the deals they can strike.


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.


If Elon can get enough publishers on board I'd gladly pay more than $8/mo. Maybe offer a tiered system. Or better yet, choose-your-own.

$8/mo: Choose 2

$12/mo: Choose 4

$15/mo: Choose 6

etc.

Then people vote with their dollars which sources are important to them.

Simplicity would be challenging. It wouldn't work if it devolves into something resembling tiered Cable TV packages.


Are you suggesting that genes can leap from frogs to humans? /s


Jurassic Park meets lgbT-Rex


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.


Exactly


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.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: