Better HN
topnewbestaskshowjobs
Log inSign up

tapajos

2 karma · joined Jun 13, 2012 (14y ago) · 2 submissions

Submissions

comment 14y ago · link · parent

@MatthewPhillips,

In the real world the HTML output is not like JSON or XML as you told.

It is used to show data to a human and most of the time it contains a lot of elements that are not related with the resource data even if it is not representing more than a resource in the same page.

The interaction with a human doesn't happen in the same way as with another system.

comment 14y ago · link · parent

Matt, now I'm working only with API and I couldn't agree more with you.

Last year I worked with a very big and monolithic Rails app and all the time I was wondering about move it for services but it wasn't possible.

I'm almost convinced that we can write service layers with a very consistent API and use Rails to consume it as a client. The HTML interface should be only another client.