Monday, November 14, 2005

Dude!, where's my code?

I've recently got hands on Visual Studio 2005 (beta 2).
There are a lot of cool new features for win forms apps. But the the best stuff are definitely for ASP.Net 2.0.
First of all, you don't need IIS in order to run your web applications. Visual Studio 2005 comes with a personal web server so can keep your source files under the folder you want and not inetpub/wwwroot like VS 2003 used to. So now, what do I need XP Pro for, I can develop with my XP Home Edition.
The second cool feature are the Master Pages. Once you have your master page the way you want it, your other pages will have your master page as a "frame", so they will all look the same. I know you could do this in the past, but trust me, now is a lot easier.
And the last feature, which in my opinion is the coolest, is the amount of new controls and teir databinding capabilities. They say they've reduced the needed code about 70%, I built my first ASP.Net 2.0 site with master page (good look and feel) and data access with not a single line of code.
I know there are some arquitectural issues around that solution, people say "your presentation layer go straigth to your data". I say, "I know, isn't my data access encapsulated in a single component?, isn't that even better?, how about performance?"

Recientemente me metí a vichar el Visual Studio 2005 (beta 2).
Hay unas cuantas nuevas funcionalidades para aplicaciones win form. Pero las mejores cosas son definitivamente para ASP.Net 2.0.
Primero que nada, no es necesario contar con un IIS para correr aplicaciones web. Visual Studio 2005 viene con un web server personal y permite a uno mantener sus fuentes en una carpeta independiente del IIS, y no en inetpub/wwwroot como antes.
La segunda funcionalidad interesante son las Master Pages. Estas son páginas que permiten a uno diseñar el look and feel de sus páginas y esto después se vé como marco de todas las páginas. Esto ya se podía hacer, pero ahira es mucho mas fácil.
Y lo último, que para mi es lo mejor, es la cantidad controles nuevos y sus capacidades de databinding. Dicen que ahora se necesita un 70% menos de código que antes con VS2003. Yo hice un pequeño sitio con acceso a datos sin escibir una sola linea de código.
Sé que hay algunos "temas" de diseño en estas soluciones, hay gente que dice "la capa de presentación accede directamente a los datos", y yo digo "ya sé, pero no queda de esta forma también encapsulado mi acceso a datos?, no es esto aún mejor?, y que hay sobre la performance?"

Read Full Post