Live data from Hacker News

Vue.js and Brunch: Webpack Alternative

vuejsdevelopers.com

61–70 of 113 posts

Re: Vue.js and Brunch: Webpack Alternative

#61
post #37

Earlier quoted context omitted.

Thanks! Tried it a bit and thought: "Hmm.. it's probably react that causes all these spinning "loaders" everytime I click somewhere. Wouldn't it be better without?". How do you see that? EDIT: Ups, why the downvotes? With spinning "loaders" I mean the "loading" animation the website shows. The spinning circle. Anything bad about this question?

The loading spinners happen when data is being fetched from the database. The app itself is downloaded upon initial load and anything from the database will trigger a loading spinner as it's being fetched.

Yup, I got that. But couldn't a bit of text be loaded instantly instead?

Is the time the spinners run determined by the time the server needs to deliver the data? Would they go away when you put the site behind a CDN that delivers the data faster?

Re: Vue.js and Brunch: Webpack Alternative

#62
post #48

Earlier quoted context omitted.

Not the grandparent, but it makes things a lot easier. Basically, think of something as trivial as form validation. You need to do it both client and server-side regardless, but client side you might have additional complexity, like "if paying by credit card, show those fields, and if paying by PayPal, redirect." This means that your server might need to be aware of these branches of state that might happen, and it m…

Well, these are the general arguments for these frameworks. But how do they apply to the linked page? I used it for a while and did not come across a Credit Card vs Paypal form.

The linked page simply talks about Using a simpler compilation toolchain than the Vue standard one (Webpack), at the cost of it supporting fewer features. It's sort of like the argument of using clang vs GCC: it assumes you already are using C for your project, just talking about which compiler. Actually a better example would be autotools vs CMake.

Re: Vue.js and Brunch: Webpack Alternative

#63
post #30

Do you guys use any public websites that are based Vue, React or alike? Everytime I search for sites that use frameworks like Vue or React, I came up with mostly empty hands. Except for example pages or pages by coders for coders. Or pages that "use" one of the frameworks but seem to make no use at all of the functionality. When I ask around people usually tell me "Well, at my company we make a dashboard for another…

react / react router for 100% of https://constructionjobs.com

Re: Vue.js and Brunch: Webpack Alternative

#64
How can you use this for any real production apps over webpack when it doesn't even support code splitting. This is nice for bootstrapping projects, or using just a little JS on certain pages. Otherwise I don't see how you could use it in an all JS app

Re: Vue.js and Brunch: Webpack Alternative

#65
post #37

Earlier quoted context omitted.

Here's a project I'm working on that uses react: https://edabit.com

Thanks! Tried it a bit and thought: "Hmm.. it's probably react that causes all these spinning "loaders" everytime I click somewhere. Wouldn't it be better without?". How do you see that? EDIT: Ups, why the downvotes? With spinning "loaders" I mean the "loading" animation the website shows. The spinning circle. Anything bad about this question?

lol what kind of websites do you make? internationaloilandgas.com? drbronvillesfootcream.com?

Re: Vue.js and Brunch: Webpack Alternative

#66
post #30

Do you guys use any public websites that are based Vue, React or alike? Everytime I search for sites that use frameworks like Vue or React, I came up with mostly empty hands. Except for example pages or pages by coders for coders. Or pages that "use" one of the frameworks but seem to make no use at all of the functionality. When I ask around people usually tell me "Well, at my company we make a dashboard for another…

I built my side project with Vue: https://wherecaniwatchmy.team

Client side rendering saved my bacon when it went mini-viral a few weeks ago. My little home server probably would have keeled over and died had it been rendering all the pages, but just serving static files is a piece of cake.

Re: Vue.js and Brunch: Webpack Alternative

#67

How long can we keep adding to the tower of javascript shitware before it falls over? Honestly I thought it would have fallen over a long time ago. Just looking at long chains of mystery-meat that npm imports, and the time it takes Babel to compile the simplest of projects make me just want to say the hell with it all and do everything as GET/POST.

I wonder the same thing myself. Occasionally I look into these frameworks to see if they really add anything to the development of complex web applications vs. the amount of work they take to integrate them and it always heavily seems like a waste of time.

VueJS absolutely adds to the development of complex applications, and takes almost no time to set up.

Webpack... not so much. I've spent days fighting with webpack over nonsense.

Re: Vue.js and Brunch: Webpack Alternative

#68
post #30

Do you guys use any public websites that are based Vue, React or alike? Everytime I search for sites that use frameworks like Vue or React, I came up with mostly empty hands. Except for example pages or pages by coders for coders. Or pages that "use" one of the frameworks but seem to make no use at all of the functionality. When I ask around people usually tell me "Well, at my company we make a dashboard for another…

We use Vue at GitLab. You can see why we chose Vue as written by our front-end lead. https://about.gitlab.com/2016/10/20/why-we-chose-vue/

>A simple, but practical example we're using in production: on a GitLab Issue, the issue's state is displayed as either closed or open. That simple value can change often and needs to be represented in several views. With JQuery, we had about 30 or so lines of code to propagate those changes, and those lines involved multiple classes and querying the DOM by hand.

Yep, been there. That type of jQuery gobbledygook has resulted in more bugs than I'd like to admit slipping past my team.

Vue has been an absolute life saver.

Re: Vue.js and Brunch: Webpack Alternative

#69
post #64

How can you use this for any real production apps over webpack when it doesn't even support code splitting. This is nice for bootstrapping projects, or using just a little JS on certain pages. Otherwise I don't see how you could use it in an all JS app

in the first paragraph the author addresses this directly. The author suggests this may be suitable for smaller projects

> Webpack is a crucial tool for building sophisticated, highly optimized web applications, and is encouraged by many influential web developers.

However, for newer developers, or those working on less ambitious projects, Webpack mostly occurs as a barrier

Re: Vue.js and Brunch: Webpack Alternative

#70
post #30

Do you guys use any public websites that are based Vue, React or alike? Everytime I search for sites that use frameworks like Vue or React, I came up with mostly empty hands. Except for example pages or pages by coders for coders. Or pages that "use" one of the frameworks but seem to make no use at all of the functionality. When I ask around people usually tell me "Well, at my company we make a dashboard for another…

Pick one : https://github.com/facebook/react/wiki/sites-using-react
Post reply on HN