r/webdev • • Sep 26 '18

The Solo JavaScript Developer Challenging Google and Facebook

https://www.wired.com/story/the-solo-javascript-developer-challenging-google-facebook/
65 Upvotes

23 comments sorted by

48

u/doctorcain Sep 26 '18

Hint: It’s Vue.js

38

u/koprulu_sector Sep 26 '18

My perspective is that Vue seems to be what developers who prefer object oriented programming choose, while React is more popular for those that are open to exploring a functional approach. Neither is better or worse - it’s preference.

Personally, I think Vue’s fast rise and gaining popularity are almost a backlash resulting from developers wanting/needing a new framework and not wanting to go the functional route, or relearn MVC as just V.

19

u/Zeeesty Sep 26 '18

interesting, I havent heard this observation before. But I certainly fit the description of a React dev who likes the functional style.

7

u/[deleted] Sep 26 '18

I love both and really enjoy working with both for different reasons. But I always think of them (probably incorrectly) as being solutions to different questions.

React seems like a software engineering team wanted to use all the power and elegance of JS as a programming language to dynamically generate a front end.

Vue, on the other hand, seems to start from the front end (html/css) and work back from there into the JS.

Vue uses a very html-like syntax and builds CSS styles into its components in a very straightforward way, where JSX reads a lot more like vanilla ES6, and CSS in React is still kind of an afterthought (I like where CSS in JS is taking things, personally, but it still feels like we haven't quite reached the best solution yet).

Because of this, I do think Vue is the less intimidating option, but its creator also had the benefit of seeing the early versions of React and Angular and leapfrogging over some of their awkwardness. React 16 is a huge improvement over previous versions. And my hope is that all this back and forth between these frameworks will push them both to just keep getting better and better.

1

u/arya-nix Sep 26 '18

I agree its a preference. But If you need to develop something you simply want to implement it, rather than choosing between functional approach or OOP based approach.

Or deciding on using observables, promises, redux, immutablejs, etc. Every JavaScript developer in our team does JavaScript their own way.

For us VueJs offered simplicity and understanding among developers to do things in simpler way.

3

u/LaSalsiccione Sep 26 '18

Speak for yourself, I like to also choose how to do it as I don’t need to “just implement”. I like Vue but I prefer React because it like the functional style

2

u/arya-nix Sep 26 '18

I suppose everyone on reddit has freedom to tell about his perspective.

I said the same thing that you said. You like the functional style. So do I, not only in JavaScript but in other languages as well.

I just meant like functional style. I prefer simplicity as a flavour.

JavaScript community is huge with great diversity.

That is why we have different tastes and make our preferences differently.

-2

u/rk06 v-dev Sep 26 '18

I think you have it backwards!

Most of the programmers, whom I know of, are procedural programmers masquerading as Object Oriented programmers. And I believe at one time, nearly all of the programmers "were" Object Oriented programmer.

However, React and its ecosystem (especially redux) forces developer to think in functional programming. Hence current react devs are forced to switch paradigms to Functional Programming, Or pick other frameworks like Vue.

Hence you see, react dev as functional programmers and Vue devs as OO programmers

-2

u/Kaiser214 Sep 26 '18

I would argue that React is the more Object Oriented approach because the components themselves are defined as ES6 classes. You craft true constructor functions that handle any setup/teardown in addition to lifecycle methods.

Vue is more about learning patterns. You craft Vue components by always placing any properties within the "data" or "props" key and the methods within the "methods" key. You don't implement your own constructor methods and instead rely solely on lifecycle hooks.

It's just about personal preference and current skill level in Javascript. Those coming from jQuery might find Vue easier to learn. React has a bit higher learning curve.

3

u/jakethepuppo Sep 26 '18

> Vue is more about learning patterns.

Programming is about learning patterns...and how is making a constructor meaningful in any way?

Also, since when do you not rely on lifecycle hook in React? A constructor is basically a lifecycle hook anyways...and it's even mentioned as such in the React documentation.

-1

u/Kaiser214 Sep 26 '18

Programming is about learning patterns...and how is making a constructor meaningful in any way?

LMAO... Um... it's pretty important in OOP to handle the information passed when instantiating an object. With and without javascript, this is pretty basic stuff. Tis why I stated that React could be viewed as the more Object Oriented approach. No doubt that they both utilize it.

Also, since when do you not rely on lifecycle hook in React?

You do rely on them. Thanks for playing.

6

u/[deleted] Sep 26 '18

[removed] — view removed comment

2

u/PinkyWrinkle Sep 27 '18

Vue can get messy when you start breaking outside of using props to pass data and start using data busses instead, or relying too much on accessing the global store from each component instead of using container elements to centralize store.

Try using Vuex instead of an event bus by subscribing to mutations and actions

-4

u/jakethepuppo Sep 26 '18

If you want a team to be using React, they better damn well know JS and ES6+ like the back of their hand.

Lol if you really think this. I have seen tons of just absolutely horrendous React code. Most people trying to get into the industry learn React and have no idea what they're doing.

Also, a framework being more difficult to use does not make it better. That's never been the case in the history of software development. If it's easier to make mistakes, people WILL make more mistakes, period.

And by the way, anything you can do in React, you can do in Vue. You're given the ability to write using SFC if you want, but you can go pure JS as well.

You're also acting like React forces you to do things certain ways and that's just BS. Most everything you mentioned are nothing more than design patterns, patterns which you can follow in Vue or React.

6

u/[deleted] Sep 26 '18 edited Sep 26 '18

[removed] — view removed comment

1

u/trout_fucker 🐟 Sep 26 '18

If it makes you feel any better. He just did the same shit to a post I wrote 3 damn months ago. I don't even think he read it. Just raged some nonsense.

1

u/trout_fucker 🐟 Sep 26 '18

If it makes you feel any better. He just did the same shit to a post I wrote 3 damn months ago. I don't even think he read it. He just raged some nonsense.

1

u/digitil Sep 26 '18

Fun fact: Vue was created while he was working at Google for his work at Google (though it doesn't seem like it is affiliated with Google anymore).

1

u/[deleted] Sep 26 '18

Angular was hella big when I wanted to build an app although it was quite simple

React once you understand it is way powerful, but states urg

And now I'm tempted to vue

1

u/steeze206 Sep 26 '18

Evan You really is amazing for allowing Vue to stand on its own against the other two funded by major companies. Really goes to show how much you can accomplish if you're passionate enough.

1

u/steeze206 Sep 26 '18

Interesting thing I just learned, Jordan Walke (the creator of React) went to University of Washington.

1

u/maxverse Sep 26 '18

vue is pretty great :)