Skip to main content

Adrian J. Moreno

Member since Dec 11, 2008

Recent Blog Comments By Adrian J. Moreno

  • Which ASCII Characters Does urlEncodedFormat() Escape In ColdFusion

    Posted on Jul 18, 2014 at 11:51 AM

    There's an extensive character comparison of old vs. new HTML, XML, URL and JS encoders here: http://damonmiller.github.io/esapi4cf/tutorials/Encoding.html... read more »

  • How Do You Populate Shared Views In A Complex Layout Using MVC?

    Posted on Jul 12, 2012 at 11:32 AM

    @Dominic So you want multiple controller methods that can get different data to render the same view? That should be done in the Service Layer. You shouldn't need multiple controller methods unless there's something else going on. Even with that, you can override Controller methods using Routing and... read more »

  • How Do You Populate Shared Views In A Complex Layout Using MVC?

    Posted on Jul 12, 2012 at 11:19 AM

    Using ColdBox, you can have the Controller render a view or you can have a view call the Controller. Actually, you have two concepts in presentation: Views and Viewlets. A View is a content container and a Viewlet is reusable bits of content. So your controller function contains event.setView('pat... read more »

  • ColdFusion Components As Data Types - Help Or Hindrance?

    Posted on Apr 10, 2009 at 12:28 PM

    @Joel If you're not doing things like John describes, check your JVM version. 1.6_10 fixes a bug in the JVM (1.6_4 +) that caused slow creation of class (CFC) files.... read more »

  • ColdFusion Components As Data Types - Help Or Hindrance?

    Posted on Apr 9, 2009 at 3:17 PM

    If you want to get technical about it, strings, numbers, structs, arrays . . . they're all objects. Simple objects, yes, but you have no problem thinking of them as data types. Just think of CFCs as complex data types. Sometimes I refer to strings, numbers, etc as objects, sometimes as data types.... read more »

  • ColdFusion Session Management And Asynchronous Page Requests

    Posted on Mar 20, 2009 at 10:41 AM

    @Ben: You can never be too careful with locking session reads and especially writes. I inherited a high volume CF 7 app where UserA would log in and sometimes get UserB's session. UserC would be logged in correctly, go through a few pages/processes and suddenly be in UserD's session. Once we put ... read more »

  • Extending Encrypted ColdFusion Application.cfm Functionality

    Posted on Aug 15, 2008 at 4:20 PM

    @Ben: <cfcomponent hint="Application.cfc"> <cfinclude template="Application.cfm" /> <cffunction name="onRequestStart"> <!--- yadda yadda yadda ---> </cffunction> </cfcomponent>... read more »

  • Extending Encrypted ColdFusion Application.cfm Functionality

    Posted on Aug 15, 2008 at 2:46 PM

    Remember that if a directory contains both Application.cfc and Application.cfm, only the CFC is run. So another option would have been to use onRequestStart() in Application.cfc. This would just avoid renaming the existing Application.cfm... read more »

  • Don't Be Lazy, Be Proud

    Posted on Jan 10, 2008 at 12:41 PM

    "I know that software architects don't write organized code out of a desire to be lazy." Yes we do. Absolutely. This article from 2005 addresses the concept of the lazy programmer: Why Good Programmers Are Lazy and Dumb http://blogoscoped.com/archive/2005-08-24-n14.html We don't want to deal ... read more »

  • Print CSS vs. Printer Friendly Format

    Posted on Dec 29, 2007 at 1:18 PM

    Well, the "print" to "screen" switch sounds good, but it also introduces one more page click to the process. The PDF conversion is an issue as Lola mentioned. If they don't have a reader, they're stuck. If they do have a reader, they have to wait for it to load. I think if someone wants to see _how... read more »

  • Print CSS vs. Printer Friendly Format

    Posted on Dec 28, 2007 at 8:40 PM

    Rick's spot on with his comment. If you've got a good CSS layout, the Print CSS should flow alongside your standard screen display. When we rewrote UnitrinSpecialty.com, one of the main Business Requirements was that any page should print cleanly. When the QA department tested any new page or feat... read more »

  • Advice On Balancing Cohesion, Packaging, And God Objects?

    Posted on Aug 22, 2007 at 4:50 PM

    If you wrote all of your cfargument tags on a single line, you'd probably save 400 lines. :) Seriously though, you could possibly break what you have into separate CFCs: ReadExcel.cfc WriteExcel.cfc StyleExcel.cfc these would be loaded into or by POIUtility.cfc (or POIService.cfc). Then the user... read more »

I believe in love. I believe in compassion. I believe in human rights. I believe that we can afford to give more of these gifts to the world around us because it costs us nothing to be decent and kind and understanding. And, I want you to know that when you land on this site, you are accepted for who you are, no matter how you identify, what truths you live, or whatever kind of goofy shit makes you feel alive! Rock on with your bad self!
Ben Nadel