News for hackers. Stuff that matters.
Re:Why we chose Vue.js by octref on Friday October 21, 2016 @02:34AM (#12758559)
To me Vue is a great tool for side projects. In React I found myself struggling to figure out what libs to use and keep myself up to date with them. I also hated configuring webpack. With Vue, I have officially supported libraries like vuex and vue-router which work great with Vue out of the box. vue-cli also allows me to scaffold projects with these libraries very easily.

But the thing I like most about Vue is it allows me, who identifies as a front-end dev or design-coding hybrid, to quickly iterate and build prototypes. Look at the single file component:

  <template>
    <div id="list">
      <li></li>
      <li></li>
    </div>
  </template>
  <script>
    export default {
      // Define your component
    }
  </script>
  <style scoped>
    #list { list-style: none }
  </style>
I can quickly edit the template to alter my component's DOM structure, style it with scoped css, and change its dynamic behavior in the script tag. Like the suite of Jade/Coffee/Stylus? Adding a lang attribute to each tag and you are good to go. Awesome stuff.
Re:Why we chose Vue.js by shriek on Friday October 21, 2016 @05:28AM (#12759162)
Wait, Vue doesn't need to be transpiled to JS like JSX? I'm equally hating configuring webpack. It's lack of documentation isn't helping either.
Re:Why we chose Vue.js by slig on Friday October 21, 2016 @08:33AM (#12759844)
After "wasting" a few hours watching webpack tutorials and reading tons os blogs about, I think I finally grasped it.

But then I discovered that there's already a new tool that's cooler than webpack: rollup [1].

[1]: http://rollupjs.org/

Re:Why we chose Vue.js by sotojuan on Friday October 21, 2016 @07:29AM (#12759512)
Why aren't you using create-react-app?
Re:Why we chose Vue.js by Aldo_MX on Friday October 21, 2016 @11:14AM (#12761088)
Why should you?

I mean, it is really handy to have a tool to save you from the initial setup and all that boilerplate code when you already know how it works.

But not knowing how the different pieces fit together will bite you when things start to fail.

Re:Why we chose Vue.js by shriek on Saturday October 22, 2016 @12:15AM (#12767153)
Primarily because we're gonna need webpack anyway (using it as build tool in the project) and started before create-react-app started. It's been quite a while but I still don't fully grasp webpack yet.
Re:Why we chose Vue.js by blahbap on Friday October 21, 2016 @02:39AM (#12758576)
But is it use limited to side projects in your opinion?
Re:Why we chose Vue.js by octref on Friday October 21, 2016 @02:45AM (#12758597)
No, it is solid for production and a lot of large Chinese companies like Alibaba, Baidu, Xiaomi, DJI use it.