MVC Strongly-Typed Action Helpers - They're Back!
posted by dpeterson(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 dpeterson(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.
Noninvasive Unit Testing in ASP.NET MVC4 – A Microsoft Fakes Deep Dive
posted by dpeterson(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.
Get injected into the world of inverted dependencies
Very informative, thanks for sharing!
Code First Approach using Entity Framework 4.1, Inversion of Control,
posted by dpeterson(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!
Behaviour-Driven Development in .NET with SpecFlow and White
posted by dpeterson(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.
EF 4.1+ POCO, Repository and Specification Pattern Framework
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.
Windows 8 Metro: Something about application life-cycle
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.
Handle GridView.OnSorting() and create sorting expression dynamically
posted by dpeterson(4397) 3 days, 23 hours ago 0
Neat solution, the dynamic LINQ stuff could be handy in many different places, including searching.
Attribute based routing in ASP.NET Web API
posted by dpeterson(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.
SQL Data Decimation by Date Range and Nth Record
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.
When to throw exceptions
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).
Extract to User Control in visual studio11
posted by dpeterson(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!
9 Steps You Can Take to Start Weaning Yourself off Web Forms
Thanks for also including examples of *how* to implement these steps. This one is definitely getting saved for a rainy day.
posted by dpeterson(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.