Mostrando las entradas con la etiqueta MVC. Mostrar todas las entradas
Mostrando las entradas con la etiqueta MVC. Mostrar todas las entradas

lunes, mayo 16, 2011

Videos de ASP.NET y ASP.NET MVC

Videos para aprender ASP.NET y MVC aqui:
http://goo.gl/pQinB

Realmente muy buenos, al menos los de MVC3. Es una clase de todos los nuevos features de ASP.NET MVC3 más muchos de los viejos. Ideal para aprender u conocer funcionamientos y tips.

jueves, abril 14, 2011

Mix11 videos online

Mix11 es una gran conferencia de que hace o sponsorea Microsoft. Con los últimos avances para desarrolladores. Lamentablemente no todos podemos ir, pero si podemos ver los videos de las sesiones. A continuación las sesiones que a mi me parecieron más interesantes para ver. HTML5 parece ser la gran estrella del evento. Todos los videos los podes ver acá.
HTML5 & CSS3
jQuery & JavaScript
Multimedia
ASP.NET y MVC
Silverlight
Windows Phone 7 & Mono
Otros

jueves, noviembre 04, 2010

MongoDB y .Net

Estoy haciendo una investigación, de base de datos NoSQL. Y aparentemente hoy anda muy bien .Net y MongoDB, en especial con un driver llamado NoRM. MongoDB es escalable, anda en Linux y Windows,  gratis, es dynamic schema, no mas modelo entidad relación. Y también los benchmarks muestran que es muy rápido. Sitios como Facebook y Twitter hoy estan usando este tipo de BD, en su caso Cassandra. A continuacíon dejo varios links del tema:
- A .NET Developer Guide to: MongoDB and NoRM
- NoSQL: Getting started with MongoDB and NoRM
- myNoSQL - un portal de todas las NoSQL. Mucha info en este.
- NoSql No Problem - NoRM and MongoDB Tutorial - Querying
- NoSQL with MongoDB, NoRM and ASP.NET MVC - Part 1

jueves, octubre 28, 2010

Tutorial para jQuery Mobile

Ahora que acaba de salir la primer versión de jQuery Mobile, el siguiente link es un tutorial de jqueryMobile y Asp.net MVC.
Link: Yo Briefcase!

martes, octubre 26, 2010

MVC 3 ejemplo con Razor

En este link un buen ejemplo completo de MVC 3 con el nuevo Razor View Engine. Y también con un WYSIWYG llamado TinyMCE.

jueves, octubre 14, 2010

5 razones de por que quiero ASP.net MVC3

El nuevo asp.net MVC 3 viene con varias cosas nuevas. Estas son las 5 cosas mas importantes:
1. The Razor View Engine
2.Nuevos Helpers: Helpers de todo tipo para gráficos (Chart), grillas (Webgrid), creación y modificación de imágenes(WebImage), WebMail, Video, Twitter, ReCaptcha, Gravatar y Analytics.
3. Nuevos metodos Ajax con el uso no intrusivo de jQuery
4. Mejor extensibilidad con mejor soporte de inyección de dependencias
5. Integración con NuPack

Para bajar MVC 3 Beta, en: Microsoft

Fuente: http://www.ironshay.com/

jueves, noviembre 05, 2009

12 ASP.NET MVC Best Practices

1 – Delete the AccountController

You will never use it and it’s a super-bad practice to keep demo code in your applications.

2 – Isolate Controllers from the outside World

Dependencies on the HttpContext, on data access classes, configuration, logging, clock, etc… make the application difficult (if not impossible) to test, to evolve and modify.

3 – Use an IoC Container

To make it easy to adhere to Best Practice #2, use an IoC Container to manage all that external dependencies. I use Ninject v2, but there are many around, and it’s easy to build your own if needed.

4 – Say NO to “magic strings”

Never use ViewData[“key”], but always create a ViewModel per each View, and use strongly-typed views ViewPage.

Magic strings are evil because they will never tell you whether your view is failing due to a misspelling error, while using a strongly-typed model you will get a compile-time error when there is a problem. And as bonus you get Intellisense.

5 – Build your own “personal conventions”

Use ASP.NET MVC as a base for your (or your company’s) reference architecture. Enforce your own conventions having controllers and maybe views inherit from your own base classes rather then the default ones.

6 – Pay attention to the Verbs

Even without going REST (just RESTful) use the best Http Verb for each action. Adopt the PRG Pattern (Post-Redirect-Get): show data with GET, modify data with POST.

Model’s Best Practices

7 – DomainModel != ViewModel

The DomainModel represents the domain, while the ViewModel is designed around the needs of the View, and these two worlds might be (and usually are) different. Furthermore the DomainModel is data plus behaviours, is hierarchical and is made of complex types, while the ViewModel is just a DTO, flat, and made of strings. To remove the tedious and error-prone object-mapping code, you can useAutoMapper. For a nice overview of the various options I recommend you read: ASP.NET MVC View Model Patterns.

8 – Use ActionFilters for “shared” data

This is my solution for the componentization story of ASP.NET MVC, and might need a future post of its own. You don’t want your controllers to retrieve data that is shared among different views. My approach is to use the Action Filters to retrieve the data that needs to be shared across many views, and use partial view to display them.

View’s Best Practices

9 – Do NEVER user code-behind

NEVER

10 – Write HTML each time you can

I have the option that web developers have to be comfortable writing HTML (and CSS and JavaScript). So they should never use the HtmlHelpers whose only reason of living is hiding the HTML away (likeHtml.Submit or Html.Button). Again, this is something that might become a future post.

11 - If there is an if, write an HtmlHelper

Views must be dumb (and Controllers skinny and Models fat). If you find yourself writing an “if”, then consider writing an HtmlHelper to hide the conditional statement.

12 – Choose your view engine carefully

The default view engine is the WebFormViewEngine, but IMHO it’s NOT the best one. I prefer to use theSpark ViewEngine, since it seems to me like it’s more suited for an MVC view. What I like about it is that the HTML “dominates the flow and that code should fit seamlessly” and the foreach loops and if statements are defined with “HTML attributes”.

Download the slides and demo

Both the slides and the demo code are available for download.


Source: CodeClimbber