Click here to Skip to main content
15,909,953 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: About REST - Why Oh Why Pin
User 483504724-Apr-17 6:40
User 483504724-Apr-17 6:40 
GeneralRe: About REST - Why Oh Why Pin
Vark11124-Apr-17 6:57
Vark11124-Apr-17 6:57 
GeneralRe: About REST - Why Oh Why Pin
User 483504724-Apr-17 7:12
User 483504724-Apr-17 7:12 
GeneralRe: About REST - Why Oh Why Pin
Vark11124-Apr-17 7:54
Vark11124-Apr-17 7:54 
GeneralRe: About REST - Why Oh Why Pin
User 483504724-Apr-17 8:01
User 483504724-Apr-17 8:01 
GeneralRe: About REST - Why Oh Why Pin
Nathan Minier25-Apr-17 1:39
professionalNathan Minier25-Apr-17 1:39 
GeneralRe: About REST - Why Oh Why Pin
Michael Breeden27-Apr-17 5:08
Michael Breeden27-Apr-17 5:08 
GeneralRe: About REST - Why Oh Why Pin
Nathan Minier28-Apr-17 1:53
professionalNathan Minier28-Apr-17 1:53 
And that's exactly the approach that I've taken for years. But the reason that I advocated for the SPA in my organization was so that we could stop re-inventing the wheel every time we needed to re-use a data element, and my own internal implementation has mirrored what a lot of other commentators in this thread have done: create a response wrapper that contains operational data bundled with the actual application data. Over time I've come to realize that's a mistake, for exactly the reasons that you were asking about in your original post.

I may not have highlighted it well, but the way that I see this is as a tight-coupling pattern. My web modules are building a C^2 structure around my data because it's an easy way to coordinate actions between the client and the server. What I (well, we) have really done there is create a new protocol, that is layered on top of a protocol that can already handle all of those needs. But what about other potential data consumers that we might not even be considering? That is the question that REST answers.

By separating the operational data from the application data using REST we're using an accepted standard, like any good craftsman should, and it can be understood and interpreted instantly outside of the scope of our application. This is a pretty big deal right now, especially when you consider the complexity of the alternatives (there is no such thing as a simple ESB, for instance). even data that you may consider trivial might be especially important to another party, and REST can help facilitate its use.
"There are three kinds of lies: lies, damned lies and statistics."
- Benjamin Disraeli

GeneralRe: About REST - Why Oh Why Pin
Michael Breeden28-Apr-17 5:00
Michael Breeden28-Apr-17 5:00 
GeneralRe: About REST - Why Oh Why Pin
Nathan Minier28-Apr-17 9:26
professionalNathan Minier28-Apr-17 9:26 
Generalfast.ai Pin
Marc Clifton24-Apr-17 3:02
mvaMarc Clifton24-Apr-17 3:02 
GeneralRe: fast.ai Pin
Munchies_Matt24-Apr-17 3:14
Munchies_Matt24-Apr-17 3:14 
GeneralRe: fast.ai Pin
Mark_Wallace24-Apr-17 3:20
Mark_Wallace24-Apr-17 3:20 
GeneralRe: fast.ai Pin
Munchies_Matt24-Apr-17 3:28
Munchies_Matt24-Apr-17 3:28 
GeneralRe: fast.ai Pin
Marc Clifton24-Apr-17 3:25
mvaMarc Clifton24-Apr-17 3:25 
GeneralRe: fast.ai Pin
Munchies_Matt24-Apr-17 3:26
Munchies_Matt24-Apr-17 3:26 
GeneralRe: fast.ai Pin
Mark_Wallace24-Apr-17 7:18
Mark_Wallace24-Apr-17 7:18 
GeneralRe: fast.ai Pin
Marc Clifton24-Apr-17 13:55
mvaMarc Clifton24-Apr-17 13:55 
GeneralRe: fast.ai Pin
Munchies_Matt24-Apr-17 21:45
Munchies_Matt24-Apr-17 21:45 
GeneralJust when you thought Agile couldn't get more 'faddy'.. Pin
User 1013254624-Apr-17 0:11
User 1013254624-Apr-17 0:11 
GeneralRe: Just when you thought Agile couldn't get more 'faddy'.. Pin
Kornfeld Eliyahu Peter24-Apr-17 0:15
professionalKornfeld Eliyahu Peter24-Apr-17 0:15 
GeneralRe: Just when you thought Agile couldn't get more 'faddy'.. Pin
CDP180224-Apr-17 0:25
CDP180224-Apr-17 0:25 
GeneralRe: Just when you thought Agile couldn't get more 'faddy'.. Pin
User 1013254624-Apr-17 3:05
User 1013254624-Apr-17 3:05 
GeneralRe: Just when you thought Agile couldn't get more 'faddy'.. Pin
Mark_Wallace24-Apr-17 0:36
Mark_Wallace24-Apr-17 0:36 
GeneralRe: Just when you thought Agile couldn't get more 'faddy'.. Pin
W Balboos, GHB24-Apr-17 0:56
W Balboos, GHB24-Apr-17 0:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.