Re: Announce: Advanced ColdFusion Contest

2006-06-12 Thread Michael Dinowitz
Having already built something exactly like this for anti-spam work, I can say 
that just about every rule I have is a Regular Expression. The only rules that 
aren't are the len(from), len(to), len(subject) rules. 
The issue of Regular Expressions is control. How can you check if there are 
pound signs in a CFSET or CFIF if you don't know what the boundaries of those 
tags are? You can do a find to get the start, a find to get the end and then 
search between those two points, but that's so much extra work where a single, 
elegant Regular Expression would do.

> On that note, do you think some of the rules for the engine would need 
> to be something other than regular expressions?
> 
> Steve
> 
> >And just so it's clear - I'm more than cool with folks talking about
> >the contest. The point isn't to win the prizes - but more to attempt
> >to solve the problem,and to share your results with others. Then my
> >readers and I slowly pick apart the entries. ;) Seriously though - 
> the
> >point is to share so we can all learn. I think a lot can be learned 
> by
> >seeing how other people solve problems.

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:243214
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Announce: Advanced ColdFusion Contest

2006-06-12 Thread Tom Chiverton
On Monday 12 June 2006 16:06, Steve Bryant wrote:
> On that note, do you think some of the rules for the engine would need to
> be something other than regular expressions?

I would imagine so.
You want to be able to say more complicated things, rather than just:
if (doICareAbout(this.name){
if (reFind(variables.regExp, fileContent)){
return variables.match;
}else{
return variables.nomatch;
}
}

Although, writing that, I can see how you could easily have a way of 
registering tuples of (name,regExp,ifMatches,ifNotMatches) into a parser 
module, that would loop over all files, for all registered regExp. doing the 
above code.
And that would probably do. 

Can anyone think of more complicated tests that *wouldn't* be covered by 
that ?

Though, of course, you just then write a parser for that sort of test, and 
have a parser runner run all the registered parser types, which run all the 
tests registered in that type.

I claim dips on this method :-)
-- 
Tom Chiverton



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.

We are pleased to announce that Halliwells LLP has been voted AIM Lawyer of the 
Year at the 2005 Growth Company Awards


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:243209
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Announce: Advanced ColdFusion Contest

2006-06-12 Thread Raymond Camden
Sure. I'm not saying anything about the rules or how they are written.
You can have it use a web service. You can have it use a trained
monkey. Up to you. The main point of this exercise concerns
extensibility. Ie, how can I build an application that is easy to
update, or so easy that the community could write modules and they
could just be dropped in.

On 6/12/06, Steve Bryant <[EMAIL PROTECTED]> wrote:
> On that note, do you think some of the rules for the engine would need to be 
> something other than regular expressions?
>
> Steve
>
> >And just so it's clear - I'm more than cool with folks talking about
> >the contest. The point isn't to win the prizes - but more to attempt
> >to solve the problem,and to share your results with others. Then my
> >readers and I slowly pick apart the entries. ;) Seriously though - the
> >point is to share so we can all learn. I think a lot can be learned by
> >seeing how other people solve problems.
>
> 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:243206
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Announce: Advanced ColdFusion Contest

2006-06-12 Thread Steve Bryant
On that note, do you think some of the rules for the engine would need to be 
something other than regular expressions?

Steve

>And just so it's clear - I'm more than cool with folks talking about
>the contest. The point isn't to win the prizes - but more to attempt
>to solve the problem,and to share your results with others. Then my
>readers and I slowly pick apart the entries. ;) Seriously though - the
>point is to share so we can all learn. I think a lot can be learned by
>seeing how other people solve problems.

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:243205
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Announce: Advanced ColdFusion Contest

2006-06-12 Thread Raymond Camden
And just so it's clear - I'm more than cool with folks talking about
the contest. The point isn't to win the prizes - but more to attempt
to solve the problem,and to share your results with others. Then my
readers and I slowly pick apart the entries. ;) Seriously though - the
point is to share so we can all learn. I think a lot can be learned by
seeing how other people solve problems.

On 6/12/06, Michael Dinowitz <[EMAIL PROTECTED]> wrote:
> Just as a reminder to CF-Talk readers, there is a Regular Expressions list on 
> House of Fusion where you can ask some of the coding questions that will come 
> up in this contest.
> http://www.houseoffusion.com/groups/regex
>
> In addition, I was the technical editor on a GREAT introductory book on 
> Regular Expressions by our own Ben Forta:
> Sams Teach Yourself Regular Expressions in 10 Minutes
> http://www.amazon.com/exec/obidos/ASIN/0672325667/houseoffusion
>
> Good luck with the contest
>

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:243202
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Announce: Advanced ColdFusion Contest

2006-06-12 Thread Michael Dinowitz
Just as a reminder to CF-Talk readers, there is a Regular Expressions list on 
House of Fusion where you can ask some of the coding questions that will come 
up in this contest. 
http://www.houseoffusion.com/groups/regex

In addition, I was the technical editor on a GREAT introductory book on Regular 
Expressions by our own Ben Forta:
Sams Teach Yourself Regular Expressions in 10 Minutes 
http://www.amazon.com/exec/obidos/ASIN/0672325667/houseoffusion

Good luck with the contest

Michael Dinowitz
President: House of Fusion
http://www.houseoffusion.com
Publisher: Fusion Authority
http://www.fusionauthority.com
Adobe Community Expert

>It was suggested that I post this here. For those who read my blog,
>please pardon the dupe.
>
>I recently announced a new ColdFusion contest at my blog:
>
>http://ray.camdenfamily.com/index.cfm/2006/6/11/Advanced-ColdFusion-Contest-Announced
>
>This contest is open to anyone at all, and beginners/intermediate
>developers should not shy away just because of the "advanced"
>description. Details are at the blog, but the basic idea is to build a
>"rules" engine for checking ColdFusion code.
>
>-- 
>===
>Raymond Camden, Vice President of Technology for roundpeg
>
>Email: [EMAIL PROTECTED]
>Blog : ray.camdenfamily.com
>AOL IM   : cfjedimaster
>
>"My ally is the Force, and a powerful ally it is." - Yoda

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:243201
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54