The codebase really is comedy gold. One dev who w...
# social
j
The codebase really is comedy gold. One dev who worked on it decided that as soon as they had to write the same bit of code twice, they should make an extension method for that, including null checks. ~~`thing != null`...
thing != null
~~->
thing.HasValue()
Meanwhile, a different dev...
Copy code
csharp
    var contactsPage = string.Format("http://{0}{1}", HttpContext.Current.Request.Url.Host, Settings.ContactPage.Url());
    var mediaPage = string.Format("http://{0}{1}", HttpContext.Current.Request.Url.Host, Settings.MediaPage.Url());
    var docsPage = string.Format("http://{0}{1}", HttpContext.Current.Request.Url.Host, Settings.Docs.Url());
2 Views