An Object Oriented Approach to Validations - cf.Objective() 2009

Comments

love

Posted By: farah On: 05/20/09 10:27 AM

Add Comment

Please enter a valid email address.

Optional. Enter a URL for your website.

  Remember Me
  Notify me of follow up comments

Transcript

no image

Slide Text

Slide Notes


AN OBJECT ORIENTED APPROACH TO VALIDATIONS


Bob Silverberg
Bob Silverberg
www.silverwareconsulting.com
@elegant_chaos

no notes exist for this slide

Who Am I

no text exists for this slide

no notes exist for this slide

The Problem

no text exists for this slide

no notes exist for this slide

Slide 4

no text exists for this slide

no notes exist for this slide

Where Oh Where


Where, Oh Where?
Client Side

no notes exist for this slide

Business Rules are Consistent Implementations are Not


Business Rules are Consistent, Implementations are Not

no notes exist for this slide

We Have to Do It Time and Again


We Have to Do It Time and Again!

no notes exist for this slide

Slide 8

no text exists for this slide

no notes exist for this slide

Implementations Change


Implementations Change

no notes exist for this slide

Where Do We Put the Logic


Where Do We Put the Logic?

no notes exist for this slide

Slide 11

no text exists for this slide

no notes exist for this slide

A Solution

no text exists for this slide

no notes exist for this slide

Four Objectives

no text exists for this slide

no notes exist for this slide

Code Generation


Code Generation

no notes exist for this slide

Flexible Validations


Flexible Validations

no notes exist for this slide

Flexible Feedback


Flexible Feedback

no notes exist for this slide

Framework Agnostic


Framework Agnostic

no notes exist for this slide

Hmm

no text exists for this slide

no notes exist for this slide

ValidateThis

no text exists for this slide

no notes exist for this slide

Slide 20

no text exists for this slide

no notes exist for this slide

Slide 21


Code Generation

no notes exist for this slide

Slide 22


Flexible Validations

no notes exist for this slide

Slide 23


Flexible Feedback

no notes exist for this slide

Slide 24


Framework Agnostic

no notes exist for this slide

Quick Demo

no text exists for this slide

no notes exist for this slide

How

no text exists for this slide

no notes exist for this slide

Slide 27


Code Generation

no notes exist for this slide

Lets Talk Metadata

no text exists for this slide

no notes exist for this slide

Properties and Rules


Properties and Rules

no notes exist for this slide

Rules with Parameters


Rules with Parameters
<property name="UserPass" desc="Password">
<rule type="rangelength">
<param minlength="5" />
<param maxlength="10" />
</rule>
<rule type="equalTo">
<param ComparePropertyName="VerifyPassword" />
</rule>
<rule type="custom">
<param methodname=“checkPWHistory" />
</rule>
</property>

no notes exist for this slide

Conditional Rules


Conditional Rules
<property name="LastName" desc="Last Name">
<rule type="required" contexts="Register">
<param DependentPropertyName="FirstName" />
</rule>
</property>
<property name="CommunicationMethod"
desc="Communication Method">
<rule type="required" contexts=“*">
<param DependentPropertyName="AllowCommunication" />
<param DependentPropertyValue="1" />
</rule>
</property>

no notes exist for this slide

Slide 32

no text exists for this slide

no notes exist for this slide

Yeah but How

no text exists for this slide

no notes exist for this slide

Slide 34


Framework Agnostic

no notes exist for this slide

Overall Architecture


Overall Architecture

no notes exist for this slide

Core Objects


Core Objects

no notes exist for this slide

How Does the BO Get Those Nifty Objects


How Does the BO Get Those Nifty Objects?

no notes exist for this slide

Slide 38


Code Generation

no notes exist for this slide

Server Objects

no text exists for this slide

no notes exist for this slide

Slide 40


Server Objects

no notes exist for this slide

Slide 41


Flexible Validations

no notes exist for this slide

Slide 42


Server Objects

no notes exist for this slide

Slide 43


Flexible Feedback

no notes exist for this slide

Slide 44


Server Objects

no notes exist for this slide

Server Side Validations


Server Side Validations

no notes exist for this slide

Client Objects

no text exists for this slide

no notes exist for this slide

Slide 47


Code Generation

no notes exist for this slide

Slide 48


Client Objects

no notes exist for this slide

Slide 49


Flexible Validations

no notes exist for this slide

Slide 50


Client Objects

no notes exist for this slide

Client Side Validations


Client Side Validations

no notes exist for this slide

Slide 52


Overall Architecture

no notes exist for this slide

Resources


Resources
validatethis.riaforge.org
www.silverwareconsulting.com
groups.google.com/group/validatethis

no notes exist for this slide

Q amp A

no text exists for this slide

no notes exist for this slide