Kirill
Member since May 8, 2011
- Profile: /members/8294-kirill.htm
- Comments: 17
Recent Blog Comments By Kirill
-
A Better Understanding Of MVC (Model-View-Controller) Thanks To Steven Neiland
Posted on Sep 19, 2012 at 11:22 AM
@Bret, sounds like an Util.cfc! I am placing such modules inside a bean factory (well, I just let bean factory know about it). And since framework is aware of the bean factory, this component becomes available from any part of the application - views, controllers, or business modules (models). If yo... read more »
-
How Do You Populate Shared Views In A Complex Layout Using MVC?
Posted on Jul 12, 2012 at 12:58 PM
There is nothing wrong with views knowing about the model. The model should not know about views, or controllers, or users, but views are ok to know about the model. Also, my understanding is that a controller is there to do job associated with a request, that is anything that is not specific to t... read more »
-
Writing My First Unit Tests With Jasmine And RequireJS
Posted on Jul 7, 2012 at 11:30 PM
The timing of this entry could not be more perfect for me, Ben! Thank you. I am doing exactly the same thing now. I need to build some client side data editing tool now, and I decided to introduce some unit testing into this. It is my first time with unit testing (and TDD) too (I am trying mxunit n... read more »
-
More Thinking About Model-View-Controller (MVC) And Application Architecture
Posted on Jun 6, 2012 at 4:38 AM
@Steven, As I have said, I think there is a trade off - you either spend much more time / money for development or you spend little bit more money on hardware. I completely agree that storing simple values in STRUCTs might be (well, definitely is) faster than storing them in OBJECTS, in fact I h... read more »
-
More Thinking About Model-View-Controller (MVC) And Application Architecture
Posted on Jun 6, 2012 at 1:14 AM
I am not claiming you approach is less valid or something. In some cases when the data's schema is relatively simple and has just some static properties, then sure I'd use a simple structure to pass data and I wouldn't create an object just for the sake of creating an object. But sometimes and depe... read more »
-
More Thinking About Model-View-Controller (MVC) And Application Architecture
Posted on Jun 5, 2012 at 11:18 PM
@Steven Neiland, #Product.getName()#'s price for various sizes ranges from #Product.getMinPrice()# to #Product.getMaxPrice()#. Basically for calculated properties you do want to pass an object, not a struct.... read more »
-
A Better Understanding Of MVC (Model-View-Controller) Thanks To Steven Neiland
Posted on May 23, 2012 at 11:04 AM
It was all enigma for me too, even when I started using Model Glue several years ago, it was not clear what Ms, Vs, Cs are. It was so until I started using FW1, then it snapped. Everything became clear. Nowadays I look at an application like at a desktop program with a single entry point - that is... read more »
-
ColdFusion 10 - Script vs. Tags And My Coding Methodology
Posted on Apr 15, 2012 at 2:36 AM
Script style coding is a bliss for me. I leave tag-style only for the view and SQL processing components (gateway CFCs etc). Nowadays I even think of cfml (tags) as a view engine. The rest, e.g. controllers and the model, is all in cf script.... read more »
-
ColdFusion 10 Beta, Apache Tomcat, And Symbolic Links On Mac OSX
Posted on Feb 19, 2012 at 10:18 PM
Ben, do you plan to do some performance comparison of scripts running on CF9 and CF10? I am (.. we all yeah!) very interested in what Tomcat brings us. A long awaited upgrade for our lovely CF.... read more »
-
Ask Ben: Simple Recursion Example
Posted on Nov 8, 2011 at 10:15 AM
Now looping through my trees of arbitrary depth and arbitrary quantity of child nodes is a breeze.... read more »
-
ColdFusion Query-Of-Queries vs. The Group Attribute In CFOutput
Posted on Jun 20, 2011 at 1:36 AM
Let me add my opinion too please. Databases are evolving; with every edition they include new functionality which lets developers retrieve very sophisticated sets of information in more structured way. We must use these new features, as long as we write our SQL statements ourselves. It is really wor... read more »
-
Using The XPath String() Function In XmlSearch() To Aggregate Node Text In ColdFusion
Posted on May 9, 2011 at 2:58 PM
Again, ColdFusion proves to be a very versatile and flexible tool by providing several possible types of output of XmlSearch function depending on the type of Xpath we use (this is described in the documentation, basically XmlSearch returns the same type of data as the function used in Xpath strin... read more »
-
Aggregating XML Node Text In A ColdFusion XML Document
Posted on May 8, 2011 at 12:10 AM
This is not exactly what you are talking about here (or is it?), but I also often use Xpath's string() function to get the same result: <cfset Result = XmlSearch(data,"string(/data/message)")/> <cfdump var="#Result#"/>... read more »