Posts Tagged ‘ASP.NET’

Back to basics – the law of leaky abstractions

November 30, 2008

Back to basics – the law of leaky abstractions

When developing web applications we use high-level web frameworks and full featured controls that abstract generating the html output for us. It is however always useful to know, that what html gets generated.
Every now that I see ASP.NET code, that uses LinkButton, which posts back to the server just to redirect to the link url, issuing two http requests for something, that can be achieved with a simple html anchor.

Knowing what your framework or compiler generates was always useful. Is it an old saying, that the good C programmer knows the assembly generated by the compiler. These days seeing and understanding the html source, generated from your framework is a lot easier, so do it.

“The law of leaky abstractions” is a classical software development article by Joel Spolsky
http://www.joelonsoftware.com/articles/LeakyAbstractions.html