Live data from Hacker News

Vue.js and Brunch: Webpack Alternative

vuejsdevelopers.com

91–100 of 113 posts

Re: Vue.js and Brunch: Webpack Alternative

#91
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 (super simple) budgeting app with the vue-pwa template with vue-cli. https://budgetme.surge.sh

Disregard the extremely bootstrap-esque css. I threw it together in a matter of hours to just experiment with Vue.

Not popular at all, as far as I know, but then I don't even have analytics on it to even know if it is popular or not.

Re: Vue.js and Brunch: Webpack Alternative

#93

Earlier quoted context omitted.

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.

I tried Vue because someone said the Chinese like it since they can use it without npm (great firewall & such), but everyone including Evan You stresses webpack and npm!

I've been successfully rolling it as an SPA without node/npm/webpack so far, but I'm wondering when the other boot is about to drop.

Re: Vue.js and Brunch: Webpack Alternative

#94

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.

So why don't you do everything as GET/POST?

Because I was dumb enough to try React when enough people said "Oh, this changes everything!"

Whatever React gave, npm and Babel took right back.

Re: Vue.js and Brunch: Webpack Alternative

#95

Earlier quoted context omitted.

So why don't you do everything as GET/POST?

Because I was dumb enough to try React when enough people said "Oh, this changes everything !" Whatever React gave, npm and Babel took right back.

I'm not sure how trying things makes a person dumb. Either way, that doesn't answer the question of what is stopping you from using the tools you prefer rather than the ones you despise.

Re: Vue.js and Brunch: Webpack Alternative

#96

Earlier quoted context omitted.

I'm surprised we haven't seen config packages for webpack take off along the lines of the configs in the ESLint community. There's nothing stopping anyone from publishing an extensible base config.

There IS an abstraction on top of Webpack called "terse webpack": https://github.com/ericclemmons/terse-webpack It seems to have presets for sane defaults on the roadmap.

I'm redoing that whole stack, as it was a prototype to get buy-in to "fix" the Webpack API for most cases.

For an eslint-style plugin system I'd recommend webpack-blocks.

Re: Vue.js and Brunch: Webpack Alternative

#97
post #72
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…

Just install the React Developer Tool extension on chrome: https://chrome.google.com/webstore/detail/react-developer-to... It will light up whenever you are navigating a page built w/ React. Plus, you can dig around and see how they structured it. Some times you get funny surprises, like how the Microsoft node js page was using React, but they had deployed a Development build instead of a Production build.

... Microsoft keep doing that. They've deployed development builds to Office 365 production.

Incidentally, Office 365 SharePoint is built on React.

Re: Vue.js and Brunch: Webpack Alternative

#98
post #41

Earlier quoted context omitted.

Interesting. What would you say are the main advantages over simply passing the data through a server side rendering library?

In my opinion, client-side rendering is here as a justification for the unfortunate splitting of the Fullstack developer into Frontend/Backend roles. Frontend developer used to be a designer who also knew HTML/CSS but the problem with that is that in order to do CSS well, you need to be a programmer. Especially if you're trying to achieve effects that work best as a mix of JS/CSS. Unfortunately, when it comes to desi…

You are _completely_ missing the point of frontend applications, here's a few to get you started:

- Ease of creating complex user flows.

- Decentralization of application work: app runs on client, less CPU cycles for my server!

- Separation of concerns: API does one thing, client application does another, there is a bright red line between the two.

Re: Vue.js and Brunch: Webpack Alternative

#99
post #3

I loved Brunch back a few years ago. But I wasn't happy with how plugins worked, or their "all files get included in your bundle even if you never required them". So I built my own build system on top of Gulp, and added a set of tasks using browserify for web apps ( https://github.com/BraveNewWorldDev/parched-example-app ). It's heavily "convention over configuration", like "npm install parched-babel" is all you need…

Oh boy I just finished moving my old gulp+browserify(+sass+postcss) config to webpack. It was a bunch of custom nonsense.

In return I got a faster build, 20% lighter output and a lot more information (webpack shows size, etc)

Re: Vue.js and Brunch: Webpack Alternative

#100

Earlier quoted context omitted.

In my opinion, client-side rendering is here as a justification for the unfortunate splitting of the Fullstack developer into Frontend/Backend roles. Frontend developer used to be a designer who also knew HTML/CSS but the problem with that is that in order to do CSS well, you need to be a programmer. Especially if you're trying to achieve effects that work best as a mix of JS/CSS. Unfortunately, when it comes to desi…

Boy I don't mess the days of dealing with SQL queries inside of PHP "view" files. Reminiscing aside, you can build server-side applications in both Vue and React.

I'm not advocating for SQL in views. MVC and ORM are great. As is free auth and form generation from database models. I haven't seen a framework that gives me everything that Django or Laravel does for free.
Post reply on HN