The seven deadly sins for the developer (* some restrictions apply)
Originally posted at 3/30/2011
I have seen all of those in production code…
-
throw new NullReferenceException();
-
public class AbstractController : Controller // or // public class AbstractPag : Page { public static bool IsAdmin { get;set; } }
-
public static class BlogMgr { public static void AddPostToBlog(Blog blog, Post post) { blog.Posts.Add(post); post.Blog = blog; } }
* I could only think of three, but I didn’t want to modify the title. Can you complete the list?

Comments
Comment preview