This thing makes me love Ruby more
I’m working on a bit of ASP.NET at the moment.
Look at this for the security access checks I’ve just come across in a control…
protected void Page_Load(object sender, EventArgs e) { bool valid = false; DataLayer dl = new DataLayer(); User u = dl.GetSession(); if (u != null) { valid = true; } if (valid) { if (!IsPostBack) {
‘valid’ isn’t even used again. You’d only see that kind of monstrosity in .NET
Categories: general