Brian LeGros
Member since Dec 11, 2008
- Profile: /members/1718-brian-legros.htm
- URL: http://www.brianlegros.com/blog
- Comments: 5
Recent Blog Comments By Brian LeGros
-
Ask Ben: Working With Lists In An Object Oriented Programming Application
Posted on May 15, 2008 at 10:12 PM
@Ben, Jaime - To add to that, consider the example of a populated collection of User objects. What's to say you don't create an object called Group which is a derivation, or abstraction, of a List-like collection. You can give the object Group behaviors like bulkAddPermission(). Search is another... read more »
-
Ask Ben: Working With Lists In An Object Oriented Programming Application
Posted on May 15, 2008 at 12:44 PM
One thing to keep in mind when tackling collections of objects, is that size does matter, and even in OO languages other than CFML (i.e. - Java, C#, Ruby, etc.), you probably won't find yourself creating a collection with 1000+ objects, at least I don't, and I work on some fairly large systems. It'... read more »
-
ColdFusion Implicit Struct Creation Cannot Use Quoted Identifiers
Posted on Feb 4, 2008 at 1:08 PM
@Ben - I definitely agree. Writing unit tests would be so much easier. I second the "sweet-ass-sweet".... read more »
-
ColdFusion Implicit Struct Creation Cannot Use Quoted Identifiers
Posted on Feb 4, 2008 at 12:47 PM
I ran into this last week and it annoyed me a bit. I also was having issues creating implicit structs in a method call for some unit tests I was writing: <cfset myCFC.myMethod({key1 = "value", key2 = "value2"}) /> I ended up refactoring it out to 2 lines along with a few other things, so I ... read more »
-
Posting File Data Using A Base64 Encoding In ColdFusion
Posted on Jan 4, 2008 at 11:25 AM
As a suggestion, you may want to wrap the base64 encoded data in a CDATA block since it's being transmitted in an XML format. Base64 is a great encoding for passing data around over HTTP, but to avoid the stress of the XML parser getting its hands on your data, a CDATA block is always useful. BTW ... read more »