Live data from Hacker News

Vue: We no longer have any plan of deprecating the Object API

github.com

21–30 of 34 posts

Re: Vue: We no longer have any plan of deprecating the Object API

#21

I think the best part about Vuejs right now is how simple it is and everything just works! A vue component is still as simple as {template: 'hi'}. You don't need webpack or any transliteration for it to work. Just drop the script tag like the good old jQuery and it's working! No wonder it has gained so much popularity as I don't think you can make it more KISS. Transition from vue1 to vue2 was really simple. I just h…

I keep hearing this "a vue component is still as simple as {template: 'hi'}". Genuine question: I've been using Vue for the last couple of months, is anybody actually using this in the real world? Instead of vue-cli apps with single-file components (which is the other argument often seen)?

I am. I wrote a bang-simple extensible blogging system several months ago using Vue.

I started very, very simple. I ended up with multi-component files. No vue-cli. Three files. A few hundred lines of code.

Works fine. Never had to touch it again.

Re: Vue: We no longer have any plan of deprecating the Object API

#22

Earlier quoted context omitted.

I keep hearing this "a vue component is still as simple as {template: 'hi'}". Genuine question: I've been using Vue for the last couple of months, is anybody actually using this in the real world? Instead of vue-cli apps with single-file components (which is the other argument often seen)?

I am. I wrote a bang-simple extensible blogging system several months ago using Vue. I started very, very simple. I ended up with multi-component files. No vue-cli. Three files. A few hundred lines of code. Works fine. Never had to touch it again.

Might I ask if you could open source it? I badly need dead simple Real World examples.

Re: Vue: We no longer have any plan of deprecating the Object API

#23

Earlier quoted context omitted.

I am. I wrote a bang-simple extensible blogging system several months ago using Vue. I started very, very simple. I ended up with multi-component files. No vue-cli. Three files. A few hundred lines of code. Works fine. Never had to touch it again.

Might I ask if you could open source it? I badly need dead simple Real World examples.

Sure. Hell I'll not only open-source it, I'll do a 10-minute video walkthru if I can get some coders to watch and ask questions.

Re: Vue: We no longer have any plan of deprecating the Object API

#24
post #11

As a TypeScript user who always disliked the object API and preferred vue-class-component, I feel a bit left out in the fallout of this. JavaScript users are always the loudest. IMO there is no clear, great option for people who are TS devotees. Again it feels like TS was an afterthought. Will have to experiment a bit. Maybe it's possible to do something decent with some helper functions.

Class components seemed to be the best bet with the issues introduced over the past 6+ months. Issues that have languished presumably due to work on Vue3.. Which looks like it's a ways off still?

Re: Vue: We no longer have any plan of deprecating the Object API

#25

I think the best part about Vuejs right now is how simple it is and everything just works! A vue component is still as simple as {template: 'hi'}. You don't need webpack or any transliteration for it to work. Just drop the script tag like the good old jQuery and it's working! No wonder it has gained so much popularity as I don't think you can make it more KISS. Transition from vue1 to vue2 was really simple. I just h…

I keep hearing this "a vue component is still as simple as {template: 'hi'}". Genuine question: I've been using Vue for the last couple of months, is anybody actually using this in the real world? Instead of vue-cli apps with single-file components (which is the other argument often seen)?

I am on a reasonably sized project (which I didn't start but took over).

It's just an easier better way to enhance existing server rendered pages to include responsive elements without needing all the single page/routing stuff nor dealing with mass of jQuery binds and hand rolled data stores.

And best part is, Vue plays quite nicely with jQuery so can still use existing libraries and elements.

Re: Vue: We no longer have any plan of deprecating the Object API

#26
post #11

As a TypeScript user who always disliked the object API and preferred vue-class-component, I feel a bit left out in the fallout of this. JavaScript users are always the loudest. IMO there is no clear, great option for people who are TS devotees. Again it feels like TS was an afterthought. Will have to experiment a bit. Maybe it's possible to do something decent with some helper functions.

I disagree. Overall v3 will be more TS friendly as they’re working to make the lib more functional and less reliant on JS syntactic sugar like classes, hocs, and mixins.

Re: Vue: We no longer have any plan of deprecating the Object API

#27

I think the best part about Vuejs right now is how simple it is and everything just works! A vue component is still as simple as {template: 'hi'}. You don't need webpack or any transliteration for it to work. Just drop the script tag like the good old jQuery and it's working! No wonder it has gained so much popularity as I don't think you can make it more KISS. Transition from vue1 to vue2 was really simple. I just h…

I keep hearing this "a vue component is still as simple as {template: 'hi'}". Genuine question: I've been using Vue for the last couple of months, is anybody actually using this in the real world? Instead of vue-cli apps with single-file components (which is the other argument often seen)?

I also am. I love the simplicity of vue api, but I hate vue-cli, webpack(it is good because it's configurable and extensible, but it's overwhelmingly complex, all the output formats are a pain to debug, I have never seen sourcemaps work in chrome developer tools) and single file components.

That led me to create my own architecture to scaffold vue apps, which Evan You seems to hate.

https://github.com/vuejs/vue/issues/8106

In this comment, I showcased some production apps running with this:

https://github.com/vuejs/vue/issues/8106#issuecomment-386064...

https://github.com/vuejs/vue/pull/8807

I have improved this architecture even further in new apps, but I hadn't time yet to update the "vue-generator" boilerplate.

Re: Vue: We no longer have any plan of deprecating the Object API

#28

I think the best part about Vuejs right now is how simple it is and everything just works! A vue component is still as simple as {template: 'hi'}. You don't need webpack or any transliteration for it to work. Just drop the script tag like the good old jQuery and it's working! No wonder it has gained so much popularity as I don't think you can make it more KISS. Transition from vue1 to vue2 was really simple. I just h…

I keep hearing this "a vue component is still as simple as {template: 'hi'}". Genuine question: I've been using Vue for the last couple of months, is anybody actually using this in the real world? Instead of vue-cli apps with single-file components (which is the other argument often seen)?

[deleted]

Re: Vue: We no longer have any plan of deprecating the Object API

#29

Earlier quoted context omitted.

Might I ask if you could open source it? I badly need dead simple Real World examples.

Sure. Hell I'll not only open-source it, I'll do a 10-minute video walkthru if I can get some coders to watch and ask questions.

If you upload it to YouTube, I'll watch and probably have a question or two for the comments section :-)

Re: Vue: We no longer have any plan of deprecating the Object API

#30

I think the best part about Vuejs right now is how simple it is and everything just works! A vue component is still as simple as {template: 'hi'}. You don't need webpack or any transliteration for it to work. Just drop the script tag like the good old jQuery and it's working! No wonder it has gained so much popularity as I don't think you can make it more KISS. Transition from vue1 to vue2 was really simple. I just h…

I keep hearing this "a vue component is still as simple as {template: 'hi'}". Genuine question: I've been using Vue for the last couple of months, is anybody actually using this in the real world? Instead of vue-cli apps with single-file components (which is the other argument often seen)?

I am using it that way an app I wrote for our company. I do have a custom bundler that will make a minified file for production environment but it just runs the source files through “terser”.
Post reply on HN