× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



For a project where the programmer wants to begin using a modern (web)
interface validations can be left out. Just for getting to work the
pieces together (apache, db2, rpg, html, etc.)

In a production environment the best is to have several layers,
Relational Integrity and triggers as part of the tables work regardless
of the way to use the data, but the messages are not very clear. 
JavaScript in the page is great, it can explain the mistake and help to
put the correct data, before it is send to teh server, but it can be
easily bypassed, so CGI should have an extra layer of validations.

On 11/8/18 11:56 PM, Jim Oberholtzer wrote:
Really? If you can write code to do it, and that rule could be done, you can build it into the database with referential constraints and triggers.

The CRUD would need to react to error conditions and act accordingly.

Now that said, most databases have not been designed with that in mind relying instead on programs (pick your language at will) to do all of that instead. Doesn't mean it can't be done by a developer ( as opposed to a programmer that just turns specs into code) who takes the time to think it through.

That's called software engineering.

Jim Oberholtzer
Agile Technology Architects



On Nov 8, 2018, at 7:19 PM, Booth Martin <booth@xxxxxxxxxxxx> wrote:

My first eye-opening experience with business rules was the rule "Anyone who took care of Mr Kelly's car during the depression gets a nickle an hour above the union rate." That happened to be one guy. But there had to be a rule. How does one put that rule in the database?



On 11/8/2018 7:35 PM, Jim Oberholtzer wrote:
That's what a properly designed database does, enforce business rules with constraints and relational integrity built in. It's not that hard to build.

Jim Oberholtzer
Agile Technology Architects


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: https://amazon.midrange.com

-- Este e-mail fue enviado desde el Mail Server del diario ABC Color --
-- Verificado por Anti-Virus Corporativo Symantec --

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.