Click here to Skip to main content
15,890,527 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: Thought of the day Pin
megaadam24-Apr-17 7:06
professionalmegaadam24-Apr-17 7:06 
GeneralRe: Thought of the day Pin
jeron124-Apr-17 6:41
jeron124-Apr-17 6:41 
GeneralRe: Thought of the day Pin
Daniel Pfeffer24-Apr-17 7:26
professionalDaniel Pfeffer24-Apr-17 7:26 
GeneralRe: Thought of the day Pin
Brisingr Aerowing24-Apr-17 7:33
professionalBrisingr Aerowing24-Apr-17 7:33 
GeneralRe: Thought of the day Pin
kmoorevs24-Apr-17 7:47
kmoorevs24-Apr-17 7:47 
GeneralRe: Thought of the day Pin
  Forogar  24-Apr-17 8:20
professional  Forogar  24-Apr-17 8:20 
GeneralRe: Thought of the day Pin
W Balboos, GHB24-Apr-17 9:06
W Balboos, GHB24-Apr-17 9:06 
GeneralAbout REST - Why Oh Why Pin
Michael Breeden24-Apr-17 3:24
Michael Breeden24-Apr-17 3:24 
Even before everyone got fascinated with REST and APIs, I was fascinated with AJAX and used to make web pages that would carry on JSON conversations with the server. The basic structure of the message was {"error:"", "command1":"", {Data":""}... to be modified and expanded as needed both to and from the server. You would put a Command Pattern on Client or Server to determine what to do or where to route the request/response based on the command. "error" was universal! The best or only way to manage this was with a POST statement and it worked dandy as a Web Method in an ASPX page or even better in an ASHX page.
So my question is - why the elephant do we use Get, Delete, Put, Post? Why separate the verb from the message? Why do we use the shape of the message to determine the action associated with the message? We all know that we have to do a little work around to that pattern anyway every time you need to distinguish between getting one object of a type and getting all objects of that type. It just seems such a silly way to manage a message transaction. Also, it really doesn't manage errors. It does not plan to send an error message or action from the server to client. The client just knows there was an error.
Can anyone explain why it is done this way other than just habit?
GeneralRe: About REST - Why Oh Why Pin
User 483504724-Apr-17 3:34
User 483504724-Apr-17 3:34 
GeneralRe: About REST - Why Oh Why Pin
Kornfeld Eliyahu Peter24-Apr-17 4:01
professionalKornfeld Eliyahu Peter24-Apr-17 4:01 
GeneralRe: About REST - Why Oh Why Pin
Rob Philpott24-Apr-17 4:06
Rob Philpott24-Apr-17 4:06 
GeneralRe: About REST - Why Oh Why Pin
User 483504724-Apr-17 4:37
User 483504724-Apr-17 4:37 
GeneralRe: About REST - Why Oh Why Pin
Michael Breeden24-Apr-17 4:54
Michael Breeden24-Apr-17 4:54 
GeneralRe: About REST - Why Oh Why Pin
User 483504724-Apr-17 4:57
User 483504724-Apr-17 4:57 
GeneralRe: About REST - Why Oh Why Pin
Vark11124-Apr-17 6:02
Vark11124-Apr-17 6:02 
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 
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 

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.