r/javascript • u/fagnerbrack • Sep 20 '18
The Solo JavaScript Developer Challenging Google and Facebook
https://www.wired.com/story/the-solo-javascript-developer-challenging-google-facebook/29
u/JavascriptFanboy Sep 20 '18
Vue.js - make JavaScript great again. Not crooked react or lying angular. Lol, these articles are getting more and more silly
60
Sep 20 '18
This a bullshit Vue fluff piece.
14
21
9
u/ClickerMonkey Sep 20 '18
What is it exagerrating exactly? It's an article with a bit of history and some quotes from people.
0
6
u/rk06 Sep 20 '18
This article has more details on vue's backstory in china than others. But that headline is as atrocious as it gets
0
u/MrSteel Sep 20 '18
it's really a joke, since most of basics was taken from others plus I am sure that as in React, it's not about only react but all community and packages around ti, so it's same for Vue... but newspapers got to do what they do best, hype
8
15
u/DrummerHead Sep 20 '18
I think Vue is a pretty cool guy. Eh interact the ui and doesnt afraid of anything.
3
u/deadcell Sep 20 '18
All of these concerns are not actually concerns. They're a symptom you haven't yet become a JS dev. You have to throw yourself mentally into the ecosystem, wholeheartedly, as if you were diving into a pool. At that point every one of your concerns vanish:
There is exactly one way to define a module. Write a file. Done. Webpack takes care of it.
You were using Webpack, right?
The fact that Webpack either wasn't on your radar or already solving your problems says a lot.
Look, I know this sounds like bullshit, and in fact it's very difficult to distinguish this from actual bullshit. But there are a huge number of people here -- old fogies, stuck in the past, yearning for the old days that are never coming back -- who hate JS, and that hatred manifests itself in ten thousand subtle ways.
Inventing the idea out of thin air that "there are 7 different ways to define a module" is simply false. It does not resemble reality. Yes, it's true you can point at all the dead module systems that came and went, but nobody bothers even thinking about those systems because they're dead. They're zombies. Yeah maybe some people use them, but realistically if you're getting shit done in JS that means you have webpack and all of these concerns are not actually concerns.
JS stdlib seems like nonsense? Lodash.
Feels like you're importing too much bloat? Webpack tree shaking takes care of that. Closure compiler eliminates all the code you're not using. There's no reason not to use a first-class stdlib, whether it's Lodash or whatever else you prefer.
The JavaScript community seems to have the opposite of NIH syndrome, so that even basic functionality is offloaded to a third-party modules (see leftpad). The project I'm working on has over 1000 modules in it's dependency tree.
This is the power of JS. It's the thing to force yourself to embrace. You need to join the cult of bullshit and just mentally force yourself to love this rather than hate it. It's why JS won. You can hate it all you want and revel in the insanity, but there is zero reason to do that other than as a way of making yourself feel good. Which is just another way of saying we're all acting very selfish when we lash out at JS like this.
Yes, you're correct. Every one of your points is absolutely true. Yet it's all so very wrong. I wish I could put it into words better than this.
Look dude. I've been around the block. I vividly remember what this shit was like in 2008. You want pain? Holy shit, I remember trying to make a little arrow rotate on my webapp. I wanted finder-style arrow rotations. You know how on a tree view, each folder has a little arrow, and it points to the right when it's collapsed? Click on it, it rotates 90 degrees and points down, and the tree expands. YEah, I tried to do that in 2007 right when Rails 1 was first coming out. Talk about horror. The solution -- the only solution -- was to make an entire animation frame by frame, of the arrow rotating 90 degrees. Like 16 different images, just for this stupid arrow to rotate 90 degrees on command. Because CSS literally wasn't a thing back then. Yeah we had "CSS", but for all intents and purposes we are living in the future right now. We have tools that 2007-me could only dream of.
JS works now. That is not the expected behavior. It's difficult to convey how fucking strange this is. Anyone who lived through that 2006-era transition knows what I mean.
Right now you can drop Semantic UI into your project, hook up React to it, and have first class testing (Enzyme) and state management (Redux).
Don't like all that bullshit? No problem. Use Vue. It sidesteps all the Redux insanity. And the tooling is catching up.
But the way you know these things is by being a JS dev. Living and breathing it every day. There's no way around that. You either throw yourself wholeheartedly into the pool or keep one toe in while complaining about how big the ocean is.
</copypasta>
11
10
u/spaces_over_tabs Sep 20 '18
I've used Angular and the biggest and best thing about it is Typescript. Don't get me wrong, Angular is fantastic and I love it. I learned TS because of Angular and fell in love with it. Every project I do now, I use TS and not necessarily Angular but I need TS.
7
u/TheScapeQuest Sep 20 '18
TypeScript with React and Redux works beautifully. I was so against it when I started a new project using it, now I couldn't live without it. Just protects me from myself a lot more.
Not to say I don't pull my hair out for a few hours every time I try to upgrade a major package though...
1
u/spaces_over_tabs Sep 20 '18
Really? I've had reservations using Typescript with other frameworks because it seems more like an afterthought and the first party support is usually patchy. I relate with the library struggle though, especially when there's no @types for it
2
u/MrJohz Sep 20 '18
TypeScript works pretty well with React. It's not perfectly documented, but the types are all there. Sometimes it's a bit of effort to work out exactly which type you should be using for something, if there's maybe a couple that fit.
The biggest issue is that React encourages you to depend more on smaller packages for the specific utilities you need (unlike Angular, which tends to go more down the 'here, have everything' route). That inevitably leads to more missing @types issues, which is irritating, but I always figure that if a package doesn't have typedefs written for it, it's probably not going to be well-enough maintained that I should be relying on it.
I've had a couple of issues with ImmutableJS, which is often seen in React-world. Basically, the types don't brilliantly support the idea of ES6 classes extending the ImmutableJS records, which is a shame because it's often a useful pattern for explicitly defining the model of your structure. The latest bleeding-edge RC version does fix almost all of these problems... but then it's bleeding-edge stuff again and last I checked the maintainer seems to have disappeared a bit. That said, there are plenty of other options if you are going to go down the immutable state route, so it's not like there's nothing out there.
4
u/yopla Sep 20 '18
I have a project with Vue and TS; works fine.
1
u/spaces_over_tabs Sep 20 '18
Do you enjoy using Typescript with it? More than Vanilla?
3
u/yopla Sep 20 '18
Yes. With Vue class component and vuex class (so experimental annotations in TS) I find the code much more readable than in JS.
Vue cli does a good job at setting up a TS project.
https://github.com/vuejs/vue-class-component/blob/master/README.md
I think it's this one for vuex:
2
1
1
4
u/AceBacker Sep 20 '18
Yeah but, Are all of your variables type 'any'? JK. Typescript is great but I find myself leaning on that any class too much.
6
u/spaces_over_tabs Sep 20 '18
Lol really? Try creating Interfaces or Union types. Generics also reduce boilerplate... I almost never use type 'any'
1
u/MrJohz Sep 20 '18
Yeah, my number one tip for getting familiar with TypeScript is to learn how the whole
number | stringthing works, and just really get comfortable with it. Once you get that, I feel like the language as a whole just really opens up for you, and becomes so much more powerful.
6
u/macinfinty Sep 20 '18
There is a hive mentality in play when it comes to which framework web developers choose to use. Most of that is driven by their popularity which is in turn driven by ease of use rather than the nuances that are part of the teams these developers work with. At the end of the day it all comes down to productivity.
4
u/steeeeeef Sep 20 '18
Wired please... It's not a competition!!!
There's different frameworks for different styles of coding, different teams - big and small - and each one offers different solutions for roughly the same challenges. Pick the one that suits your project/business and the team that's working on it.
3
Sep 20 '18
I read some anonymous source told Wired React has a steep learning curve. I believe it now.
3
u/akujinhikari Sep 20 '18
Anyone else very continually confused with his name being You? Like it was fine when in the middle of a sentence because of capitalization, but when the sentence started with You, I was instantly confused as I read on.
2
1
1
0
Sep 20 '18
[deleted]
11
Sep 20 '18
the sad thing is that this will definitely work. give it enough time and we got Vue as the new Angular.
62
u/StarshipTzadkiel Sep 20 '18
That title is pretty offensive to the Vue core team if you ask me
Evan You is a super genius no doubt but many many people have contributed to Vue and that deserves recognition