November 2007 Blog Posts

  • Parallel Thoughts...

    [Warning this post may jump around a bit... ] I was reading Rick Strahl's assessment of "What's Ailing ASP.NET Web Forms?"  Rick ends with the idea that MVC is probably not the answer although it solves an issue that we have at the moment.  He mentions that maybe MS should invest some time into creating a new Web Framework.  I was right there with him. From there I moved over to looking into the new PLINQ stuff.  That's Parallel LINQ.  This got me thinking that our code isn't necessarily written for modern day (multi-core) processors. Our machines simply can do multiple things at...

  • Generics are better than Collections...

    At least that seems to be true for Mono.  Basically not to rehash too much of Miguel's post (and Rob might be the only other person who truly cares)...  Miguel did a few tests with Generics and found that for Value Types, Generics have a much smaller memory footprint than things like the ArrayList (I knew there was a reason I liked Generics!) He actually quotes a comment by Rico Mariani (on an MS Blog).  Rico is an MS Employee (I think).  He mentions that basically the only problems with Generics are that in memory the code for the framework...

  • Using LINQ to Query the Command Line args

    [I just happened upon this one.. this is pretty cool (not sure how it performs, but then again you are probably only talking a few cycles difference)]. I typically parse command line arguments like this: 1: // Class/Namespace deleted for brevity 2: static void Main(string[] args) 3: { 4: bool AAArgumentExists = false; 5: foreach(string arg in args) 6: { 7: switch(arg) 8: ...

  • Javascript - Public, Private, and Static

    Ok, I recently wrote a post on js closures which was mostly correct.  The post itself was mostly correct, but I implied rather heavily that JS created objects could not contain private values.  Luckily my readers are smarter than me and correct me on it. What I want to do in this post is lay out how one achieves various OOP scopes.  So here we go (it's all code): 1: myFunction = new function() { 2: var privValue; // private field (using var in constructor) 3: this.pubValue...

  • CTE (Common Table Expressions ) behavior

    Hey, VS 2008 shipped 2 days ago... so in honor of that I'm going to talk about something that shipped with the last version of SQL Server (SQL 2005). I recently discovered CTEs via Eric.  You may want to read one of the following articles to learn about them: John Papa or Scott Mitchell. I have begun to use them within Stored Procs, but they seem to be very finicky as to where they go. witin the proc. This is what I discovered.  They work great but you can use one at a time.  That means that you can use a CTE to define another CTE...

  • Javascript Closures...

    I was reading this post by Bertrand Le Roy.  And in many respects I agree with Bertrand and also with John Resig (who wrote the post Bertrand was writing about). You see, John has come up with an enhancement for EcmaScript3 that allows you to do overloading of functions.  What struck me was reading Bertrand's analysis what he liked and the things he didn't like about the mechanism.  I totally agree with the issues Bretrand wrote about.  I had to stop and think hard about what he was talking about though. This gave me pause to realize why it is that while I...

  • Simplicity...

    Ok, I have been sitting on this post for probably 6 months.  Once you see what it is you'll understand why I sat on it this long (Consider where I just came from). I have been asked "Why don't you like this pattern or that pattern? I mean [Some famous blogger] says s/he always uses them.  I think they are smart or at least they seem to be.  You must be a 'Mort' or a pretender..."  At least that's the way it has always been stated to me. With lot's of disrespect for th 15+ years of dev experience that I have. ...

  • A Night of Ajax... Followup (finally)

    [edited: I messed up the links... they are correct now] I haven't forgotten you guys who showed up to my Night of Ajax mini-conference. Here's what's happened since then besides the new blog site.  About 1 week after presenting to you guys, my laptop died and had to go back to the shop.  When I got it back the hard drive was clean... and I had minimal backups. I don't really have the code nor the presentations that I gave to you... but never fear.  That was a repeat of my presentation at the Tampa CodeCamp last summer, so you can get the...

  • TheRuntime.com Updates...

    A couple changes around here I thought I should let some folks know about.  First and foremost, if you subscribed to either my personal feed or to the site feed could you please re-subscribe if your subscription isn't from feedburner (you can do this from the home page of my blog or the home page of the blog... you don't have to do this... it just helps us out).  Thanks! Secondly, I made some changes to our home page earlier.  Jonas mentioned that the background image was detracting to his eye, so I got rid of it and loaded...

  • Why would you want to leave a great place like __________?

    Ok, so I decided to write this post here for those who might be curious, "why did you leave where you were blogging?" Is it because of the "scandal?"No, not really.  I had already decided to leave and was planning on starting my own community.  I needed to find the bloggers first. The truth of the matter is that I longed for a place where the technical content was so incredibly high that I'm scratching my head asking "what I'm doing here with all these geniuses?"  We have a good start to that here. I also was feeling cramped by the...

  • Another Reason Why VS 2008 is a great choice for .NET 2.0 development

    I have been using the VS 2008 beta 2 since it came out last summer, and just recently started reading a book, but we'll get to that in a second. I am working on both new 3.5 .NET apps as well as old .NET 2.0 and 3.0 apps.  This is great because while the project format is slightly different the benefits of a better editor working with the old code is really nice. I noticed recently while working on some 2.0 code that the 3.5 compiler is still being called... this was something I logged into my brain and moved on......

  • TheRuntime.com - Post0

    So I had this real cool post that I had intended to place here as the introduction to our new blog community.  Along the way I have been up to my arms in blog engine grease, and as a result I don't have the original post handy.  Here's the major points from my memory. We're a new community of bloggers, but we have all been blogging for a little bit, so there is a chance that you know some of us.  If you ever visited CodeBetter than you will definitely know a couple of us. Our goals are pretty simple, we want...