News for hackers. Stuff that matters.
Re:Show HN: An Isomorphic JavaScript Framework Faster Than R... by vdaniuk on Tuesday May 26, 2015 @09:23AM (#9604611)
There is no "our" and there is no "we". Developers, web developers, JS developers or even HN users who are JS developers are not:

* a tribe

* a close-knit group

* an industry union

You do not assign blame to hundreds of thousands of professionals, who live in different parts of the world, speak different languages and work on different projects.

The web evolves without intelligent design or regard of your personal interests. Deal with it or withdraw in denial to the perfect land of perfect web technologies.

Re:Show HN: An Isomorphic JavaScript Framework Faster Than R... by guelo on Tuesday May 26, 2015 @11:41AM (#9605512)
> not:

> * a tribe

> * a close-knit group

> * an industry union

unfourtunately

Re:Show HN: An Isomorphic JavaScript Framework Faster Than R... by vdaniuk on Tuesday May 26, 2015 @11:48AM (#9605569)
I would love to see some sustainable structured cooperation with at least thousands of developers participating.

https://snowdrift.coop <-- this is a great example, btw

Re:Show HN: An Isomorphic JavaScript Framework Faster Than R... by kyllo on Tuesday May 26, 2015 @09:34AM (#9604688)
Oh ok, well then I guess it's just Google's fault.
Re:Show HN: An Isomorphic JavaScript Framework Faster Than R... by vdaniuk on Tuesday May 26, 2015 @09:38AM (#9604720)
It's Google fault as in a mistake, a defect, an offense that they've created a popular js framework? Is that a correct interpretation of your words?
Re:Show HN: An Isomorphic JavaScript Framework Faster Than R... by kyllo on Tuesday May 26, 2015 @09:59AM (#9604861)
Only if you feel that Angular itself was a mistake.

I do, primarily because it's yet another attempt in a long history of misguided attempts to bestow Turing completeness on XML.

Re:Show HN: An Isomorphic JavaScript Framework Faster Than R... by alexc05 on Tuesday May 26, 2015 @10:30AM (#9605088)
Not at all! Honestly there are some WONDERFUL things about angular. There are some bad ones too.

- Polling for changes vs. event driven - two way data bindings causing infinite redraw loops. - "feels like O(n^2)" performance on ng-repeats / large pages

but things like the templating, directives, data-binding... they are all really good things.

And dependency injection! They have really moved the needle forward on client side testing.

No angular in itself is not a mistake at all. There are mistakes without question. I suspect the angular 2.0 release will address many of the major criticisms. Though, I haven't read much about it yet.

Re:Show HN: An Isomorphic JavaScript Framework Faster Than R... by kyllo on Tuesday May 26, 2015 @11:06AM (#9605307)
ng-if, ng-switch, ng-repeat? There's already a language in the browser that does these things, it's called JavaScript.

Why do you even need dependency injection and singleton services and factories in a dynamic language with closures and first-class functions? You don't. Client-side testing works fine without DI. Angular is just a way to do Java in JavaScript. It's a pile of unnecessary complexity designed to sell to enterprises that love over-designed Java projects and want to make client-side development feel more similar to what they know. In that regard I suppose Angular is a little better than Google Web Toolkit, but that isn't saying much.

Re:Show HN: An Isomorphic JavaScript Framework Faster Than R... by andybak on Tuesday May 26, 2015 @12:24PM (#9605777)
> ng-if, ng-switch, ng-repeat? There's already a language in the browser that does these things, it's called JavaScript.

It's nice to have a largely declarative way to specify markup but still allow simple loops and conditionals.

Hasn't every template language in the world has come to a similar conclusion?

Re:Show HN: An Isomorphic JavaScript Framework Faster Than R... by jarrettc on Tuesday May 26, 2015 @03:17PM (#9607002)
> Hasn't every template language in the world has come to a similar conclusion?

No, not even every mainstream template language. For example, I still use ERB and EJS extensively, and so do many other engineers. ERB and EJS use the control flow constructs of the underlying languages (Ruby and JS, respectively).

There is of course debate about whether templates should expose the full power of a programming language. I have tried templating languages that do and ones that don't. For now, I'm sticking with templates that let me mix in arbitrary code as I see fit. Could I abuse that power and make a mess? Absolutely. But I try not to, and my code stays pretty maintainable.

Re:Show HN: An Isomorphic JavaScript Framework Faster Than R... by sillygoose on Tuesday May 26, 2015 @11:17AM (#9605371)
The overarching problem here is herd mentality. Using Angular is a bad idea, but lots of companies are using it anyway because The Herd stampeded towards the new shiny thing, mostly because of how cool two-way binding looked in Angular's demo toy app.

Now all those companies are bogged down by Angular, but feel like ejecting it would be too costly. Elsewhere, lots of new developers are introduced to Angular and invest time and effort into learning it because they don't know any better.

Herd mentality is a big problem. It's basically the polar opposite of thinking for yourself, and as such, extremely detrimental in other aspects too.

Re:Show HN: An Isomorphic JavaScript Framework Faster Than R... by arcatek on Tuesday May 26, 2015 @12:58PM (#9606022)
> Using Angular is a bad idea, but lots of companies are using it anyway because The Herd stampeded towards the new shiny thing

The most ironic thing in all this is that your comment is still full of Herd mentality, except that it goes the other way.

Angular is a framework, period. Using it is neither a good or a bad idea, it all depends on the people who actually use it.

Re:Show HN: An Isomorphic JavaScript Framework Faster Than R... by tracker1 on Tuesday May 26, 2015 @10:53PM (#9609062)
The couple of times I've worked with angular, some things went incredibly smoothly, and when you hit those edges, it really reminded me of ASP.Net 1.0, it was nice for about 80% of your workload, but the other 20% took 10x the effort, and was a much bigger headache to work around.

Honestly, if/when browsers have better support, I think something closer to Polymer may be the best of all worlds with web development... for now, I find that React code tends to be the most sensible (with a decent framework around it)... not to mention shared client-server code with node/io.js

Re:Show HN: An Isomorphic JavaScript Framework Faster Than R... by debaserab2 on Tuesday May 26, 2015 @11:23AM (#9605403)
I can make functional prototypes very, very quickly with angular. There are things it does not do well, in my opinion, but it has given me a tool that previously didn't exist in the JS world.

I don't care about the turing completeness of angular.

Re:Show HN: An Isomorphic JavaScript Framework Faster Than R... by vdaniuk on Tuesday May 26, 2015 @10:17AM (#9604987)
I don't.

If Angular has produced a local optima of efficiency in the range of "misguided attempts" then it's effect on the development ecosystem was a net positive.

That said, I am extremely concerned that most popular frameworks/libraries are products of megacorps.

Re:Show HN: An Isomorphic JavaScript Framework Faster Than R... by Bahamut on Tuesday May 26, 2015 @10:45AM (#9605181)
That is in part due to the complexity of problems in frontend and that most companies don't need to solve those problems (or don't have the resources to solve them).
Re:Show HN: An Isomorphic JavaScript Framework Faster Than R... by vdaniuk on Tuesday May 26, 2015 @10:55AM (#9605240)
Ember would be a notable counter-example.

I think a more important reason would be that Facebook/Microsoft/Google media influence and corporate support creates massive brand awareness and generates instant interest. Educational projects anticipate the interest from developers and create courses, tutorials and reviews. The cycle continues and bam! we have an information cascade[0].

Rich get richer and poorer get poorer (in developer mindshare). Megacorps reap the benefits while indie developers are not able to achieve critical mass.

I shudder when I think about the possible Typescript/Microsoft, Angular/Google, React/Facebook domination in web technologies.

[0] http://en.wikipedia.org/wiki/Information_cascade

Re:Show HN: An Isomorphic JavaScript Framework Faster Than R... by sitkack on Tuesday May 26, 2015 @04:56PM (#9607611)
I think that has more to do with developer evangelists/pr people and budgets. Most good ideas languish in obscurity, even when given the light of day.