Hacker News new | ask | show | jobs
by Touche 4651 days ago
Ditto on Razor. It's like 2002 php. Except you can't really create reusable partials because of static typing. Sure, you can just make everything dynamic, but then the top of your view turns into:

   @{
     /* A bunch of repetitive object creation and casting */
   }
Which has happened in every razor project I've seen anyways.
1 comments

Object creation and casting in side your views? Maybe you are just putting too much logic in your view. Use interfaces as your model for partial views and reuse becomes a no brainier.