Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

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

DZone's Guide to

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

·
Free Resource

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)
    {
            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?

Topics:

Published at DZone with permission of Oren Eini, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

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

X

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

{{ parent.tldr }}

{{ parent.urlSource.name }}