News for hackers. Stuff that matters.
Re:How We Make Trello by thedufer on Thursday March 13, 2014 @03:31PM (#7394291)
Not completely orthogonal. The way Trello is set up, client and server releases are completely unrelated and don't have to know about each other. The web app is almost as separate from the server as the iOS/Android apps, which isn't really possible if you're rendering html in the server.

That said, I agree that making something into a single page app just to get this separation isn't going to be useful.

Re:How We Make Trello by DEADB17 on Thursday March 13, 2014 @04:27PM (#7394732)
> which isn't really possible if you're rendering html in the server.

You can have a front-end web server that is also a client of the API server and keep the separation as if it were any other API client. This is the approach I'm taking in my current project since I have to support some obsolete browsers, but more generally it lends itself to a cleaner decoupled architecture

Re:How We Make Trello by thedufer on Thursday March 13, 2014 @05:45PM (#7395324)
That type of double-server architecture isn't one I'd considered. Very interesting.
Re:How We Make Trello by DEADB17 on Friday March 14, 2014 @11:07AM (#7399221)
It is, let me know if you want more info
Re:How We Make Trello by noblethrasher on Thursday March 13, 2014 @07:02PM (#7395761)
>which isn't really possible if you're rendering html in the server.

It's not only possible, it's pretty trivial in most cases. Just endow each user facing object with a .ToHTML() and .ToJSON().

This is actually one of the core benefits of REST, you send me a request for a resource along with some desired media type(s), and I send you back a representation in the media type of your choice (or as close as possible).

Re:How We Make Trello by Cthulhu_ on Friday March 14, 2014 @05:35AM (#7397692)
I dunno, if you've got a good API, server-side HTML rendering is just another client, just like client-side rendering would be.

The trap a lot of developers fall into is going around the existing API for server-side applications though, thinking they'll get more performance by (for example) going directly to the persistence layer. That's how most server-side apps are written, actually; api and front-end tightly coupled.

Re:How We Make Trello by basicallydan on Thursday March 13, 2014 @06:01PM (#7395428)
> That said, I agree that making something into a single page app just to get this separation isn't going to be useful.

I agree, but there are other benefits too :)

Re:How We Make Trello by copergi on Thursday March 13, 2014 @05:06PM (#7395041)
>which isn't really possible if you're rendering html in the server.

Yes it is, that's my point. Our designers push new templates and our developers push new binaries completely independently. We literally have an API doc that the designers put "I want this" into, and the developers implement it and update the doc to reflect it being finished. People just use template systems that make this unnatural. See heist for an example of a system that makes it natural and straight forward.

Re:How We Make Trello by porker on Friday March 14, 2014 @04:26AM (#7397495)
Thanks for the name of 'heist' - never heard of it before and it looks interesting.