CSharpFeeds - All your C# feeds in one place.

Sponsors

Feed: Jeffrey Palermo (.com)

Site: http://jeffreypalermo.com/ Link: http://feeds.feedburner.com/jeffreypalermo

Monday, August 23, 2010

What is the difference in <%: variable%> and <%= variable%> in ASP.NET MVC?

by Jeffrey Palermo via Jeffrey Palermo (.com) on 8/23/2010 1:21:26 PM

With many folks adopting ASP.NET MVC as well as Visual Studio 2010, there is a fairly confusing change if you are one of those people who doesn’t engage in the alpha and beta phases of new product releases from Microsoft or any other vendor, for that matter. The issue of <%: vs. <%= has had a great deal of discussion around it in the years leading up to the Visual Studio 2010 release.  This new expression syntax, or code nugget, is a new feature of ASP.NET 4.  It applies equally ...

[ read more ]

Thursday, February 18, 2010

Add post-backs to MVC –or- add front controller to Web Forms

by Jeffrey Palermo via Jeffrey Palermo (.com) on 2/18/2010 8:03:49 PM

You can download the code for this post at my CodePlex repository: http://palermo.codeplex.com/ Lots of programmers I talk to are managing software assets written in ASP.NET.  These applications have been in production for years, and they work.  The problem that is pervasive among all of them is that the Page_Load method is much too large.  Model-View-Presenter is fatally flawed as a pattern because the view obtains control before the presenter does.  This wrong ordering is ...

[ read more ]

Monday, January 25, 2010

My ASP.NET MVC in Action talk from Houston TechFest (webcast)

by Jeffrey Palermo via Jeffrey Palermo (.com) on 1/25/2010 10:02:00 PM

Here is a talk I gave on 26 September 2009 at the Houston TechFest.  Thanks to Shawn Weisfeld for recording it! ...

[ read more ]

Thursday, January 21, 2010

Constructor over-injection smell – follow up

by Jeffrey Palermo via Jeffrey Palermo (.com) on 1/21/2010 6:03:22 PM

This is a follow up to my article: “Constructor over-injection anti-pattern”.  I’ve title this a bit differently because as with any heuristic, there are degrees of goodness and smelliness.  Constructor over-injection, therefore, is a code smell, I believe.  Without concrete do’s and don’ts, I believe it doesn’t deserve the explicit title of “anti-pattern”. I have expanded the code sample (and it is available as a zip or tar file here). I’ve modified the OrderProcessor as shown ...

[ read more ]

Tuesday, January 19, 2010

Constructor over-injection anti-pattern

by Jeffrey Palermo via Jeffrey Palermo (.com) on 1/19/2010 10:28:00 PM

Check out http://jeffreypalermo.com/blog/constructor-over-injection-smell-ndash-follow-up/ for a follow-up I’m interested in structure.  We hear lots of talk about convention over configuration.  I’m all for structure over convention (over configuration).  This post is about laying out some code that is an anti-pattern.  It uses 100% constructor injection.  This code makes it easy for a container to bootstrap the construction of the objects, but let ...

[ read more ]

Thursday, December 31, 2009

ReSharper 5.0 has awesome ASP.NET MVC support

by Jeffrey Palermo via Jeffrey Palermo (.com) on 12/31/2009 3:46:21 AM

Here’s a cool gem I discovered when running the ReSharper 5.0 EAP.  Clicking CTRL+B on “return View()” in a controller action has the option to navigate directly to the view that belongs to the action.  No more trying to find the _right_ “Index.aspx” file. ...

[ read more ]

Monday, December 07, 2009

What training doesn’t teach you about reading from .Net configuration

by Jeffrey Palermo via Jeffrey Palermo (.com) on 12/7/2009 2:17:36 PM

