Brian Swartzfager
Member since Mar 16, 2009
- Profile: /members/3103-brian-swartzfager.htm
- URL: http://www.thoughtdelimited.org/thoughts
- Comments: 27
Recent Blog Comments By Brian Swartzfager
-
Monitoring $http Activity With $http Interceptors In AngularJS
Posted on Feb 24, 2015 at 1:45 PM
My first use case for using interceptors was when I wanted to add a timestamp URL parameter for each GET request made for retrieving data (GET requests for HTML content would be unaffected) to circumvent some of the caching I was seeing in IE 8 at the time. What I realized later was that I needed a... read more »
-
What If All User Interface (UI) Data Came In Reports?
Posted on May 3, 2013 at 5:54 PM
A few corrections/clarifications to some of the ideas I've posted here: 1. I didn't realize that you could subclass one ORM entity from another on a joined column, so my earlier statement about making sure the superclass isn't persisted is incorrect. But you can have an ORM CFC that is a subclass ... read more »
-
What If All User Interface (UI) Data Came In Reports?
Posted on May 3, 2013 at 10:39 AM
@Ben: I think, in the end, it all comes down to what implementation strikes the right balance of efficiency and practicality for the particular situation. Using your example above, if you're only going to use this logic of who is "new" in that one UI, then maybe it makes sense to handle t... read more »
-
What If All User Interface (UI) Data Came In Reports?
Posted on May 1, 2013 at 1:50 PM
@Ben: One of the benefits we get from using ORM objects over a row in a database recordset (beyond the built-in CRUD functions and relationship management) is the ability to define behavioral functions or computed properties that aren't persisted to the database. Classic example: a Person ORM obj... read more »
-
What If All User Interface (UI) Data Came In Reports?
Posted on May 1, 2013 at 8:22 AM
@Ben: Just read the CQRS post. As I moved towards using objects to manipulate individual data records (first with Transfer, then with my own custom data access objects, soon with Hibernate), I still limited their use mainly to situations where I was only retrieving a single object (in order to perf... read more »
-
What If All User Interface (UI) Data Came In Reports?
Posted on Apr 30, 2013 at 10:26 AM
Seems like a good illustration of why we use MVC architectures to separate the model and the view: views are interpretations of the model that are important to the user, and you can represent the same model data in different ways depending on what the user wants/needs. It also points out, to me, h... read more »
-
ColdFusion 10 - Parsing Dirty HTML Into Valid XML Documents
Posted on Feb 28, 2012 at 10:19 AM
Very cool! I love the idea of being able to reliably parse HTML pages into XML data.... read more »
-
Branching Logic vs. Guard Logic When It Comes To Function Control Flow
Posted on May 17, 2011 at 2:30 PM
One of the places I find "Guard Logic" to be useful is in my Model-Glue apps. In Model-Glue, if a certain condition is met, you can issue a statement in your controller function to add a "result" to the event object. That result ends up acting like a return statement/interrupt ... read more »
-
Atlas Shrugged, Part I - The Movie
Posted on Apr 22, 2011 at 10:04 AM
@Tim: Dammit, watching Ninja Assassin (on my DVR) was my fallback to seeing Atlas Shrugged. So if that also sucks, what am I supposed to watch this weekend?? :)... read more »
-
Atlas Shrugged, Part I - The Movie
Posted on Apr 22, 2011 at 9:56 AM
Sorry to hear that it sucked. Take some small solace from the fact that you have at least spared me from seeing it, because I was still considering it. I have a feeling that unless Part II has already been filmed, the failure of Part I dooms any chance of a Part II ever coming out (at least on the... read more »
-
Sunday Hackathon: ThingsIGive.com - A Digital Journal Of Your Awesome Self
Posted on Jan 24, 2011 at 11:05 AM
That's a pretty interesting idea, Ben. We rarely think about how taking the time to encourage people or share our input with them is an act of giving.... read more »
-
The Arbor Day Web Development Team Planted Me Some Trees
Posted on May 19, 2010 at 4:53 PM
Very cool.... read more »
-
NYC + Snow + ColdFusion + jQuery = Winter Wonderland
Posted on Dec 20, 2009 at 11:32 AM
Who did you drag out there to take the final shot (or was that taken with a timer)? :)... read more »
-
Using $Variable In jQuery Code Is Just Hungarian Notation
Posted on Dec 10, 2009 at 9:14 AM
I do tend to use the "$" to prefix any variable that represents a jQuery object (as opposed to a string or numeric variable), but I also try to make the variable name descriptive. For example, if I wrote a click event handler for a hyperlink and I wanted to copy the clicked hyperlink to a variable,... read more »
-
What Request Data Does ColdFusion Builder Post To Extension Handlers?
Posted on Nov 19, 2009 at 3:49 PM
I _think_ each extension also has an application scope you can use to store persistent data as you navigate from step to step (I could be mistaken; it's been awhile since I've played with extensions and I don't have my notes with me).... read more »
-
A Moment That Touched Me - The Fountainhead
Posted on Nov 3, 2009 at 2:19 PM
"I believe that part of her (Rand's) philosophy was that one could not pursue things that asked others to sacrifice themselves." Agreed. That's one of the important points people tend to overlook when they complain about the selfish/self-interested nature of Objectivism. Others should not pay the p... read more »
-
A Moment That Touched Me - The Fountainhead
Posted on Nov 2, 2009 at 3:28 PM
That's definitely a significant moment in the book. It's one of the few times where Roark really gets angry: he never shows much anger with any of his opponents in the book because they're not worth his anger. That said, it's sometimes hard to practice what Roark says at the beginning of the quot... read more »
-
Passing A Function To jQuery's Attr() Method For Implicit Iteration
Posted on Oct 7, 2009 at 11:13 AM
Interesting. Does the book say if this particular method is faster/more efficient than using an each() loop?... read more »
-
Viewing jQuery DOM Event Bindings With FireBug
Posted on Oct 5, 2009 at 11:21 AM
That's an interesting tidbit of information, Ben: thanks for sharing it.... read more »
-
Why My Queries Hate Application Service Layers
Posted on Jun 18, 2009 at 10:41 AM
But, Ben, if your function or view needs data from more than one table, a well-written query with the proper joins gets you the needed data with one call to the database rather than two or three separate calls. Avoiding multi-table queries (which is what you seem to be contemplating here) is only g... read more »