News for hackers. Stuff that matters.
Re:Trails – Modern MVC Web Framework for Node.js by romanovcode on Saturday January 02, 2016 @09:08AM (#10826221)
>Trails is built and maintained by former members of the Sails.js core team

Just no. I was working with Sails.js for about a year now on production systems - it's horrible. Without a doubt I can say that it's the worst framework I've ever worked with. Especially their so called "orm" - we actually had to switch it off and work with pure mysql queries instead because it can't even do migrations (it deletes everything from db, stores in ram and re-insert).

Seriously, don't believe the hype, I bet this will be just as bad as Sails.

Re:Trails – Modern MVC Web Framework for Node.js by roblabla on Saturday January 02, 2016 @09:18AM (#10826247)
While I haven't played with Sails.JS, I've heard many people complain about how bad it was. However, just because the people building this new framework used to work on the Sails.JS Framework, you're going to dismiss it as being "automatically bad" ? I didn't look at Trails.JS so I don't know how it looks, but this kind of attitude seems extremely toxic and detrimental to the Open Source space. It makes me sad this is the top comment.

If anything, this gives them the chance to start anew, equipped with the knowledge of past mistakes, to avoid making them again.

Re:Trails – Modern MVC Web Framework for Node.js by mikermcneil on Monday January 04, 2016 @02:35PM (#10837908)
Travis did not play a meaningful role in the development of Sails. He was a contributor for less than a year and made a total of 37 commits: https://github.com/balderdashy/sails/commits?author=tjwebb

That said, I wish Trails the best-- I just think it's important to point out information that is being misrepresented.

If you have any technical issues with Sails, I would appreciate hearing about those on GitHub.

Re:Trails – Modern MVC Web Framework for Node.js by dhruvbhatia on Saturday January 02, 2016 @09:35AM (#10826281)
In his defence, he is taking a stance equipped with the knowledge of his own personal past mistakes, to avoid making them again.
Re:Trails – Modern MVC Web Framework for Node.js by paulddraper on Saturday January 02, 2016 @10:46AM (#10826487)
And his past mistake was using Sails.

If the implementation of the Sails as a Rails-like JS framework was as bad as he says, be shouldn't use it for his next project.

A bunch of members of the community apparently had similar thoughts. As long as the idea of Rails-like JS framework isn't fundamentally flawed, they seem to be doing the logical next step: make something better.

Re:Trails – Modern MVC Web Framework for Node.js by bnb on Saturday January 02, 2016 @11:44AM (#10826694)
100% agree with you. I don't agree with the comment you replied to, but it's _not_ a good sign that they stole another project's logo. https://tent.io/
Re:Trails – Modern MVC Web Framework for Node.js by yejodido on Saturday January 02, 2016 @02:13PM (#10827422)
Hi bnb, it hurts to see the word "stole" and judgement passed so hastily, so I thought I'd take a quick second to reply.

It was only just this morning with the attention from Hacker News that we learned about the similarities between the two logos/brandmarks, and we're actively coming up with something new and different.

We'll keep the community posted on the status of the new designs here: https://github.com/trailsjs/trails/issues/47

Being open, compassionate, and transparent is a huge part of what we're hoping to do with Trails, so chatting with us directly is always an option.

We hope to see you on gitter!

All best :)

Re:Trails – Modern MVC Web Framework for Node.js by traviswebb on Sunday January 03, 2016 @12:01AM (#10829575)
We've been in contact with the owner of tent, and are responding appropriately. Our logo unfortunately does bear a strong resemblance to theirs, which our designers are working to resolve.

I'd hitherto not heard of tent nor seen their logo, and neither had anyone else on our team. Saying that we "stole" it is fine for sloppy internet-talk, but it imbues your statement with a level of accusatory malice that we should try to avoid.

Re:Trails – Modern MVC Web Framework for Node.js by im_down_w_otp on Saturday January 02, 2016 @12:27PM (#10826861)
Can I dismiss it because it's like the 50th "modern MVC framework" to be made for Node.js? Are all the other ones so hopelessly broken that it required making an entirely new one?
Re:Trails – Modern MVC Web Framework for Node.js by smokeyj on Saturday January 02, 2016 @12:56PM (#10826982)
Dismiss it, but you don't have to tell the entire world about your uninformed opinion. It's not as valuable as you suspect.
Re:Trails – Modern MVC Web Framework for Node.js by im_down_w_otp on Saturday January 02, 2016 @01:32PM (#10827195)
Opinion? Both sentences were questions. The first included a hyperbolic approximation (i.e. "50th") and the second included a legitimate direct question that infers an indirect question about the weird pace of churn and factionalization that seems to infect the Node.js community more than any other community.

If every other month a new thing was made, marketed, HN'd, and Twitter-culted that did basically the same thing as Nginx but had a slightly different config file format or shared-object handling mechanism or some other random detail I'd think that was also weird and somewhat superfluous.

It makes me wonder if building MVC frameworks has become so technically rote (time investment notwithstanding) that the simplicity of it has pushed them into Parkinson's Law of Triviality territory, such that everybody has their two-cents on how this weird metaprogramming trick is better than this other weird metaprogramming trick so now I can write my routes and handlers in this shape of quasi-DSL instead of that other quasi-DSL, and so then goes and makes a whole "new"... sorry... "modern" MVC framework.

How far away are we from realistically being able to replace the idiom, "bike-shedding" with, "MVC-frameworking"?

Re:Trails – Modern MVC Web Framework for Node.js by smokeyj on Sunday January 03, 2016 @02:46AM (#10829875)
I'm just saying if you have a criticism share it. If your problem is being an nth iteration then that's not really comment worthy. Sure the node ecosystem has an abundance of modules and frameworks. I don't consider it harmful and it seems the developer mindshare sorts through these "problems" with ease.
Re:Trails – Modern MVC Web Framework for Node.js by kevinob11 on Saturday January 02, 2016 @09:39AM (#10826288)
I think it is only part of the core team, frustrated by the lack of progress on sails, so maybe they want some of the same changes you do. Also, while I had my own frustrations with waterline, the auto migrations were meant to speed up development, they were never meant to be used in production and can be turned off with a single line if code.
Re:Trails – Modern MVC Web Framework for Node.js by romanovcode on Saturday January 02, 2016 @09:45AM (#10826305)
Once you start shipping to production you care far less about "speed of development" and "prototyping things" and more about "does this actually work".

Don't get me wrong, Sails might be very good for prototyping something, but I could recommend it only if your only goal was to prototype something.

Re:Trails – Modern MVC Web Framework for Node.js by kevinob11 on Saturday January 02, 2016 @09:56AM (#10826343)
Fair enough, though I do have some experience with shipping to production.

I do have quite a few other issues with sails and waterline (ORM). Waterline provided lifecycle hooks, but limited their power and had poor documentation on extending them. Same for sails core itself, it had hooks for writing modules and extensions, but no one outside of the core team knew well how to use them. As for migrations I ended up doing all of my own migrations with knex, I'd love to see knex or sequelize be the core of a new ORM, rather than a quickly cobbled together sql module.

Trails has promised something better on a lot of these fronts through modularity, I hope they deliver.

Re:Trails – Modern MVC Web Framework for Node.js by clay_to_n on Saturday January 02, 2016 @04:17PM (#10827990)
Lack of documentation has probably been my biggest gripe with Sails. The documentation on their website was broken for almost a year ("but it's on github! Go find it there"). They had a Getting Started "Sailscasts" series that was helpful, and then they released the beginning of the V2 videos (using a SPA w/ Angular), but only got three videos in.
Re:Trails – Modern MVC Web Framework for Node.js by sgress454 on Monday January 04, 2016 @11:20AM (#10836401)
What's broken on the website? All the docs on http://sailsjs.org/ work for me.
Re:Trails – Modern MVC Web Framework for Node.js by clay_to_n on Friday January 08, 2016 @01:24AM (#10863289)
It works now. It didn't for most of 2015. The index page would send you to broken pages (but if you went to GitHub you could find the info).
Re:Trails – Modern MVC Web Framework for Node.js by mikermcneil on Friday January 08, 2016 @01:45PM (#10867156)
Thanks for following up, Clay. Sorry sailsjs.org caused trouble for you last year. You're right-- fixing SEO permalinks in our docs (i.e. converting sailsjs.org from an SPA to a site w/ server-rendered views) was a pretty slow and involved process. This was due in part to the fact that we switched to deeply-nested navigation in the docs, but also because of the sheer number of old links we had to maintain from two different past versions of the website. We weren't able to preserve them all, but we did our best to maintain the functionality of as many legacy hashbang (`#!`) and Angular-style (`/#/`) links as we could. I'm glad to hear the doc links are working for you now.

We also owe Kevin Burke from Shyp a big thank you for drawing our attention to the SEO problem in the first place. Regardless of where Shyp goes with their tech stack long term, it has been immensely helpful to learn from Kevin's experiences using the framework there. Those lessons have already impacted the direction of Sails, and will continue to influence its future development.

On the subject of documentation, I wanted to share two other resources from 2015, in case either of them might be helpful for you: The first is a free Sails course on Platzi (https://courses.platzi.com/courses/develop-apps-sails-js/). It covers best practices for authentication, blueprints vs. custom actions, and multi-instance deployment to Heroku, and contains some great Q&A. The second is "Sails.js in Action" (https://www.manning.com/books/sails-js-in-action), a Manning book about Sails written by Irl Nathan (creator of Sailscasts) and myself. It is set to be published this Spring.

Finally re: the next generation of Sailscasts-- I don't want to speak for Irl there, but I should point out that there are 6 episodes of the second series of tutorials available (https://github.com/irlnathan/activityoverlord20). You can also see the final example app that Irl and I worked on together which includes a reference implementation of present/idle/away/offline status, user login, and chat here: https://github.com/balderdashy/activity-overlord-2-preview

Re:Trails – Modern MVC Web Framework for Node.js by mikermcneil on Monday January 04, 2016 @02:42PM (#10837953)
Sorry to hear you had a bad experience. The auto-migration support in Sails is a development-only feature, but for production, there is a great project from Danni Friedland called sails-migrations: https://github.com/BlueHotDog/sails-migrations

You might also want to check out sails-db-migrate: https://github.com/building5/sails-db-migrate

At Treeline, we're using sails-migrations in production.

Re:Trails – Modern MVC Web Framework for Node.js by paulddraper on Saturday January 02, 2016 @10:48AM (#10826496)
It sounds like you are in violent agreement with the Trails team, as they share your opinion. Hence, Trails.
Re:Trails – Modern MVC Web Framework for Node.js by dimgl on Saturday January 02, 2016 @11:44AM (#10826695)
I try to stay away from big frameworks that try to do this very thing because development and production experiences are two completely different things. I've been through nightmares scenarios where things don't work correctly or new technical debt is introduced after deployment and smaller frameworks usually alleviate that pain point for me.
Re:Trails – Modern MVC Web Framework for Node.js by _____s on Saturday January 02, 2016 @10:38AM (#10826460)
I'd give it a chance. They may have made poor decisions earlier, but there's a good chance they know that, too, and they would have learned from it.

A newer framework from the same people has at least one thing going for them: they aren't likely to make the same mistakes.