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 6071181
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:01:06+00:00 2026-05-23T10:01:06+00:00

As a general rule for any RESTful CRUD operation, I follow these steps: Validating

  • 0

As a general rule for any RESTful CRUD operation, I follow these steps:

  1. Validating information on client-side
  2. Sending required information in JSON format to the server (possibly a web service)
  3. Validating information on the server
  4. Doing the operation
  5. Returning JSON as the result of operation
  6. Updating DOM based on server’s response

Though this list is general, I think it’s the most complete list. The only problem is that, I do it for any and every operation. I mean, DRY (don’t repeat yourself) tells us to stop repeating things. Is it considered a repetition? Or should we follow these steps always?

  • 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. Editorial Team
    Editorial Team
    2026-05-23T10:01:07+00:00Added an answer on May 23, 2026 at 10:01 am

    Well, you can skip validating the data client-side if you wish…

    Seriously, those are the necessary minimum for doing a lot of things; you must validate server side to prevent a whole host of potential problems and the other parts are just fundamental. OK, you can skip the sending to the server, but then you’re not interacting with a REST service in the first place. You could also skip updating the DOM, but then you’re not showing the results. In other words, every step of that sequence serves its own purpose that is independent from the other ones: they’re not redundant.

    But that doesn’t mean that you should ignore DRY. Not at all. Instead, you should factor out as much of that code as possible into a single place so as to keep the number of repetitions to a minimum. (Maybe even find a framework to do some of that for you.)

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

Sidebar

Related Questions

Is there a general rule of thumb to follow when storing web application data
As a general rule, are there ever any circumstances in which it's acceptable for
Possible Duplicate: Properties vs Methods Is there any rule or general best practice as
The general rule is that I want to say, T has a method with
As a general rule, I prefer using value rather than pointer semantics in C++
Is there a general rule of thumb as to how many classes, interfaces etc
There is a general rule of OO design that you should model is-a relationships
I wonder the general rule to use regular expression in if clause in bash?
As a general rule, are Java compilers localised? Are the compilers capable of emitting
In Ruby on Rails Development (or MVC in general), what quick rule should I

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.