Live data from Hacker News

Ask HN: Which JavaScript frameworks do you use?

news.ycombinator.com

41–50 of 71 posts

Re: Ask HN: Which JavaScript frameworks do you use?

#41
AmpersandJS (http://ampersandjs.com), which is more a set of rules for modular libraries than a framework (but it's still a framework).

1. One or two weeks to learn and let it start sinking in.

2. Speed: probably 3. I can make the code do what it needs to without much effort.

3. Quite maintainable. In fact, I've contributed a few bug fixes and feature improvements to the source repos. In my own code, making changes also happens quickly.

4. I chose it after reading Human Javascript (http://humanjavascript.com) (which AmpersandJS is based on) and poking around with the boilerplate generator app. It all instantly clicked.

Re: Ask HN: Which JavaScript frameworks do you use?

#42
I'm using intercooler.js:

http://intercoolerjs.org/

It's kind of an crypto-javascript front end framework in that it makes AJAX a declarative, HTML-based tool, so the isomorphism is with respect to HTML and more traditional web development, rather than with respect to server side logic. There are events and a JS API to hook into to, though.

The docs lay out the isomorphism:

---

  Get Intercooler
This tells a browser:

"When a user clicks on this link, issue an HTTP GET request to 'http://intercoolerjs.org/' and load the response content into this browser window".

Intercooler builds on this simple concept:

  Click Me!
This tells a browser:

"When a user clicks on this link, issue an HTTP POST request to '/button_click' and load the response content into this element".

Re: Ask HN: Which JavaScript frameworks do you use?

#43

ReactJS + webpack, though I've used Angular and browserify in the past. 1. It's just a component framework. It doesn't do the kitchen sink, like Angular does. A couple hours reading the spec and implementing a small test case gets a seasoned developer up to speed on it. Flux takes a little bit longer to get used to, though, and I'm still not quite sure I'm 'doing it right.' 2. Coupled with webpack and an automated te…

The virtual DOM is sick on ReactJS. However, I ran into quite a bit of trouble when I used Semantic UI + Reactjs for implementing a modal window. Because React works with the virtual DOM, you're not supposed to modify the DOM directly or else React loses track of what's going on. So when I implemented my Semantic UI modal, I would get DOM errors and my application would freeze. What would happen is that Semantic UI's modal changes the DOM directly when you open and close the modal (as in, without going through React's virtual DOM), which makes the whole application unusable.

I guess all I'm trying to say is that yes, React's virtual DOM has its pros, but it will occasionally also have cons (like when you use a third party .js that modifies the DOM directly).

I'm new to React though (two weeks). So there may be well known work arounds for this 'problem'. Since I do not know of any, if anyone does, please share ! :)

Re: Ask HN: Which JavaScript frameworks do you use?

#44

I use Marionette: http://marionettejs.com/ 1. You can grasp the basics in just a few hours, but obviously this is entirely subjective. A week-long training course will really get you going, though. The nice thing in terms of learning it is that the maintainers consider Marionette the "non-framework framework," in that it's just JavaScript, with no new paradigms to learn. 2. Hmmm, 3 for me, but that's also subjective.…

I'm surprised you didn't mention backbone once... Are you using marionette without backbone?

BTW, skeletor here (I think we may have worked together before, very very recently)

Re: Ask HN: Which JavaScript frameworks do you use?

#45

We use Knockout in our workplace. I particularly like it because it is lightweight (you can mix it with plain JS or jQuery) and because it doesn't involve writing HTML as a string in JS. We write mostly internal apps and so performance/scaling are not usually on the radar, but ease of maintainability across a wide spectrum of developer skill levels is. As for comparing to other frameworks, my biggest concern with som…

Have you started using the new components available in knockout?

http://knockoutjs.com/documentation/component-overview.html

As a knockout enthusiast I was excited to see that get developed.

Re: Ask HN: Which JavaScript frameworks do you use?

#46
I use MeteorJS. It really does feel like the future of web development, so much so that going back to other frameworks feels like drudgery.

1. Time to learn: I'd say it took me about 120 hours to really feel comfortable and get down the flow of how to build things with it. The hardest part to really grok is the whole Mongo.Collection publication/subscription model. But once you get it, it's smooth sailing.

2. Development speed: 3. You build stuff out with one language, real-time is baked in, packages out there to do almost everything. It's pretty nifty.

3. Maintainability: Too early to tell, but you can build things with very few LoC. Less code means less chances for bugs. Also, the community is still shaping out what the best way to structure files/folders are. Since Meteor is lax in that area, everybody has their own flavor of best practices.

4. Why did I chose it? I can use React pretty seamlessly in the application. It comes with latency compensation built in. Real time built in. There's a huge thriving community of people using it and building cool stuff with it. It's popular.

---

Overall I really enjoy my time building things with Meteor. I can focus much more on my features and forget about plumbing code. Here's some more developer feedback on Meteor:

http://stackshare.io/meteor

Re: Ask HN: Which JavaScript frameworks do you use?

#47
Aurelia.

http://aurelia.io

https://github.com/aurelia

It has the most streamlined, elegant conventions of any framework I've looked at, it focuses on writing in plain, modern JavaScript (ES2015/2016), it's highly modular and plugable, and it tries as much as possible to always comply with modern standards.

Hopefully performance is on par with React when it hits official release so that at least a few more people take a serious look at it. It's unfortunate that so much hype surrounds Angular and React simply due to Google and Facebook backing them.

Don't get me wrong. I also like React. However, the hype is a little unwarranted. People treat it as if it's the end-all, be-all way to write JS from now until the end of time.

Re: Ask HN: Which JavaScript frameworks do you use?

#48
I have been using Angular for about 2 years. And just started to have a look at other frameworks yesterday and deciding between going for Angular 2 or something else.

I found Aurelia and I think it's the next one I'll learn and use in my projects: http://aurelia.io/

1. You can do the tutorial in an hour or so, and get the general idea in I'd say about 4 hours.

2. From what I've seen it'd be a 3.

3. Looks like a 3 too!

4. I've watched a couple of videos from his creator Rob Eisenberg, and the guys knows what he is talking about ;) Plus, it support the Flux architecture with a plug-in:

http://blog.durandal.io/2015/07/23/creating-reactive-loosely...

Also there's been some discussions comparing Aurelia to Angular2 and well, seems like Aurelia has the best architectural decissions in, for example:

http://blog.durandal.io/2015/03/17/aurelia-angular-2-0-code-...

A very important thing for me is that it sports a set of tools for quickly setting up a development environment (yeoman generator, jspm, gulp, browsersync).

It also supports modern Javascript (ES2015/ES2016) from the start (with Babel).

Re: Ask HN: Which JavaScript frameworks do you use?

#49
So naturally, I've used jQuery for a few years now:

1. Time to learn: I think 1-2 hours

2. Overall dev speed: initially 3, but as you dive into more complex pages that need to e.g.: retain state between AJAX calls, it moves towards a 1

3. Maintainability: 1. Keeping track of selectors grows to be very tricky business.

4. Why I chose jQuery: I started with it before the explosion of JS frameworks (and I've always said that jQuery started the golden era of JS that we're in), and I would still choose it today if I need to deal with legacy sites at all.

I have also used ReactJS:

1. Time to learn: I think between 16-40 React hours to really grok components, their lifecycle and how to communicate between them. It's a little reminiscent of components in Mobile development, but really understanding props vs state can take a while

2. Development speed: 2. There's a lot of boilerplate involved (usually render, getInitalState, getDefaultProps)

3. Maintainability: 3. Easily the most maintainable and reusable JS code I've ever written

4. Why did I choose React? I was tired of writing code for the views in the backend (PHP) and then in JS when the data changed. React makes it easy to write once and control the lifecycle of HTML elements

Post reply on HN