News for hackers. Stuff that matters.
Re:State of JavaScript 2019 by s_y_n_t_a_x on Thursday December 19, 2019 @10:16AM (#21835540)
Svelte is just a web framework, React is a software framework.

Then there's the missing Typescript support...

That's what happens when you create your own template syntax...again.

I'll continue to use React so I can simply use Typescript for my components, not some random syntax.

My styles are typed, my components are typed, my state is typed. Why would I ever go back?

Re:State of JavaScript 2019 by Can_Not on Saturday December 21, 2019 @09:56AM (#21851429)
Svelte also doesn't support anything like rollbar/sentry. Some exceptions won't trigger the error handler in sapper, so your app just freezes.
Re:State of JavaScript 2019 by nailer on Thursday December 19, 2019 @11:43AM (#21836491)
> That's what happens when you create your own template syntax...again.

> I'll continue to use React

React also created it's own syntax. Svelte's syntax looks more similar to preceding work than React's syntax did.

Re:State of JavaScript 2019 by s_y_n_t_a_x on Thursday December 19, 2019 @12:22PM (#21836961)
JSX is syntactic sugar for function calls, but they are still just JS functions. You don't even have to use JSX.

Templates are 5 steps backwards, Svelte overall is a leap backwards.

Familiarity != simplicity.

The only thing I'd use Svelte for is for simple websites, but oh no you can't because it requires JS...

Re:State of JavaScript 2019 by nailer on Thursday December 19, 2019 @12:34PM (#21837113)
It seems like you're splitting hairs. React had a new syntax. Svelte has a new syntax too, albeit a familiar one.

You can call Svelte's syntax 'templates' if you want, but if you do, you should call JSX a 'template' syntax too. You seem to be saying templates are bad, which is fine, but a vdom and a compiler are both sufficiently different from, say, mustache templates and you seem to be favoring React for no technical reason.

> Familiarity != simplicity.

Sure. But you literally just said:

> That's what happens when you create your own template syntax...again.

Which seems to indicate you preferred familiarity.

I'm not really sure what your argument is except pointing out that you prefer React. OK.

Re:State of JavaScript 2019 by s_y_n_t_a_x on Thursday December 19, 2019 @12:47PM (#21837262)
JSX is not a template syntax. JSX is entirely optional, it's just syntactic sugar for function calls.

JSX is simply a way to write JavaScript that looks like HTML.

I know when I develop in React there's no magic. I know JSX are just functions, everything else in the code is as is.

Re:State of JavaScript 2019 by arxpoetica on Thursday December 19, 2019 @01:08PM (#21837493)
> I know when I develop in React there's no magic.

That's the biggest misstatement of the day. ️ We understand that you prefer React, but this is utter...

Re:State of JavaScript 2019 by s_y_n_t_a_x on Thursday December 19, 2019 @01:14PM (#21837552)
I honestly don't care what you think, I explained my position.

I'll continue to use the one framework that supports typing styles, components, and state.

I'll continue to use the one framework that can bridge to every major desktop and mobile OS's native UI.

I'll continue to use the one framework backed by both Facebook and Microsoft.

I'll continue to use simple JS functions to build every part of my app.

You can use Svelte, lol.

Oh and don't use "we", you're one person.