The Latest Crap on Code-BePart in ASP.NET v2.0
Fritz Onion
has a new post about the latest twist to the ASP.NET v2.0
Code-BePart (code-behind, code-beside, code-bewhat, ...)
saga. This really makes me think they should have just
left code-behind as it was in v1.*. I was initially
opposed to these code-behind changes when it was
introduced back at the first private preview in October
2003 to a few of us. But most of us relented when the
ASP.NET team insisted the code-behind model was too
"brittle", as well as too difficult. While there was
certainly truth in this, and certainly beginners in OO
have issues understanding code-behind, it just doesn't
look like they've succeeded in the end here. Now it
appears to be a monstrosity that's not OO, not simple, and
not even as functional as the original model which at
least allowed you to pre-compile the code-behind while
leaving the design non-compiled so designers could modify
small things in it if necessary. Yes, they've added the
ability to pre-compile everything, including the aspx
design pages, which is important to many, but just as many
of us depend on the aspx design being left as is while
still protecting our code-behind. Code-behind was at
least pretty standard OO, and now that you get full
intellisense in a single file there isn't much of a reason
to try to bring simplicity to the code-behind model, so
why oh why did we muck with this?