[html-formfu] filename case

Brian Cassidy brian.cassidy at nald.ca
Fri Aug 17 12:32:15 GMT 2007


Carl Franks wrote:
> I'm not entirely happy with all element filenames being lowercase, and
> everything else being CamelCaps.
> What I think would be better, would be to have all files under:
>    Elements/
>    Deflators/
>    Filters/
>    Constraints/
>    Inflators/
>    Validators/
>    Transformers/
> to be lowercase - but let users write it in any case they want.

My personal opinion has been that class names should obey the camelcase 
rules. However, if you don't fancy forcing people to type:

elements:
   - name: title
     type: Text
     constraints:
       - Required
   - name: description
     type: Textarea
     filters:
       - TrimEdges
etc...

in their configs, then your proposal sounds reasonable.

Just for kicks, here's the above in all lowercase:

elements:
   - name: title
     type: text
     constraints:
       - required
   - name: description
     type: textarea
     filters:
       - trimedges

-Brian



More information about the HTML-FormFu mailing list