News for hackers. Stuff that matters.
Re:Why we chose Vue.js by k__ on Friday October 21, 2016 @05:50AM (#12759215)
Isn't Vue.js hype too?

I mean if I look at the GitHub stars it seems pretty hyped to me. (It's between Angular/React and Ember)

Re:Why we chose Vue.js by Svenskunganka on Friday October 21, 2016 @07:59AM (#12759647)
I don't think it is. I've been closely keeping an eye on Vue since its first release, and it has really matured quite well and steadily since then. I like to reference Vue with the Crystal[1] programming language, which has looked closely on mainstream programming languages and adopted the good parts of them, like Go's concurrency model, Node's asynchronous I/O, Ruby's clean & straight-forward syntax and object-orientation model and the performance and interoperability with C.

Similar to Crystal, Vue has looked at the other frameworks and adopted the good parts from them. I personally don't think the hype is anything but a result of hard work and a genuinely good framework.

[1]: https://crystal-lang.org/

Re:Why we chose Vue.js by macspoofing on Friday October 21, 2016 @08:37AM (#12759870)
>I don't think it is.

You probably want to give it a bit more time. It takes 1 or 2 years after a js framework goes mainstream for the disillusionment and disappointment to set in. We are still in the Vue.js honeymoon phase.

Re:Why we chose Vue.js by mangeletti on Friday October 21, 2016 @09:16AM (#12760121)
This is because it takes about one or two years before all the hordes of idiots to abandon the last ship they sank and come swimming full speed towards a new ship to sink.

The unfortunate part is that it's moments like this (when a framework makes it into the spotlight in a big way like this) that those hordes begin their swim.

Evan is an excellent developer, and it won't by through his volition that Vue gets ruined.

Re:Why we chose Vue.js by Touche on Friday October 21, 2016 @12:50PM (#12762058)
No, what happens is a new framework comes out that fixes the complexity problems of the previous popular framework, but ignores why that complexity existed in the first place.

Once the new framework gains popularity the limitations caused by ignoring complexity start to surface and so the framework has to add features to handle them, creating complexity of its own.

Then the cycle repeats itself.

Re:Why we chose Vue.js by mangeletti on Friday October 21, 2016 @01:34PM (#12762598)
See my explanation below my OP. Your comment is correct, but these complexities should not be solved in the framework, lest we forget the vision that drove the creation of this framework in the first place, providing an obstruction layer that doesn't solve all problems at all layers.
Re:Why we chose Vue.js by oldmanjay on Friday October 21, 2016 @09:41AM (#12760291)
Could you expand more on how these hordes of idiots sinks framework by using it? I've never come across a theory about this that's quite so tantalizingly bad before and I'd love you to expound further.
Re:Why we chose Vue.js by mangeletti on Friday October 21, 2016 @10:04AM (#12760494)
It's easier to illustrate by walking through an example timeline:

1. Framework X is created based on the vision of its founder

2. Lots of people begin to use it

3. X gets better and better (user feedback + excitement of the project's success)

4. X becomes super popular and attracts people from other frameworks

5. More and more contributors begin committing code (helpful, but hard to manage beyond a certain volume), and entropy increases - more bugs start getting through (think Rails, where there were loads of security and data loss bugs in the span of single years)

6. People bring their ideas with them, which is helpful at times, but which also begins to dilute the X creator's vision and replace it with a democratic vision (sometimes good, sometimes bad)

7. Social pressure causes the creator of X to begin changing his vision to accommodate the community

The apex of quality is at # 4, and that's the point we're approaching now. Also worth noting is that this timeline isn't always followed exactly. Take Django, for instance. It was able to keep up with community demands without caving in to too many wild requests, and it managed entropy by keeping the number of core committers to a minimum for many years.

Re:Why we chose Vue.js by ci5er on Friday October 21, 2016 @10:42AM (#12760813)
> I've never come across a theory about this that's quite so tantalizingly bad before

With some projects, it's both obvious and simple. Similar to eternal summer. Democracy means that all of us get to be dumber than any of us.

Re:Why we chose Vue.js by thegeekpirate on Friday October 21, 2016 @07:33PM (#12765836)
You most likely meant "Eternal September".
Re:Why we chose Vue.js by ci5er on Friday October 21, 2016 @07:36PM (#12765865)
Yes. But longer. Because it starts even before the kids get back to school...
Re:Why we chose Vue.js by Bahamut on Friday October 21, 2016 @09:52AM (#12760379)
Can't speak for the author of the post you're replying to, but I'd wager it refers to the bad actors you find on GitHub and such where they contribute significant negative equity to an ecosystem.
Re:Why we chose Vue.js by sotojuan on Friday October 21, 2016 @09:31AM (#12760223)
Keep in mind Vue isn't backed by Facebook or Google, so it'll take longer for hype to set in as Evan You can't market it heavily or organize large conferences by himself.
Re:Why we chose Vue.js by corobo on Friday October 21, 2016 @06:05AM (#12759254)
It's definitely hype. I'm honestly surprised nobody seems to be complaining about it breaking their noscript, accessibility, SEO, etc.
Re:Why we chose Vue.js by k__ on Friday October 21, 2016 @06:22AM (#12759314)
I read a writing about how SEO isn't an issue with SPAs. (can't find it at the moment)

As far as I know, all major search engines are evaluating JavaScript client-side and index the resulting html, only a chinese one had problems with SPAs.

There was even a site from Google, where you could enter a URL and see how Google sees the page.

Re:Why we chose Vue.js by andrewingram on Friday October 21, 2016 @07:48AM (#12759605)
It's still an issue. Let me show you an example.

Here's a website that's an SPA https://preactjs.com

I don't have an exact page count, but I was able to find 15 pages from browsing around.

Here's how many pages various search engines have indexed using the query "site:preactjs.com"

Google: 17 Bing: 6 Yahoo: 6 Baidu: 1

One of the Google results is an error page, but it presumably can't be de-indexed automatically due to there not yet being a way of declaring a 404-equivalent in SPAs.

I've also read (I can't recall where) that Google has a latency of a few days when it comes to indexing SPAs compared to server-rendered apps. This may not be a problem for you, but it's worth knowing about.

Re:Why we chose Vue.js by k__ on Friday October 21, 2016 @08:07AM (#12759677)
Interesting, thanks.

I think Jason Miller, the Preact developer, re-tweetet the article about SEO & SPAs a few days ago.

But, because of progressive enhancement, I would using SSR on my next project anyways.

Re:Why we chose Vue.js by kossae on Friday October 21, 2016 @10:07AM (#12760518)
That seems like an example of a SPA that should really be a static site. Aside from it being the library's main page, why would you even need to implement this with any front end frameworks? I believe the parent post was referencing how companies usually have a static site for marketing/SEO, and the backend application is a SPA. This would effectively remove the need for SEO on an app that requires authentication anyways.
Re:Why we chose Vue.js by andrewingram on Friday October 21, 2016 @11:30AM (#12761228)
In that context, I agree. If your app doesn't need to be crawled or otherwise scraped, worrying about server-side rendering is just going to hold you back.

But there are public websites with a high degree of interactivity (such as social networks, or ecommerce sites) for which SEO is a huge concern.

Re:Why we chose Vue.js by rorykoehler on Friday October 21, 2016 @09:41AM (#12760289)
Is that not what sitemaps are for?
Re:Why we chose Vue.js by awinder on Friday October 21, 2016 @08:39AM (#12759881)
https://support.google.com/webmasters/answer/6066468?hl=en

Yeah there's a lot of FUD about how google indexer works, needlessly IMO

Re:Why we chose Vue.js by SparkyMcUnicorn on Friday October 21, 2016 @07:44AM (#12759583)
Also, with Vue 2.0 we have the option of SSR.
Re:Why we chose Vue.js by aikah on Friday October 21, 2016 @02:31PM (#12763218)
Personally it's Angular 2.0 for me. I'm a big fan of Angular 1.0 but can't stand how complex it has become. I want to be able to start using a framework in a matter of hours, not weeks. Most of Angular 2 complexity is unecessary and I write large SPAs ,not toys, but I don't like the noise. I use Go and Python on the server, I don't want to have to manage a Java style application on the client, because that's what it is another version of GWT with Typescript in place of Java.
Re:Why we chose Vue.js by mmargerum on Saturday October 22, 2016 @01:50PM (#12769701)
I highly recommend the angular cli tool. In 2 minutes you have a webpack setup with bootstrap that hot reloads your code . you can even proxy API calls to your real web server. Deploying consists of copying the dist folder . With tree shaking the footprint for angular 2 drops significantly