Saturday, July 31, 2010    
Home My Books Blog ColdFusion About Me Back    

Calendar
<< Jul 2010 >>
S M T W T F S
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
             

Search

Categories
 • Acrobat (5) [RSS]
 • Adobe (96) [RSS]
 • AdobeMAX06 (45) [RSS]
 • AdobeMAX07 (59) [RSS]
 • AdobeMAX08 (66) [RSS]
 • AdobeMAX09 (39) [RSS]
 • AdobeMAX10 (7) [RSS]
 • AIR (233) [RSS]
 • Appearances (198) [RSS]
 • Books (78) [RSS]
 • CFEclipse (15) [RSS]
 • ColdFusion (1409) [RSS]
 • ColdFusion Builder (9) [RSS]
 • Data Services (36) [RSS]
 • Fish Tank (5) [RSS]
 • Flash (248) [RSS]
 • Flex (513) [RSS]
 • Home Automation (5) [RSS]
 • Jobs (119) [RSS]
 • JRun (14) [RSS]
 • Labs (47) [RSS]
 • LiveCycle (35) [RSS]
 • MAX (238) [RSS]
 • Mobile (138) [RSS]
 • Regular Expressions (18) [RSS]
 • RIA (21) [RSS]
 • SQL (42) [RSS]
 • Stuff (543) [RSS]
 • Tips (CF Studio) (80) [RSS]
 • Tips (CF) (795) [RSS]
 • Tips (Dreamweaver) (91) [RSS]
 • Tips (Flex Builder) (2) [RSS]
 • Using CF (164) [RSS]

Other BLOGs
 • Charlie Arehart
 • Lee Brimelow
 • Ray Camden
 • Christophe Coenraets
 • Sean Corfield
 • Mihai Corlan
 • Cornel Creanga
 • Mark Doherty
 • John Dowdell
 • Danny Dura
 • Enrique Duvos
 • Steven Erat
 • Kevin Hoyt
 • Serge Jespers
 • Adam Lehman
 • Duane Nickull
 • Miti Pricope
 • Andrew Shorten
 • Ryan Stewart
 • James Ward
 • Greg Wilson
 • Full As A Goog

RSS Feeds
 • Feed
 • Subscribe

Join my mailing list and find out about new books and other topics of interest.

Thoughts, ideas, tips, musings, and pontifications (not necessarily in that order) by Ben Forta ...
NOTE: This is my personal blog, and the opinions and statements voiced here are my own.

Viewing By Entry / Main
November 23, 2004

Improving In Blackstone

is used to enumerate the variables used in your code, ensuring that they exist, optionally setting default values if they do not, and possibly also validating data types. Placing a series of tags at the start of a page makes it easier to ensure that required variables exist, and that they are of the right type.

But what if you need to check for types not supported by ? What if you wanted to check for specific values or value ranges or value patterns?

In Blackstone we plan to enhance in several important ways:

1) Additional data types (including e-mail, url, ssn, usdate and eurodate).

2) Value ranges using specified minimum and maximum values.

3) Regular expression pattern matching for ultimate control.

Yet another example of one of the many infrequently discussed goodies in the works.

Comments
I assume you're adding type checking for CFCs too.

Right?
# Posted By Spike | 11/23/04 3:53 PM
I think the regex pattern matchin alone is worth it's weight in gold!
# Posted By Rob Brooks-Bilson | 11/23/04 4:06 PM
There's a bug in your rss feed -- you need to xmlformat() the results because in this case the <CFPARAM> tag is hidden -- the brackets aren't escaped.
# Posted By Mark Murphy | 11/23/04 4:06 PM
hmmm awesome news (although beta users will go "dah.." hehe)

Any news on future plans with CFPROPERTY btw?
# Posted By Scott Barnes | 11/23/04 5:57 PM
color me crazy if its already possible, but will ip address validation be in there?
# Posted By Tony Weeg | 11/23/04 7:28 PM
IP address validation would be a simple RegEx, you'll even find one that you can use in this blog. :-)
# Posted By Ben Forta | 11/23/04 8:16 PM
I hope you provided cfargument tag with same functionality.
# Posted By Uwe Raddatz | 11/24/04 5:33 PM
Is this a subtle hint that we might have the option of making CF strongly typed like the underlying Java by explicitly declaring types in CFPARAM, CFPROPERTY and CFARGUMENT? If so, that would be fabulous!
# Posted By Ian Welsh | 11/25/04 5:31 AM
Ian, nope, that is not planned for Blackstone (and in all honesty, I am not sure I even like that suggestion, but that is a separate thread).
# Posted By Ben Forta | 11/25/04 9:57 AM

  © Copyright 1997-2009 Ben Forta, All Rights Reserved