HNHacker News
TopNewBestAskShowJobs

obedm

233 karma · joined May 22, 2017

submissionscomments
obedm··on A Visual Guide to React Mental Models: UseState, UseEffect and Lifecycles
Thank you for your kind words! More to come :)
obedm··on A Visual Guide to React Mental Models: UseState, UseEffect and Lifecycles
This is my sentiment. I'd feel frustrated as well if I was on their shoes (visited an interesting article, but it didn't work because of something silly).

It was also unexpected. I didn't even know localStorage could be broken by disabling cookies haha.

obedm··on A Visual Guide to React Mental Models: UseState, UseEffect and Lifecycles
The author here: indeed! I've debated myself over and over whether I should make dark mode the default, but I'll implement the "preferred theme" someone mentioned in another comment :)
obedm··on A Visual Guide to React Mental Models: UseState, UseEffect and Lifecycles
As the author of the site, I like switching between the two modes on all websites that support it.

Like someone above said, some sites implement it as an after-thought. In my case, I'm giving more love to dark-more because there are simply more nice color combinations in dark more than with white.

obedm··on A Visual Guide to React Mental Models: UseState, UseEffect and Lifecycles
(author here) I don't have anything to add, you guys have great arguments, I just want to show appreciation for starting a good debate based on a code example I did :)
obedm··on A Visual Guide to React Mental Models: UseState, UseEffect and Lifecycles
You're right, the code is not explained clearly enough. I intended it to be a "don't do this!" part, but I didn't really explain that.

Great attention to detail, thank you for pointing it out, I'll update it!

obedm··on A Visual Guide to React Mental Models: UseState, UseEffect and Lifecycles
Thank you for reading it and for your kind words! It means a lot to see this here and for people to have enjoyed it.

I'll write many more such guides!

obedm··on A Visual Guide to React Mental Models: UseState, UseEffect and Lifecycles
Thank you so much! That's in my pipeline. I'm going to work first on an in-depth explanation of useEffect since it's the most used one, and I'll cover all the hooks at some point.

The only thing is that a lot of the same ideas are repeating themselves, but the specifics are worth explaining.

obedm··on A Visual Guide to React Mental Models: UseState, UseEffect and Lifecycles
Thank you for reading both articles! (author here).

When I write these sometimes-overly-simplified-articles I'm terrified of explaining something wrong, or that my knowledge may be incorrect on a very specific point.

I really like the way you express "everything is a first class 'thing'", I never thought of it that way.

obedm··on A Visual Guide to React Mental Models: UseState, UseEffect and Lifecycles
Fix incoming . I'm using local storage to maintain the "dark mode" choice and it can't be accessed if cookies are blocked.
obedm··on A Visual Guide to React Mental Models: UseState, UseEffect and Lifecycles
author here. I wasn't aware this was an issue, sorry about that. I'll fix it
obedm··on A Visual Guide to React Mental Models: UseState, UseEffect and Lifecycles
I'm the author. It's unbelievably amazing to be on spot #1 in here!

Thank you to whoever uploaded it!

I'm happy to answer any questions

← PreviousPage 3 of 3