Adam Presley
Member since Mar 4, 2009
- Profile: /members/3043-adam-presley.htm
- URL: http://www.adampresley.com
- Comments: 33
Recent Blog Comments By Adam Presley
-
Changing The Execution Context Of Your Self-Executing Function Blocks In JavaScript
Posted on Oct 3, 2011 at 10:22 AM
This is how I do most all my JS these days (pretty close anyway). Essentially this allows objects on "this" to be "public", and "var" scoped objects to be "private". Then, if I need a singleton I invoke like you show above. Otherwise for a "class" I... read more »
-
Seven Languages In Seven Weeks: Clojure - Day 3
Posted on Jan 21, 2011 at 1:36 PM
As someone doing some concurrent programming stuff in Groovy right now Clojure is of great interest to me. Unfortunately I haven't had time to delve into it and see how it would fit my project. I'd be interested in hearing if you have any additional exploits in this arena, and I'm gonna have to take... read more »
-
jQuery Template Markup Langauge (JTML) vs. jQuery Templates
Posted on Oct 5, 2010 at 10:54 PM
An interesting side-by-side. I've been using the proposed MS template plugin, and it has worked great for me.... read more »
-
Overloading Javascript Functions Using A Sub-Function Approach
Posted on Sep 10, 2010 at 10:36 AM
So was the idea purely to work out a clean separation of functional intent for overloading? Otherwise why not keep is simple like so? function randRange(arg1, arg2) { if (arg1 === undefined && arg2 === undefined) { return; } else if (arg2 === undefined) { return (0 + Math.floor(Math.random() * (a... read more »
-
ColdFusion Application.cfc Properties Get Normalized In Interesting Ways
Posted on May 4, 2010 at 10:36 AM
Another interestingly potential argument as to why forcing a "typeless" language to strictly type is potentially a bad idea. I'm all for strong typing, but like you said so well yourself, "...it's important to understand how the ColdFusion framework operates". Cool post Ben.... read more »
-
ColdFusion 9 Script-Based Method Definitions Work Inside CFScript
Posted on Jan 13, 2010 at 3:03 PM
@Dan hehe, then my concern is clearly unfounded! ;)... read more »
-
ColdFusion 9 Script-Based Method Definitions Work Inside CFScript
Posted on Jan 13, 2010 at 2:53 PM
@Dan, oh yes, I use the actual function syntax. I raise a concern of showing the JavaDoc syntax for defining a function only cause I feel its use is tenuous. If you accidentally mistype something in the JavaDoc syntax, does CF throw an exception, or happily ignore it?... read more »
-
ColdFusion 9 Script-Based Method Definitions Work Inside CFScript
Posted on Jan 13, 2010 at 11:02 AM
As much as I am in love with CFSCRIPT, using JavaDoc for defining function attributes gives me the willies! Just doesn't seem right. The whole "Doc" part of "JavaDoc" feels violated. :)... read more »
-
CorMVC - My jQuery-Powered Model-View-Controller (MVC) Framework
Posted on Dec 21, 2009 at 10:17 AM
Enjoyed the original presentation. I'll have to dload and check it out.... read more »
-
Running Javascript In ColdFusion With CFGroovy And Rhino
Posted on Dec 1, 2009 at 2:17 PM
That is absolutely sweetness man. I love JS.... read more »
-
jQuery Powered Mine Sweeper Game
Posted on Oct 27, 2009 at 10:28 AM
Very nice dude. Gave it a try, and it's working great. Fun stuff.... read more »
-
Is It Time For "Practical" Object Oriented Programming (OOP)?
Posted on Mar 30, 2009 at 1:57 PM
Ben, I feel your pain here. I've programmed in many languages for almost 15 years, varying from C++ and Pascal to PHP and ColdFusion, yet I still struggle. I will say that I agree strongly with Brian Meloche's statement of "...gratuate from ColdFusion OOP 201". Many people have mentioned it; it isn'... read more »
-
Reconciling Different Types Of APIs And What Data They Return
Posted on Mar 5, 2009 at 12:28 PM
@Gareth - I took a look at it. Pretty nice.... read more »
-
Reconciling Different Types Of APIs And What Data They Return
Posted on Mar 5, 2009 at 10:57 AM
Have I mentioned how much I love OOP and design patterns? :)... read more »
-
Reconciling Different Types Of APIs And What Data They Return
Posted on Mar 5, 2009 at 10:43 AM
In both cases. My applications' view pages are handed data by the controller, and it in turn gets data from the service layer. AJAX calls in this particular case use the controller to execute calls. I do know that many frameworks prefer to put remote fascade objects on top of the service layer speci... read more »
-
Reconciling Different Types Of APIs And What Data They Return
Posted on Mar 4, 2009 at 6:35 PM
Although your post is very "where do the messages come from" centric, one of the things I noted is that your "public" API is on the same "layer" as your private API. One of the things that I am instituting at our work, and use in my own framework, is that the public facing API sits on a higher lay... read more »