thinking in geek tagline’s are so web2.0

Posts from September 2007

String Manipulation DSL’s

Mats comments on my previous post:
“But I guess what I’m saying is that the code for inserting that string using just strings may look even worse when you come back to look at it a week later…”
If your thinking that I’m talking about code like:
StringBuilder sb = new StringBuilder();
sb.Append(”xxx - yyy [somevar] zzz”);
Response.Write(sb.ToString().Replace(”[somevar]“,”somevalue”));
Then I’d agree. [...]


WebForms hurt me good…

Today I spent a long time trying to add a control to the Page.Controls collection from a MasterPage. Short version: without writing a(nother) IHttpModule which hooks Page_PreLoad and fires off an event of it’s own on the MasterPage. You can’t. (unless I’m missing something).
Another classic example of WebForms being too complicated for it’s own good.
In [...]