All the material I’ve seen talking about reading from .Net configuration files concentrates on explaining the API.  The API of ConfigurationManager exposes members such as: public static class ConfigurationManager { static ConfigurationManager(); public static NameValueCollection AppSettings { get; } public static ConnectionStringSettingsCollection ConnectionStrings { get; } public static object GetSection(string sectionName); public static void RefreshSection(string ...

[ read more ]

Monday, November 30, 2009

December Headspring workshop (IoC) 15 days away

by Jeffrey Palermo via Jeffrey Palermo (.com) on 11/30/2009 2:35:29 PM

Headspring System’s December workshop is : Decoupling Layers using Inversion of Control Matt Hinze will be leading this workshop.  Matt is an expert in this topic and has previous presented at other conferences such as Houston Tech Fest and Austin Code Camp.  Matt is a Microsoft MVP for C# and a frequent contributor to open source projects. Go here to register for the workshop.  It is free, but space is limited. Brief Contents follow: Inversion of Control A con ...

[ read more ]

Friday, November 13, 2009

Consuming a Portable Area with a Web Forms application

by Jeffrey Palermo via Jeffrey Palermo (.com) on 11/13/2009 9:33:50 PM

Background Headspring has developed and donated Portable Areas to the MvcContrib project.  It currently resides in the MVC2 branch on the MvcContrib GitHub source control site.  Eric Hexter has written a multi-piece tutorial on how to create and publish a Portable Area assembly. Download code here. A Portable Area builds on the concept of an ASP.NET control, and it takes it a step further.  Whereas a control can encapsulate a certain part of the page to deliver rich functionali ...

[ read more ]

Wednesday, November 11, 2009

Static vs. Dynamic languages: What I really want

by Jeffrey Palermo via Jeffrey Palermo (.com) on 11/11/2009 4:21:00 PM

“I want static behavior between assemblies/libraries/packages but dynamic abilities within.” – JeffreyPalermo.com With C# 4.0, code within method can be dynamic because of the new dynamic keyword.  This is a short post expressing what I want out of C#. I recently listened to a great debate about the advantages and shortcomings of both dynamic and static languages, and the biggest pain of 100% dynamic languages is that when using a library, you really don’t know what is supports except if ...

[ read more ]

ASP.NET MVC wins with simplicity, not features

by Jeffrey Palermo via Jeffrey Palermo (.com) on 11/11/2009 4:09:06 PM

As a follow-up to some ASP.NET MVC comments by Dino Esposito, I want to provide my commentary on why the grassroots of the .Net developer community is so in love with ASP.NET MVC, even though Microsoft marketing isn’t really seeming to push it.  It’s odd, too, because with Entity Framework, the message from Microsoft is clear:  DataSets and Linq2Sql will still be supported. . . but . . . er. . .um, we recommend you start moving to Entity Framework. Car vs. Motorcycle? Irrelevant analo ...

[ read more ]

Monday, November 09, 2009

Party with Palermo: PDC ‘09 edition – 6 days and counting

by Jeffrey Palermo via Jeffrey Palermo (.com) on 11/9/2009 8:55:55 PM

That’s right, folks!  For those of your coming to Microsoft’s Professional Developers’ Conference (PDC), Party with Palermo is going to kick the week off right.  The conference starts on Tuesday, so Monday night, we are going to get down and party to the turntables of DJ Craig.  If you were at the Party with Palermo at Tech Ed,  you remember this DJ and how he had the uncanny ability to get folks like Ted Neward and Sara Ford dancing like it was 199. . . 2009! Here is t ...

[ read more ]

Saturday, June 20, 2009

The ASP.NET MVC ActionController – The controllerless action, or actionless controller

by Jeffrey Palermo via Jeffrey Palermo (.com) on 6/20/2009 4:14:01 AM

There has been quite  a bit of discussion about how controllers are really namespaces trying to get out once you use the concept on a nontrivial application.  Brian Donahue’s post on The anti-controller revolution prompted me to do this little experiment.  He references some twitter posts by Jimmy Bogard, one of my esteemed consultants at Headspring Systems.  Chad Myers also has opined about the notion of more independent actions and has cited precedence. My interest in th ...

[ read more ]

Tuesday, June 09, 2009

ASP.NET MVC HttpModule Registration Under IIS Integrated Mode vs. Classic Mode

by Jeffrey Palermo via Jeffrey Palermo (.com) on 6/9/2009 12:48:03 AM

Subscribe to my feed here: http://feeds.jeffreypalermo.com/jeffreypalermo Context In many applications, I find the development team needs to have some bit of configuration code run at the very beginning, before any other code.  In a web site on ASP.NET, we have the Global.asax file that has an Application_Start method.  In an ASP.NET MVC app, we register routes and do other things before the first request is served by the application.  One of the common start-up tasks my team ...

[ read more ]

Saturday, April 25, 2009

Party with Palermo location confirmed for Tech Ed 2009

by Jeffrey Palermo via Jeffrey Palermo (.com) on 4/25/2009 10:12:03 PM

Over 150 people have already confirmed their RSVP for Party with Palermo: Tech Ed 2009 Edition.  This year is the 4th anniversary of Party with Palermo.  Party with Palermo started at Tech Ed 2005 with $0 budget and 35 people in Orlando, Fl.  It has grown quite a bit since then. If you are going to be at Tech Ed 2009, plan on arriving on May 10th (Sunday), and drop in at the Westin Bonaventure at 7PM.  The specific ballroom will be announced by May 4th.  Be sure that yo ...

[ read more ]

Tuesday, February 10, 2009

An Afternoon of ASP.NET MVC (a free Headspring event)

by Jeffrey Palermo via Jeffrey Palermo (.com) on 2/10/2009 12:24:48 AM

With the imminent release of ASP.NET MVC, the industry is buzzing about this new way to write ASP.NET applications (not really new - i.e. MonoRail).  Lots of folks are already intending to adopt this library when it is released, so Headspring Systems is sponsoring a free afternoon of ASP.NET MVC framework training at the Microsoft office in Austin, TX.   Make sure to register for this event because there is a limited number of chairs. Details: Austin: An afternoon of Asp.Net MVC, ...

[ read more ]

Wednesday, January 21, 2009

Giving my "TDD, DI, and SoC with ASP.NET MVC" talk at Houston TechFest this Saturday

by Jeffrey Palermo via Jeffrey Palermo (.com) on 1/21/2009 1:59:17 PM

I'm giving my "TDD, DI, and SoC with ASP.NET MVC" talk at Houston TechFest this Saturday.  This will be the 6th time I've given this same talk.  I gave this talk the first time at Tech Ed 2008 when I pinch-hit for Phil Haack when he found out he wasn't going to make it.  This talk has had great-reviews my several user groups, such as the ADNUG, TRINUG, NWANUG, SDNUG, and WINUG, and it is code-based, not powerpoint-based.  One lucky audience member will also get to come up on ...

[ read more ]

Friday, January 16, 2009

Limiting Code Comments Increases Maintainability

by via Jeffrey Palermo (.com) on 1/16/2009 9:15:00 PM

The assertion of this post is that code comments are a smell.  Creating obvious, readable code is more maintainable that unreadable code that is heavily commented. Matt Hinze is teaching Agile Boot Camp, part 1 this week, and one of his lessons is about code readability.  He spoke about code comments being a smell.  When something smells, it doesn't guarantee that it is rotten, but it does create the need to examine more closely to see if any bacteria is beginning to invade the co ...

[ read more ]

Subscribe

New Feed

Product Spotlight

Recently Updated Sources

Legal Note

The content of the postings is owned by the respective author. CSharpFeeds is not responsible for the contents of the postings. This site is automatically generated and cannot be reviewed for abusive content. If you find abusive content on CSharpFeeds, please contact us. Designated trademarks and brands are the property of their respective owners. All rights reserved.

Advertise with us