混合隐喻并使事情变得过于复杂(REST和SOAP)
Folks keep trying to push metaphors (or similes, like, depending on how you say it) a smidge too far. Steve Maine had some words for Mark Baker. That said: 人们一直试图将隐喻(或类似的词,取决于您的称呼)推得太远。 史蒂夫·缅因(Steve Maine )对马克·贝克( Mark Baker)说了些话。 说: Patrick and I sat down to talk about this: 帕特里克和我坐下来谈论这个: REST: REST : I write a letter, a document even, and it has no address on it and doesn't even say "Dear Patrick." 我什至写了一封信,甚至一个文件,上面没有地址,甚至没有说“亲爱的帕特里克” 。 REST doesn't cover this. The address is out of band. It's not on the "envelope" as there IS NO ENVELOPE. Trying to say that the HTTP Headers are a Poor Man's Envelope succeed only in describing a very poor man. REST并不涵盖这一点。 地址带外。 它不在“信封”上,因为没有信封。 试图说HTTP标头是穷人的信封,只能描述一个很穷的人。 I write a letter, a document even, and it has no address on it and doesn't even say "Dear Patrick." 我什至写了一封信,甚至一个文件,上面没有地址,甚至没有说“亲爱的帕特里克” 。 How anyone can argue about this is beyond Patrick and I. 任何人都可以对此争论,这超出了我和帕特里克。 REST is interesting, and when simplicity is called for, knock yourself out. But seriously, I can see why some may call them RESTafarians because more often than not "Hay now, Mista Postman, tak dis letta to mwa bwoy Patrix. Eim dwon undastan SOAP." doesn't cut it if you really want your letter to arrive. REST很有趣,当需要简化时,请放手一搏。 但是说真的,我能理解为什么有些人称他们为RESTafarians,因为更多的是“现在干草,Mista Postman,tak disletta到Patrix。Eimdwon undastan SOAP。 ”到达。 翻译自: https://www.hanselman.com/blog/mixing-metaphors-and-making-things-too-complex-rest-and-soap
本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!
