Live data from Hacker News

RFC: Adopt a modern JavaScript framework for use with MediaWiki

phabricator.wikimedia.org

41–50 of 293 posts

Re: RFC: Adopt a modern JavaScript framework for use with MediaWiki

#41
post #8

Earlier quoted context omitted.

To me the difference is that Svelte is a lot more pure JavaScript than Vue. I haven't had the chance to use it in any larger project, but in my small playgrounds, I've definitely enjoyed it more than Vue.

If you wanna see Svelte in production, I’m using it for my homepage: https://webb.page I’m glad to see Svelte growing in popularity here.

That page could literally just be a static web page or built using a static site builder like Jekyll/Hugo etc?

Re: RFC: Adopt a modern JavaScript framework for use with MediaWiki

#42
post #34

Earlier quoted context omitted.

I've worked with both. And I have to say: It depends. Mostly I feel like typescript slows me down A LOT. In my opinion, the better your code style, guidelines, linting, infrastructure, error reporting and tests - the less you need typescript. I worked in a team that had about 150 micro-apps and services, it was maintained by roughly 15 devs. Each microservice had it's very small scope and it was very very easy to wor…

> ...the better your code style, guidelines, linting, infrastructure, error reporting and tests Doesn't TypeScript kind of solves (at least partially) those issues?

"We have problems, let’s introduce some code style guidelines, linting, error reporting and most importantly tests!" "Nah, let's just switch to Typescript, it will solve all those problems. At least partially."

Re: RFC: Adopt a modern JavaScript framework for use with MediaWiki

#45
post #8

Earlier quoted context omitted.

To me the difference is that Svelte is a lot more pure JavaScript than Vue. I haven't had the chance to use it in any larger project, but in my small playgrounds, I've definitely enjoyed it more than Vue.

If you wanna see Svelte in production, I’m using it for my homepage: https://webb.page I’m glad to see Svelte growing in popularity here.

What exactly are you using Svelte for? It seems to literally be one HTML page...

Re: RFC: Adopt a modern JavaScript framework for use with MediaWiki

#46
post #38

Not knocking Vue but what exactly is meant by modern? I work on the backend and hardly (if ever) see frameworks described in those terms.

Needless to say that this is subjective, but I think Single Page Applications and components-based UI in webdev is fairly modern as opposed to imperative, jQuery-esque Front-end development.

Re: RFC: Adopt a modern JavaScript framework for use with MediaWiki

#47
post #35
post #12

Earlier quoted context omitted.

That feels like learning Angular template syntax, and I really dislike it. React has its warts, but I find JSX very readable, much more flexible.

I dislike both. Most readable template syntax for me is PHP's "alternative syntax for control structures" (the one with colons instead of braces and closing keywords).

That feels like JSP to me, and I don't have fond memories of JSP.

Re: RFC: Adopt a modern JavaScript framework for use with MediaWiki

#48
post #6

Earlier quoted context omitted.

+1 on Svelte. Seems like the better/faster option.

Is it really faster for real-world uses? I know Svelte does clever things to avoid a virtual DOM, but is the difference in practice really appreciable?

The bigger the virtual dom the larger the performance gap is supposed to be. But, true, would like to see some benchmarks from the real world, i.e rewrites and such.

Re: RFC: Adopt a modern JavaScript framework for use with MediaWiki

#49
post #42

Earlier quoted context omitted.

> ...the better your code style, guidelines, linting, infrastructure, error reporting and tests Doesn't TypeScript kind of solves (at least partially) those issues?

"We have problems, let’s introduce some code style guidelines, linting, error reporting and most importantly tests!" "Nah, let's just switch to Typescript, it will solve all those problems. At least partially."

It’s not either/or. Nice strawman you put up here.

Re: RFC: Adopt a modern JavaScript framework for use with MediaWiki

#50
post #8

Earlier quoted context omitted.

To me the difference is that Svelte is a lot more pure JavaScript than Vue. I haven't had the chance to use it in any larger project, but in my small playgrounds, I've definitely enjoyed it more than Vue.

If you wanna see Svelte in production, I’m using it for my homepage: https://webb.page I’m glad to see Svelte growing in popularity here.

Viewing the source shows an html page without a closing body nor html tag: it's probably not the best case for showcasing it seems.

The layout it all over the place too using FFox, (it's fine on Chrome and Safari) so it also seems to be lacking in some basic cross browser testing, which again, is not good news when show-casing a framework, as a frameworks' prime responsibility is to ensure cross browser/platform uniformity.

Hopefully this all boils down to a simple 'oopsie' in your project, rather than svelte.

Post reply on HN