<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://devlicious.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Casey Charlton - Insane World - All Comments</title><link>http://devlicious.com/blogs/casey/default.aspx</link><description>Hang the code, and hang the rules. They&amp;#39;re more like guidelines anyway</description><dc:language>en</dc:language><generator>CommunityServer 2007 (Build: 20416.853)</generator><item><title>re: jQuery Gotcha - Functions in Events</title><link>http://devlicious.com/blogs/casey/archive/2008/10/09/jquery-gotcha-functions-in-events.aspx#42621</link><pubDate>Thu, 09 Oct 2008 15:07:00 GMT</pubDate><guid isPermaLink="false">40756a8b-6212-4073-9d98-6c26781577de:42621</guid><dc:creator>Casey Charlton</dc:creator><description>&lt;p&gt;Cheers Sergio ... I didn't think there was anything wrong with the docs ... just my understanding of what (fn) meant in that context ... of course it makes sense when you read closely, but I'm a C# developer at heart and used to having strong typing to stop me doing silly things like this :)&lt;/p&gt;
&lt;p&gt;The alternative syntax is probably a little messier ... but useful to know about ...&lt;/p&gt;
&lt;p&gt;Little by little I'm kicking JQuery into line, occassionaly it kicks me back ... brilliant though JQuery is, VS sucks for JS work ...&lt;/p&gt;
&lt;img src="http://devlicious.com/aggbug.aspx?PostID=42621" width="1" height="1"&gt;</description></item><item><title>re: jQuery Gotcha - Functions in Events</title><link>http://devlicious.com/blogs/casey/archive/2008/10/09/jquery-gotcha-functions-in-events.aspx#42616</link><pubDate>Thu, 09 Oct 2008 13:18:36 GMT</pubDate><guid isPermaLink="false">40756a8b-6212-4073-9d98-6c26781577de:42616</guid><dc:creator>sergiopereira</dc:creator><description>&lt;p&gt;Casey, there's nothing wrong with the docs. The syntax you tried at first has a problem that may not be apparent at first. Since the submit(fn) method expects a Function, GetTableContent(a, b) has to *return* a function. You're actually invoking GetTableContent in that line, not passing the function itself. You can get around that by doing what you did or create a function that produces the needed function (so many functions, right?)&lt;/p&gt;
&lt;p&gt;//I'm assuming GetTableContent returns false.&lt;/p&gt;
&lt;p&gt;function createHandler(p1, p2){&lt;/p&gt;
&lt;p&gt;	return function() {&lt;/p&gt;
&lt;p&gt;		return GetTableContent(p1, p2);&lt;/p&gt;
&lt;p&gt;	};&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;and use it&lt;/p&gt;
&lt;p&gt;$('#SearchForm').submit(createHandler(controller, displaySelect)); &lt;/p&gt;
&lt;img src="http://devlicious.com/aggbug.aspx?PostID=42616" width="1" height="1"&gt;</description></item><item><title>re: Testing Is Not Technically Hard, It Is Hard Because It Requires Clear Thought and Understanding</title><link>http://devlicious.com/blogs/casey/archive/2008/10/01/testing-is-not-technically-hard-it-is-hard-because-it-requires-clear-thought-and-understanding.aspx#42555</link><pubDate>Thu, 02 Oct 2008 17:26:45 GMT</pubDate><guid isPermaLink="false">40756a8b-6212-4073-9d98-6c26781577de:42555</guid><dc:creator>Kevin Berridge</dc:creator><description>&lt;p&gt;Hear hear!&lt;/p&gt;
&lt;img src="http://devlicious.com/aggbug.aspx?PostID=42555" width="1" height="1"&gt;</description></item><item><title>2008 October 02 - Links for today &amp;laquo; My (almost) Daily Links</title><link>http://devlicious.com/blogs/casey/archive/2008/10/01/testing-is-not-technically-hard-it-is-hard-because-it-requires-clear-thought-and-understanding.aspx#42544</link><pubDate>Thu, 02 Oct 2008 07:59:59 GMT</pubDate><guid isPermaLink="false">40756a8b-6212-4073-9d98-6c26781577de:42544</guid><dc:creator>2008 October 02 - Links for today « My (almost) Daily Links</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;2008 October 02 - Links for today &amp;amp;laquo; My (almost) Daily Links&lt;/p&gt;
&lt;img src="http://devlicious.com/aggbug.aspx?PostID=42544" width="1" height="1"&gt;</description></item><item><title>re: Problems Upgrading ASP.NET MVC to Preview 5</title><link>http://devlicious.com/blogs/casey/archive/2008/09/02/problems-upgrading-asp-net-mvc-to-preview-5.aspx#42542</link><pubDate>Thu, 02 Oct 2008 01:03:33 GMT</pubDate><guid isPermaLink="false">40756a8b-6212-4073-9d98-6c26781577de:42542</guid><dc:creator>John Brennan</dc:creator><description>&lt;p&gt;Cheers Casey, Html.ActionLink was driving me nuts. I couldn't figure out why querystring was not rendering correctly. That error in the constructor overload was a sneaky one.&lt;/p&gt;
&lt;p&gt;Thanks again,&lt;/p&gt;
&lt;p&gt;John&lt;/p&gt;
&lt;img src="http://devlicious.com/aggbug.aspx?PostID=42542" width="1" height="1"&gt;</description></item><item><title>Arjan`s World    &amp;raquo; LINKBLOG for October 1, 2008</title><link>http://devlicious.com/blogs/casey/archive/2008/09/30/8am-and-the-managed-extensibility-framework.aspx#42538</link><pubDate>Wed, 01 Oct 2008 20:45:15 GMT</pubDate><guid isPermaLink="false">40756a8b-6212-4073-9d98-6c26781577de:42538</guid><dc:creator>Arjan`s World    » LINKBLOG for October 1, 2008</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Arjan`s World &amp;nbsp; &amp;nbsp;&amp;amp;raquo; LINKBLOG for October 1, 2008&lt;/p&gt;
&lt;img src="http://devlicious.com/aggbug.aspx?PostID=42538" width="1" height="1"&gt;</description></item><item><title>Dew Drop &amp;ndash; October 1, 2008 | Alvin Ashcraft's Morning Dew</title><link>http://devlicious.com/blogs/casey/archive/2008/10/01/testing-is-not-technically-hard-it-is-hard-because-it-requires-clear-thought-and-understanding.aspx#42529</link><pubDate>Wed, 01 Oct 2008 14:27:47 GMT</pubDate><guid isPermaLink="false">40756a8b-6212-4073-9d98-6c26781577de:42529</guid><dc:creator>Dew Drop – October 1, 2008 | Alvin Ashcraft's Morning Dew</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Dew Drop &amp;amp;ndash; October 1, 2008 | Alvin Ashcraft's Morning Dew&lt;/p&gt;
&lt;img src="http://devlicious.com/aggbug.aspx?PostID=42529" width="1" height="1"&gt;</description></item><item><title>Unit Testing decoupled from TDD as well== Adoption</title><link>http://devlicious.com/blogs/casey/archive/2008/10/01/testing-is-not-technically-hard-it-is-hard-because-it-requires-clear-thought-and-understanding.aspx#42524</link><pubDate>Wed, 01 Oct 2008 13:27:28 GMT</pubDate><guid isPermaLink="false">40756a8b-6212-4073-9d98-6c26781577de:42524</guid><dc:creator>ISerializable - Roy Osherove's Blog</dc:creator><description>&lt;p&gt;The discussion on the future of unit testing for the masses has shifted from the standard “if they are&lt;/p&gt;
&lt;img src="http://devlicious.com/aggbug.aspx?PostID=42524" width="1" height="1"&gt;</description></item><item><title>re: Where Did filterContext.ActionMethod Go?</title><link>http://devlicious.com/blogs/casey/archive/2008/09/30/where-did-filtercontext-actionmethod-go.aspx#42507</link><pubDate>Wed, 01 Oct 2008 06:52:03 GMT</pubDate><guid isPermaLink="false">40756a8b-6212-4073-9d98-6c26781577de:42507</guid><dc:creator>Casey Charlton</dc:creator><description>&lt;p&gt;Eilon,&lt;/p&gt;
&lt;p&gt;Thanks very much for that explanation. I appreciate where you are coming from, and also appreciate that the action name should be recovered from the RouteData ... I think my frustration is that more and more magic strings are appearing over our ASP.NET MVC application, and while I fully accept there is almost no chance that this value will change, it is still left open to a lot of guesswork as to what it is in the first place - hence why I posted this to save other people the same frustration ... but this post will soon disappear into the depths of time, and the next generation of MVC developers will have to discover this one all over again.&lt;/p&gt;
&lt;p&gt;There is a strongly typed method for ActionParameters on the filterContext, I guess all I am asking is that all other relevant &amp;quot;metadata&amp;quot; be exposed in a similar way, so that the dependency upon the magic string is in the MVC framework, rather than in our codebase.&lt;/p&gt;
&lt;p&gt;In this case, the purpose of this attribute/ActionFilter is a templating engine - by adding an attribute of &amp;quot;Templated&amp;quot; the attribute goes off to the relevant template defintions, sets up metadata like Title and Meta tags, loads up all &amp;quot;static&amp;quot; html content from the database, and populates ViewData with it appropriately. Without the method name (or action name specifically) we would not know which template definition to be loading, or which navigation menu options to set.&lt;/p&gt;
&lt;p&gt;With this we now have a method that looks like:&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[Templated]&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;public ActionResult Index()&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;return View((string)ViewData[&amp;quot;TemplateViewName&amp;quot;]);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;p&gt;If we could also eliminate the call into ViewData at the end, that would alsobe cool - have yet to investigate how to write this into the Result as part of the attribute ....&lt;/p&gt;
&lt;img src="http://devlicious.com/aggbug.aspx?PostID=42507" width="1" height="1"&gt;</description></item><item><title>re: ASP.NET MVC Problems with UpdateModel(model, Request.Form.AllKeys);</title><link>http://devlicious.com/blogs/casey/archive/2008/09/04/asp-net-mvc-problems-with-updatemodel-model-request-form-allkeys.aspx#42506</link><pubDate>Wed, 01 Oct 2008 03:52:51 GMT</pubDate><guid isPermaLink="false">40756a8b-6212-4073-9d98-6c26781577de:42506</guid><dc:creator>Eilon Lipton</dc:creator><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;We don't recommend that you just update *all* properties of your object because that has the potential to be a major security problem. If a malicious user crafts a request they can set any property of your object. Instead we recommend that you use that whitelist property as it was meant to be used: Specify exactly which properties you *want* to update, and nothing more.&lt;/p&gt;
&lt;p&gt;Nevertheless, for the next release we've made some significant improvements to model binders and UpdateModel so some of these scenarios should work much better.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Eilon&lt;/p&gt;
&lt;img src="http://devlicious.com/aggbug.aspx?PostID=42506" width="1" height="1"&gt;</description></item><item><title>re: Where Did filterContext.ActionMethod Go?</title><link>http://devlicious.com/blogs/casey/archive/2008/09/30/where-did-filtercontext-actionmethod-go.aspx#42505</link><pubDate>Wed, 01 Oct 2008 03:48:01 GMT</pubDate><guid isPermaLink="false">40756a8b-6212-4073-9d98-6c26781577de:42505</guid><dc:creator>Eilon Lipton</dc:creator><description>&lt;p&gt;Hi Casey,&lt;/p&gt;
&lt;p&gt;One of the reasons it was removed is that we were making our APIs sufficiently extensible for other controller implementations, such as those used by dynamic languages, for example IronPython. In dynamic languages there is no MethodInfo at all, so we can't give you anything. However, we're thinking of adding back some functionality such as providing the list of attributes on the method.&lt;/p&gt;
&lt;p&gt;One thing that's important for us to understand is exactly why you need that data. If what you want is the action name as seen in the URL then it's entirely correct to dig into the RouteData. That's all we would do for you anyway if you wanted just the action name, so we felt there was little value there.&lt;/p&gt;
&lt;p&gt;Keep in mind that in Preview 5 and forward the action name doesn't necessarily have anything to do with the name of the method being executed for the action. The two naming concepts are unrelated, so we don't want to mislead people by providing an action name - it wouldn't be clear which name it refers to.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Eilon&lt;/p&gt;
&lt;img src="http://devlicious.com/aggbug.aspx?PostID=42505" width="1" height="1"&gt;</description></item><item><title>re: Where Did filterContext.ActionMethod Go?</title><link>http://devlicious.com/blogs/casey/archive/2008/09/30/where-did-filtercontext-actionmethod-go.aspx#42504</link><pubDate>Wed, 01 Oct 2008 02:44:16 GMT</pubDate><guid isPermaLink="false">40756a8b-6212-4073-9d98-6c26781577de:42504</guid><dc:creator>Steve</dc:creator><description>&lt;p&gt;I wondered as well.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;img src="http://devlicious.com/aggbug.aspx?PostID=42504" width="1" height="1"&gt;</description></item><item><title>re: 8am and The Managed Extensibility Framework </title><link>http://devlicious.com/blogs/casey/archive/2008/09/30/8am-and-the-managed-extensibility-framework.aspx#42488</link><pubDate>Tue, 30 Sep 2008 08:56:56 GMT</pubDate><guid isPermaLink="false">40756a8b-6212-4073-9d98-6c26781577de:42488</guid><dc:creator>Jarle Nygård</dc:creator><description>&lt;p&gt;I've had plenty of such days... I find that there is only one real solution; beer. :)&lt;/p&gt;
&lt;img src="http://devlicious.com/aggbug.aspx?PostID=42488" width="1" height="1"&gt;</description></item><item><title>re: Development is Hard</title><link>http://devlicious.com/blogs/casey/archive/2008/09/23/development-is-hard.aspx#42465</link><pubDate>Fri, 26 Sep 2008 16:53:59 GMT</pubDate><guid isPermaLink="false">40756a8b-6212-4073-9d98-6c26781577de:42465</guid><dc:creator>Jean-Francois Poilpret</dc:creator><description>&lt;p&gt;I believe that the need to continuously learn new frameworks, techniques and even languages, is what makes the developer's job interesting. Try to imagine yourself working in C all your professional life (40 years or so) with always the same libraries (and I don't talk about assembly). I could not! I am grateful to people (in particular in the OSS community) and organizations for bringing us new things to learn on an almost daily basis.&lt;/p&gt;
&lt;p&gt;Of course, the downside is that you may feel you will never have enough time to catch up, but you have to make choices, anyway you cannot know every single language and framework that exist.&lt;/p&gt;
&lt;p&gt;Of course, not all developers are like this. Some develop for a living; that's fair, too, but for them, yes, it will be harder, because they WILL have to spend some time learning (generally outside working time) in order to keep current with technologies.&lt;/p&gt;
&lt;p&gt;I'm in the &amp;quot;passionate developer&amp;quot; category, hence I don't count my time on trying to be aware of what's new, evaluating new frameworks (or building projects on these), learning new languages (that I may never use professionally, but that will still develop my way of thinking and will bring me some indirect benefits).&lt;/p&gt;
&lt;img src="http://devlicious.com/aggbug.aspx?PostID=42465" width="1" height="1"&gt;</description></item><item><title>re: Development is Hard</title><link>http://devlicious.com/blogs/casey/archive/2008/09/23/development-is-hard.aspx#42456</link><pubDate>Fri, 26 Sep 2008 06:42:26 GMT</pubDate><guid isPermaLink="false">40756a8b-6212-4073-9d98-6c26781577de:42456</guid><dc:creator>Casey Charlton</dc:creator><description>&lt;p&gt;&amp;gt;&amp;gt;But, if majority of people only read your blog post title and not the content (just like here on the formats of DZone - not to pick on DZone, it is a good service), it only helps to spread only the negative word, plus very fast in today's media.&lt;/p&gt;
&lt;p&gt;&amp;lt;&amp;lt;&amp;lt;&lt;/p&gt;
&lt;p&gt;An interesting point, but would the kind of person who skim reads titles be an appropriate person to be a developer? &lt;/p&gt;
&lt;p&gt;And sadly development generally pays so well (even to people with little ability) that a significant number of people are in it purely for the money, and not for the satisfaction of doing a job well.&lt;/p&gt;
&lt;p&gt;I had the option yesterday of renewing my contract, and I was in &amp;nbsp;perfect position to demand a significant raise in rate and the head of the project would have had no option but to agree - he asked &amp;quot;ok, so what do you want&amp;quot; laughing in a way that said &amp;quot;here comes the rate increase request&amp;quot; - I told him that I wasn't interested in a higher rate - finishing the project was a personal committment I had made to him, and the financial aspect was not my motivation. That is my committment to my profession.&lt;/p&gt;
&lt;img src="http://devlicious.com/aggbug.aspx?PostID=42456" width="1" height="1"&gt;</description></item></channel></rss>