dpeterson


Comments:

MVC Strongly-Typed Action Helpers - They're Back!

posted by dpetersondpeterson(4397) 3 days, 23 hours ago +1

Is the performance concern still present?

Reply

Pass Session or Viewbag values to JS Files : ASP.NET MVC 3

posted by dpetersondpeterson(4397) 9 days, 23 hours ago 0

In other languages I tend to use either the first method of setting javascript variables via a template, or html data attributes. It's sometimes handy to throw a bunch of page related data on the body tag or other easy to locate places.

Reply

Noninvasive Unit Testing in ASP.NET MVC4 – A Microsoft Fakes Deep Dive

posted by dpetersondpeterson(4397) 8 days, 23 hours ago 0

Fakes are a great way to keep implementation details from leaking into your tests. This prevents things like needing certain data to be present in a database just to run tests or other similar situations.

Reply

Get injected into the world of inverted dependencies

posted by dpetersondpeterson(4397) 8 days, 23 hours ago 0

Very informative, thanks for sharing!

Reply

Code First Approach using Entity Framework 4.1, Inversion of Control,

posted by dpetersondpeterson(4397) 5 days, 23 hours ago 0

Nice article, one suggestion though, I would avoid using the screenshots for showing off code. It's hard on readability, and you don't seem to have full versions of the thumbnails.
Thanks for sharing!

Reply

Behaviour-Driven Development in .NET with SpecFlow and White

posted by dpetersondpeterson(4397) 4 days, 23 hours ago 0

I've always been a big fan of Specflow, I've never tried using it together with White though. Thanks for the rundown.

Reply

EF 4.1+ POCO, Repository and Specification Pattern Framework

posted by dpetersondpeterson(4397) 4 days, 23 hours ago 0

Direct links in case you missed them the first time like I did ;-)
https://huyrua.wordpress.com/2010/07/13/entity-framework-4-poco-repository-and-specification-pattern/
https://huyrua.wordpress.com/2010/08/25/specification-pattern-in-entity-framework-4-revisited/

I don't use the repository pattern much myself. The specification pattern is pretty interesting though, seems like a nice way to add an abstraction over your querying capabilities.

Reply

Windows 8 Metro: Something about application life-cycle

posted by dpetersondpeterson(4397) 4 days, 23 hours ago 0

I actually think there will be some hidden benefits to suspending applications as well.
I'm sure many users leave applications open on accident without saving their work, this would provide an opportunity for the application to save state. It's true that there's nothing stopping most applications from having autosave features today, but with the chance of the application being suspended, it sort of forces developers to add this functionality.

Reply

Handle GridView.OnSorting() and create sorting expression dynamically

posted by dpetersondpeterson(4397) 3 days, 23 hours ago 0

Neat solution, the dynamic LINQ stuff could be handy in many different places, including searching.

Reply

Attribute based routing in ASP.NET Web API

posted by dpetersondpeterson(4397) 2 days, 22 hours ago 0

This is a great approach and gets us closer to the ease of defining routes you see in other frameworks like Express on Node or Sinatra on Ruby.

Reply

SQL Data Decimation by Date Range and Nth Record

posted by dpetersondpeterson(4397) 2 days, 22 hours ago 0

Nice approach to solving this. I wonder how much extra performance, if any, could be squeaked out by using something like an indexed view. The query analyzer in SQL Server is pretty good these days, so sometimes it's hard to tell whether adding a view over the underlying table (even if it's then being queried in a stored procedure) will have any positive benefits over querying the table itself. If you seldom insert data into the table, a covering index could negate the benefits of a view as well.

Reply

When to throw exceptions

posted by dpetersondpeterson(4397) 2 days, 22 hours ago 0

Short but sweet. Lots of people get exceptions wrong, or let exceptions be thrown for silly reasons (null reference exceptions in string operations are a common cause).

Reply

Extract to User Control in visual studio11

posted by dpetersondpeterson(4397) 2 days, 21 hours ago 0

I hadn't heard of that feature yet, very handy. There will be no excuse not to refactor now!

Reply

9 Steps You Can Take to Start Weaning Yourself off Web Forms

posted by dpetersondpeterson(4397) 2 days, 21 hours ago 0

Thanks for also including examples of *how* to implement these steps. This one is definitely getting saved for a rainy day.

Reply

SQL Data Decimation by Date Range and Nth Record

posted by dpetersondpeterson(4397) 2 days, 19 hours ago 0

Wow, that's some serious disk space for the indexes! Thanks for the follow-up, it gives me something to think about in terms of managing some of our file growth issues relating to indexes.

Reply