←back to thread

MDN Plus

(hacks.mozilla.org)
630 points sendilkumarn | 5 comments | | HN request time: 0.001s | source
Show context
KindAndFriendly ◴[] No.30793316[source]
The other day I wanted to learn Svelte. Even though the tutorials on the Svelte homepage are great, I found the MDN Svelte tutorial to be better: it explains the conceptual differences wrt other frontend frameworks well, it explains in detail how to enable Typescript and migrate your projects, and it has a dedicated section that describes different deployment options.

While of - of course - all of these infos can be found somewhere on the web as well, I very much appreciate such a well-written, holistic intro to a framework. I signed up for the MDN Plus 5 plan.

P.S.: If someone from the MDN team is reading this, maybe include a "sign up" link directly in the blog article from Hermina.

replies(3): >>30793645 #>>30794931 #>>30797911 #
zepearl ◴[] No.30794931[source]
(unrelated to the main topic)

> The other day I wanted to learn Svelte...

Any highlight(s) regarding positive/negative experiences that you had with Svelte so far?

Asking because it's on my to-do list for my future frontend (bought 2 books about it, but pending to be read as I'm currently first trying to assimilate "Rust" to program the backends) and I ended up selecting Svelte as potential best candidate after having read the docs & having played with its tutorials => I therefore got a general "positive initial feeling" about it.

The last time I wrote a web-UI was many years ago with PHP & Codeigniter & some hand-written Javascript (from my POV that was alright, lightweight/simple/flexible/low-effort and performance was ok, I would/could do that again but maybe Svelte might be better for what I'd like to do now), so I'm not really up-to-date in this area - Svelte just sounds lightweight & flexible enough for me... . Cheers :)

replies(4): >>30795425 #>>30796216 #>>30799515 #>>30802780 #
1. com2kid ◴[] No.30795425[source]
> Any highlight(s) regarding positive/negative experiences that you had with Svelte so far?

Sveltekit was a bit of a pain to get running, but using svelte itself has been insanely nice. I got an entire internal website up and running with a bunch of cool functionality in ~3 days. The state management with Redux alone would have taken that long if I was using React.

Being able to just use regular HTML is also nice.

There are some gotchas, how it handles CSS is kinda weird, and docs beyond the basics are rough in places.

replies(2): >>30795798 #>>30797173 #
2. zepearl ◴[] No.30795798[source]
Thank you! :)
3. westoncb ◴[] No.30797173[source]
Just fyi, there is no need to use Redux just because you're using React.

If it's a pretty simple case, you can use the built in `useReducer`[0]. Or if you want something that'll scale but that's much more lightweight than Redux, I'd recommend Zustand[1].

[0] https://reactjs.org/docs/hooks-reference.html#usereducer [1] https://github.com/pmndrs/zustand

replies(2): >>30798468 #>>30798678 #
4. lIIIllllIIII ◴[] No.30798468[source]
Zustand looks so nice. I wanted to create my own state management library just for fun and spent a while brainstorming it and then ran into Zustand which basically does exactly what I wanted (but has presumably been developed by people who know what they're doing_
5. girvo ◴[] No.30798678[source]
Amen. We've entirely just used `useReducer` in combo with `useContext` where needed, and its been brilliant (this is a 100k LOC React app)