6,558 karma · joined Oct 7, 2009 (17y ago) · 2,641 submissions
comment 11y ago · link · parent
Interviews should be conducted online without any indication what race or gender the applicant is. Their work and expertise should speak for itself. I also think trying to find people who "fit the culture" is a terrible way to hire. On the surface it seems to make sense because interpersonal communication is half the battle, but it's usually code for "hire people like us" so even though you may try to hire more diverse people on a visual basis, you'll end up hiring less diverse people on a personality basis which can be just as bad.
comment 11y ago · link · parent
First of all, please remember that nothing is faster than a properly written vanilla js application. Every layer of abstraction you add will necessarily slow your app down. You gain convenience at the cost of performance.
So unless you're dealing with major issues in terms of complexity and understandability, I would ask yourself why you need to have a shiny new framework in the first place?
But let's assume you do. You're in the same boat that a lot of companies and developers are in these days - what the hell framework do I choose when a new one seems to pop up every day? Spoiler: there's no right answer. I assume you want your app to be future proof, which is a fools errand, but supposing you're a fool like the rest of us then my humble advice to you would be to read up on web components and choose the framework that embraces them the best.
That would narrow your choices down to Angular 2, Polymer, Aurelia, and probably some other less mainstream frameworks I haven't heard about. Angular 2 would be a fine choice but it's going to be a pretty radical shift to the way people do things, but it will come with a reward of up to 10-15 times the performance of angular 1.+ and react. Oh, and it's not ready yet.
Aurelia takes a lot of its queues from Angular 2 but it's basically production ready today and far simpler in terms of its complexity and API. It's all-in on web components and has a very enthusiastic and helpful community surrounding it.
Polymer is Google's big bet on the future of web development. It's at 1.1 and production ready, and will be extremely well funded for years to come. It's basically sugar for creating web components. It's similar to React in that they encourage you to build your application out of nested components. It's different from React in that it embraces the web components spec and the DOM. React has explicitly stated multiple times that they have no interest in web components.
Polymer isn't quite as simple to get up and running with as React and Google needs to address that, but it's getting better. But the big thing the polymer team has going for them is that they literally share desks with the Chrome dev team, and as such they have their finger on the pulse of cutting edge web browser technology. The React core team doesn't have that luxury, so they've taken the radical approach of trying to abstract away the DOM completely. It's an intriguing approach but in my humble opinion it's hostile to the open web. Make no mistake that Facebook is doing what's best for Facebook. Google is doing what's best for Google, too, but that happens to align with the goals of the open web.
Anyways, I hope you don't just jump onto the React bandwagon before giving your research a little more time. HN is an echo-chamber and the word "React" is just the latest echo you see bouncing around.
comment 11y ago · link · parent
Angular 2 is looking pretty awesome, for the record, and is something on the order of 10-15 times faster than React or any other modern framework out there. I would check your assumptions and look at things objectively.
comment 11y ago · link · parent
You will always have to deal with complexity, it just depends on what kind of complexity you are willing to stomach. Some people prefer to deal with the complexity of stitching things together, other people prefer to have things stitched together for them and deal with the complexity of many abstractions. Both are fine choices, and we will debate endlessly with each other over which approach is the best approach. (hint: neither are).
comment 11y ago · link · parent
It makes some things a whole lot "easier to reason about" (so sick of that phrase), but other things not so "easy to reason about", like, for instance, error handling. Getting my head wrapped around the fact that asynchronous errors had to live in their own stores and be handled in the same way as all other data passed to the view was certainly not "easy" to reason about and still doesn't sit right with me to this day. You make concessions with every pattern and there is no silver bullet.
comment 11y ago · link · parent
comment 11y ago · link · parent
Why is this distinction even relevant? Facebook then needs to pay its employees more to make up for the difference. No matter who the government taxes, everyone involved will shift their habits to compensate for it.
comment 11y ago · link · parent
comment 11y ago · link · parent
I don't see how this is any different with React. Building a medium - large scale application in React involves just as much complexity as doing it with an Angular app, because you end up adding a Flux implementation (and all of its boilerplate code and ceremony), some sort of routing engine, a testing framework of your own choosing, a myriad of helpers, mixins, and components that a framework like Angular or Ember provide out of the box, and we haven't even started about the increased complexity in terms of tooling; babel, webpack, jsx trasnpiling. Add to that radical new concepts like css defined in your javascript files, the rapid rate at which breaking changes are introduced to React, and the moving target around data handling (Flux is out, Relay is in?) and you find yourself in a very similar situation.
You're comparing a view layer to an entire framework. It would be more apt to compare React to Angular directives but then your overarching point about complexity would be lost. I've worked on large Angular apps and large React apps and I can assure you the complexity was about the same.
comment 11y ago · link · parent
Look back at every single Apple announcement and you'll realize Apple just takes tech that's already out in the marketplace and refines it. They never do what you expected them to do today, and never will.
comment 11y ago · link · parent
comment 11y ago · link · parent
You can use Angular 1.x in exactly the same way you use React by only ever using 1-way binding and constructing your entire application out of directives scoped to elements. The only thing Angular 1.x doesn't let you do is use JSX, but then again, you could just use plain old javascript and imperatively build up your DOM elements (which is what JSX does under the hood anyways) if you really don't want to have .html files.
comment 11y ago · link · parent
The problem with React is that the core team has explicitly stated that they are not worried about compatibility with Web Components, so if you stick with that framework over the long term you may find yourself shut out of that bright future. The Angular team re-wrote their framework mainly because they wanted to be compatible with the upcoming Web Components spec.
So, yes, it's a mess, but it's about to get a lot better. Hop over to https://www.polymer-project.org/1.0/ to get a glimpse of things to come.
comment 11y ago · link · parent