Community Member Profile
- Profile: /members/3043-Adam-Presley.htm
- URL: http://www.adampresley.com
- Comments: 33
- Points: 349
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... 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 t... read more »
-
Seven Languages In Seven Weeks: Ruby - Day 3
Posted on Nov 23, 2010 at 11:39 AM
Regarding passing closures in parenthesis Ben, Groovy supports this. Consider this code: def testFunc(int a, Closure c1, String s, Closure c2) { println "a = ${a}" println "s = ${s}" println "Executing closure c1:" c1()... read more »
-
Simple Neural-Net jQuery Pub/Sub Experiment With Propagation Logic
Posted on Oct 20, 2010 at 3:47 PM
Oh I agree Ben. It's practically the same thing. At this point it boils down to how close you want to stay to the original pattern and preference. In the end there is still some "thing" determining if a message should be sent/continue to subscribers. In my opinion it is not unre... read more »
-
Simple Neural-Net jQuery Pub/Sub Experiment With Propagation Logic
Posted on Oct 20, 2010 at 11:18 AM
You could implement something similar to channels that most messaging systems (ActiveMQ, RabbitMQ) use. This is where messages are segmented by channels, so only subscribers to the given channel can listen for a specified message. This would allow you to have a privileged channel for front... read more »
-
Simple Neural-Net jQuery Pub/Sub Experiment With Propagation Logic
Posted on Oct 20, 2010 at 11:04 AM
It seems to me Ben that you have added the ability to halt propagation of an event in the publish/subscribe model as a means of emulating a Front Controller pattern. My question is why? Why not just have the request/thought come to the Front Controller, and should the conditions be right allow *i... 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.f... 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 »
-
Happy Holidays From Ben Nadel And BenNadel.com
Posted on Dec 25, 2009 at 11:14 PM
Happy holidays to you and yours. Cheers, and happy coding!... 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 »
-
THIS, Function Context, And Object Literals In Javascript
Posted on Oct 13, 2009 at 9:56 AM
I absolutely does, and is quite useful. Where things get hairy is that jQuery callbacks alter the THIS scope, and it varies based on what the function executing the callback is (eg. $.ajax success callback, THIS = the ajax parameter object). This is pretty easily solved by keeping a copy of... read more »
-
Adobe Officially Releases ColdFusion 9 - The Newest, Most Powerful ColdFusion Server (Saucy)
Posted on Oct 5, 2009 at 10:14 AM
Woot! Horray for CF9! And horray for saucy pictures!... read more »
-
Learning ColdFusion 9: Referencing Arrays Returned From Methods
Posted on Jul 14, 2009 at 2:46 PM
@Rick lol! Fair enough. Though I like the .NET platform, that's still funny.... read more »
-
Learning ColdFusion 9: Referencing Arrays Returned From Methods
Posted on Jul 14, 2009 at 2:25 PM
component[ methodName ]() would be great.... read more »



