Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 64475
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T18:47:44+00:00 2026-05-10T18:47:44+00:00

When you think about it, doesn’t the REST paradigm of being resource-oriented boil down

  • 0

When you think about it, doesn’t the REST paradigm of being resource-oriented boil down to being object-oriented (with constrained functionality, leveraging HTTP as much as possible)?

I’m not necessarily saying it’s a bad thing, but rather that if they are essentially the same very similar then it becomes much easier to understand REST and the implications that such an architecture entails.

Update: Here are more specific details:

  1. REST resources are equivalent to public classes. Private classes/resources are simply not exposed.
  2. Resource state is equivalent to class public methods or fields. Private methods/fields/state is simply not exposed (this doesn’t mean it’s not there).
  3. While it is certainly true that REST does not retain client-specific state across requests, it does retain resource state across all clients. Resources have state, the same way classes have state.
  4. REST resources are are globally uniquely identified by a URI in the same way that server objects are globally uniquely identified by their database address, table name and primary key. Granted there isn’t (yet) a URI to represent this, but you can easily construct one.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T18:47:45+00:00Added an answer on May 10, 2026 at 6:47 pm

    REST is similar to OO in that they both model the world as entities that accept messages (i.e., methods) but beyond that they’re different.

    Object orientation emphasizes encapsulation of state and opacity, using as many different methods necessary to operate on the state. REST is about transfer of (representation of) state and transparency. The number of methods used in REST is constrained and uniform across all resources. The closest to that in OOP is the ToString() method which is very roughly equivalent to an HTTP GET.

    Object orientation is stateful–you refer to an object and can call methods on it while maintaining state within a session where the object is still in scope. REST is stateless–everything you want to do with a resource is specified in a single message and all you ever need to know regarding that message is sent back in a single response.

    In object-orientation, there is no concept of universal object identity–objects either get identity from their memory address at any particular moment, a framework-specific UUID, or from a database key. In REST all resources are identified with a URI and don’t need to be instantiated or disposed–they always exist in the cloud unless the server responds with a 404 Not Found or 410 Gone, in whch case you know there’s no resource with that URI.

    REST has guarantees of safety (e.g., a GET message won’t change state) and idempotence (e.g., a PUT request sent multiple times has same effect as just one time). Although some guidelines for particular object-oriented technologies have something to say about how certain constructs affect state, there really isn’t anything about object orientation that says anything about safety and idempotence.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Q1. In my university studies of object-oriented modelling and design they recommend thinking about
What do you think about this build tool ? I'm thinking of migrating from
What do you guys think about this for a generic singleton? using System; using
I need to think about performance limitations of 100 mbps ethernet (including scenarios with
I'd like know what people think about using RAISERROR in stored procedures to pass
I needed to re-install my computer but I didn't think about exporting the data
Are there any good online resources for how to create, maintain and think about
I'm used to doing Java programming, where you never really have to think about
Do you think that writing about software (i.e. having a blog) and speaking on
Let's think about a simple C program compiled in Windows. I can compile the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.