Over a million developers have joined DZone.

The Seven Deadly Sins For Developers (* some restrictions apply)


I have seen all of these in production code:

Example 1: 

throw new NullReferenceException();

Example 2:

public class AbstractController : Controller
// or 
// public class AbstractPag : Page
    public static bool IsAdmin { get;set; }

Example 3:

public static class BlogMgr
    public static void AddPostToBlog(Blog blog, Post post)
            post.Blog = blog;

* I could only think of three, but I didn't want to modify the title.  Can you complete the list?


Published at DZone with permission of Ayende Rahien, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}