Lee
cf_LESSwhitespace works a treat on cfm files - i use it on all files going
up to the test server - it was cf_STRIPwhitespace that messed with the
<SCRIPT>...
And while confusing variable names is great ;), the point about switching
them for UUID's was something I envisage doing _after_ development, at the
same time as ripping white space and encryption. ie the source remains
maitainable, but what you ship isn't...
Cheers
Bert
ps give me a shout when you've written a <SCRIPT> friendly version of
<cf_STRIPwhitespace> for use on .cfm templates, and while you're at it, you
could add a feature which removes all CFM and HTM comments....an encrypted,
one line file with no comments and meaningless variable names - should be
fairly safe...
You could even UUID your filenames... :|
> -----Original Message-----
> From: BORKMAN Lee [mailto:[EMAIL PROTECTED]]
> Sent: 21 December 2000 04:09
> To: Fusebox
> Subject: RE: source code protection....
>
>
> Hey Bert! (I always wanted to say that).
>
> If I remember correctly, CF_LessWhiteSpace already DOES leave
> <SCRIPT> tags
> alone. I must admit, although I wrote the tag, I don't use
> it much anymore
> do to the processing overhead. But using it to build a
> 'compressed' version
> of your CFM files is an interesting idea.
>
> As for using confusing variable names, there is a FANTASTIC
> guide to writing
> unmaintainable code floating around the Web (try
> http://mindprod.com/unmain.html). My favourite is using two
> near-identical
> variable names without any explanation, eg:
> swimmer = 17;
> if (swimner GT 10) {
> print "Too old";
> }
>
> Bye now,
> Lee (Bjork) Borkman
> http://bjork.net ColdFusion Tags by Bjork
>
>
> -----Original Message-----
> From: Bert Dawson [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 21, 2000 5:13 AM
> To: Fusebox
> Subject: RE: source code protection....
>
>
> ....
> i strip out all excess
> whitespace in .cfm files, using cffile and <cf_lesswhitespace
> justify=yes>
> I tried using <cf_stripwhitespace, to turn the file into a
> one liner, but,
> predicatably, it messed up the javascript - it wouldn't be
> too hard to write
> a tag which left <script> tags alone....
>
> Using confusing variable names would add another level of
> pain for anyone
> trying to nick your code, but not very maintainable...
>
>
> IMPORTANT NOTICE:
> This e-mail and any attachment to it is intended only to be
> read or used by
> the named addressee. It is confidential and may contain
> legally privileged
> information. No confidentiality or privilege is waived or lost by any
> mistaken transmission to you. If you receive this e-mail in
> error, please
> immediately delete it from your system and notify the sender.
> You must not
> disclose, copy or use any part of this e-mail if you are not
> the intended
> recipient. The RTA is not responsible for any unauthorised
> alterations to
> this e-mail or attachment to it.
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists