Visual Basic

  • MVC coding in VB (part 416)

    The bits move on, and only the code keeps changing. My complaints in the last post are no longer valid. As of the 4/16 release of the MVC framework, VB no longer has that weird behaviour. Now, all action methods must return an ActionResult, so they become functions in both VB and C#. Of course, you already knew that because you're not behind on your reading, and you've already read ScottGu's post on this. I just read blogs for a living (partly), unfortunately the posts I want to read oftimes get pushed back because of it.

  • MVC coding in VB

    Don't ask why, but I decided to try to use the porridge that was "just right" in VB while trying to create a site using the new ASP.NET MVC framework. As I will no doubt forget the syntax to use in about 42 seconds, I'm including it here. Others may find it useful as well. ActionLinks: <%=Html.ActionLink(Of ViewEngines.CategoryController) _    (Function(c As ViewEngines.CategoryController) c.Add(), _    "Add Category")%> Form definition: <%  Using Html.Form(Of ViewEngines.CategoryController) _ (Function(c As ViewEngines.CategoryController) c.Update(ViewData.CategoryID), _ FormMethod.Post)%> The Function(c as ViewEngines.CategoryController) c.blah syntax is the equivalent syntax to the shorter, more symbolrific C# syntax: c => c.Add()....

  • Victoria Code Camp retrospective

    [modified] Almost forgot. Here are the slides if you want to see them. We're back from Victoria, where I did another version of my "A quick look at SubSonic" talk (it was a shorter version of the talk I gave in Winnipeg). What did I learn? People don't stay all day at a Code Camp. During the kickoff, there looked to be around 100 people in attendance. There were all of 8 or so people in my talk (and a big 'Thank you!' to all of you), and the other two speakers (I would have gladly been in...

  • Lies, damed lies and (glorious) stats

    Via The Frontal Cortex, I see that Amazon now has a few tidbits of information about some books, so I had to take a look to see the last two I worked on (not entirely my work/words, but mostly for amusement). Professional XML: These statistics are computed from the text of this book. (learn more) Readability (learn more) ...

  • What has been occupying my time

    It's been about a nice round 17 months (give or take) since I left Microsoft. Since then, Microsoft shipped some software, people have argued, and the world continues its revolution, rotation and other movements. I know all of you were wondering, "What's Kent up to?", so here is some of what I've been up to since I left. I do a daily newsletter for Code Project, the Insider. It's a daily email of news on the industry, developer stuff and more. Oh, and sorry, no RSS feed. I helped Bill Evjen (aka Writing Monster II) create a couple more books. I did four...