Better HN
topnewbestaskshowjobs
Log inSign up

marknutter

6,558 karma · joined Oct 7, 2009 (17y ago) · 2,641 submissions

Submissions

comment 11y ago · link · parent

Let companies avoid older programmers at their peril. The companies that do hire them will do much better by avoiding reinventing wheels, repeating the mistakes of the past, and losing valuable tribal knowledge due to high turnover rates. I firmly believe that nothing "needs to be done" about lack of diversity in work places because the penalty for avoiding candidates based on gender or ethnicity will levied slowly over time.

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

I hope you haven't made your decision yet because the comments in this thread are extremely misleading.

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

What exactly are you basing this on? Because if it's based on what you read on Hacker News, please realize that you are seeing a very distorted view of the world through the lens of HN. Angular is nowhere near dead, and is still one of the most widely used frameworks in the web development world. Unless, of course, you can provide some actual evidence that supports your claim.

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

The complexity comes from stitching everything together. You choose your router, your flux library, your build tools, whether or not to use JSX, whether or not to write your CSS with Javascript, which fancy new React specific testing and mocking library you need to use, how to organize your project, what best practices you should follow, what gotchas you will encounter because of Reacts relative young age as an OOP library, etc.

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

> What's shared in there is the idea that unidirectional data flow is a whole lot easier to reason about

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

Motorcycle fairings

comment 11y ago · link · parent

If we got rid of corporate taxes altogether it would be different, and it would likely "provide a level playing field for all companies". And I'm not sure why companies that are not multi-national can't afford to do this too.. if their corporate taxes are absurdly high like they are here in the U.S., they are free to offshore their operations just like U.S. companies do, or lobby their government to reduce or eliminate corporate taxes altogether. In that respect, the playing field is level because the global economy is now the playing field.

comment 11y ago · link · parent

> First of all, that's Facebook employees paying tax. Not Facebook. That's their money that they are taxed on and they pay it.

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

The easy solution to all this is to start encouraging companies to promote work-from-home days. If you do the bulk of your work on a computer, there's no reason you absolutely need to go into the office every single weekday to get your job done. If every company that allowed their employees who could work from home to do so at least once per week and worked together to evenly distribute those days throughout the work week, we'd see a massive drop in traffic. This could easily be done by providing tax incentives for doing so, and the money saved on road maintenance alone would likely pay for it. I can't get over how insane it is that we all insist that we need to work face to face when our faces are buried in a computer screen for the vast majority of our work days. It's absurd.

comment 11y ago · link · parent

If you live in SF or NY, you're exempt from the conversation.

comment 11y ago · link · parent

There's a different between working hard and working smart.

comment 11y ago · link · parent

I do not want to be managed.

comment 11y ago · link · parent

"which, as we all know, is a moot point since we discovered <futuristic super material> in 2043."

comment 11y ago · link · parent

That doesn't solve any of the problems they listed in the article.

comment 11y ago · link · parent

That's a feature, not a bug.

comment 11y ago · link · parent

> I haven't tried Angular yet but have built applications in React. In my opinion, frameworks like Angular suffer from a fundamental problem, that, it is almost impossible to gauge the problems of a new design unless you have a built a medium - large scale application with it which is very hard when you are just experimenting.

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

The other replies have summed up what I meant well, but I will add that a crucial component of a cynical Apple announcement day post is to preface it with a list of the number of Apple products one has bought in order to establish oneself as an unbiased authority on Apple products.

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

$99 is right on par with similar styluses.

comment 11y ago · link · parent

There's one in every Apple announcement thread.

comment 11y ago · link · parent

This is exactly right, and I'm sure it was a shot at the original Microsoft Tablet PC which required a stylus for input. The Pencil they announced today is very clearly for drawing applications and not intended to be the primary means of interacting with the iPad.

comment 11y ago · link · parent

It's easy to say unpopular things with an anonymous account, but it kind of takes the weight out of them IMO. Own your opinions, I say.

comment 11y ago · link · parent

So if my itch is to create a shareable component that interops with any framework that wasn't really possible until web components came around. And of course I'm all for many different takes on the same problem. The issue I have is that there's no way for any one take to rise to the top for a given component because it usually only works with one framework out of the box. After seeing table components be created for jquery, then ember, then angular, then react, with no significant improvement on each other other than working with their particular framework, I definitely long for a universal way of authoring components so we can cut down on the churn and focus on actually building our apps.

comment 11y ago · link · parent

What do you mean by "none of the code overhead of having to manually patch the DOM"? None of the other frameworks make you manually patch the DOM, they all do it automatically in their own way.

comment 11y ago · link · parent

Actually, simply using "track by" in Angular puts it on par with React's performance regardless of whether or not you follow React's patterns. You do understand that Angular 1.x's $scope is essentially a virtual DOM inasmuch as it's a javascript representation of the DOM which provides a more efficient means of diffing (dirty checking in Angular's case). "Virtual DOM" is just a fancy buzzword for React's solution to figuring out what to change. React's requirement that the entire DOM tree be re-rendered any time any state changes meant that dirty checking would be prohibitively expensive, so they had to come up with a clever workaround which, to their credit, ended up being just as performant as Angular's dirty checking.

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

Large React apps are actually no faster than large apps written in Ember or Angular, and I've personally been surprised by how slow React got on a large app. At some point, in every framework, you will run into bottlenecks and none of them provide silver bullets.

comment 11y ago · link · parent

The issue is that instead of the web community as a whole working to create one awesome table widget we are fragmented across X frameworks creating X table widgets that all do the exact same thing.

comment 11y ago · link · parent

It's a mess, I agree, but it's something that Web Components are supposed to solve. You can really think of React, Angular, Ember, jQuery Widgets, etc. as poor polly-fills for Web Components; poor because they don't interop with each other easily (which is the pain you were experiencing). With Web Components, people can author components and anyone else can use them just like they would any built-in tag like <input> and <video>. This will give you exactly what you're wanting, which is a Bootstrap or Material Design implementation that you include in your project and instantly expand your library of DOM elements.

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

Maybe instead of trashing other people's work you could just link to yours instead.

comment 11y ago · link · parent

You're not really adding anything to the conversation. If you even did a cursory search as to the motivations behind why Angular 2.0 was a rewrite you'd learn that it has everything to do with compatibility with web components and ES6 and nothing to do with "money" as you say (I'll save you the two seconds of effort: http://eisenbergeffect.bluespire.com/all-about-angular-2-0/). In fact, it was a huge blow to Angular when they announced they would be introducing such sweeping changes to the framework. Remember that the web is a constantly moving target and assumptions you make today may no longer be relevant two years from now.

comment 11y ago · link · parent

It's a joke
1
242526
89