Hacker News new | ask | show | jobs
by devmach 4083 days ago
I've checked their examples on http://t3js.org/examples/ and I appreciate the effort they put in but in general there is one thing I never understood with these examples :

Why most js frameworks relay on very simple examples while they promising the wonderland? I need an advanced sample than a classic todo to evaluate a framework. Something like does multiple async ajax calls, survives page reloads while juggling data / models, and gracefully handles the errors and/or initial states. An example close to a real world project would be much appreciated.

PS: If that matters, in my day time job I'm using Angular...

edit: fixed typo.

7 comments

While it would be nice to have a more complex example than a todo app, studies show that a todo list is the most complex JavaScript app you can build before a newer, better framework is invented: http://www.allenpike.com/2015/javascript-framework-fatigue/
I wrote a blog post[0] relating to this as well. If you're going to flaunt your framework as the next big thing, you should give real world examples.

My unhappiness with angular is part of why I wrote this up as well. In their own docs they do things that are considered bad practices, they don't have readily available examples for how to test certain things, and they don't have any examples of how a "real" app should look.

I'd love if people that put out these frameworks released a non-trivial app WITH tests, using the framework.

I think Rails has done an amazing job with these things. Their guides are outstanding.

[0]: https://blog.cesarandreu.com/posts/testing_not_as_an_afterth...

Fully agree with devmach.

Angular has a very similar problem and they know it. I think that one of the things we can expect from Angular 2.0 is a much larger example app.

I'm ready to see the end of TodoMVC and the beginning of CMSMVC or SocialNetworkMVC or whatever.

That said, I like the idea behind T3 and am very curious to see how it will mature and what adoption will be like.

I love writing Regex for my router: https://github.com/box/t3js/blob/gh-pages/examples/todo/live...

> Regexs and parsing borrowed from Backbone's router since they did it right

Hahahaha.

PS: If it matters I'm using Meteor, but I've used angular/ember/backbone/knockout/etc/etc

YES! Agreed 100%. Biggest irritation in my life with regard to doing anything with Javascript is when some library talks about some miracle function, then the example is like:

miracleFunction() { alert("It works!") }

ARGH. Give me an example of what the body of miracle function should look like!

Totally agree. The problem with a Todo app as the prototypical example is that a 'todo' item doesn't really have any nesting whatsoever. Something like a list of Album/Tracks is much more illuminating about a web framework for anything that has a web form or model.
Absolutely. As a fellow Angular (2 years) developer, I've become familiar with the actual pain-points of real SPA apps. When I started I didn't have a clue, but jumped straight in because the Angular examples seemed awesome. It's time to switch, but I'll be way more careful this time.