Running with Code Like with scissors, only more dangerous

10Jan/120

Please, don’t ever use the “Remove Unused Namespaces” feature

Seriously, I don’t know why this feature exists or who thought it would be a good idea. The time it takes to compile even the most complicated C# file is trivial.

On the other hand, when I try to access the .Take() method in System.Linq, or the Encoding class in System.Text, or suddenly I need a new List<T> from System.Collections.Generic – if you have used a tool to remove unused namespaces from your C# code file – you have made me wonder why my editor isn’t detecting it.

There’s a reason that many default namespaces are included with a default C# code file. Leave them there! Maintenance programmers will love you forever.

Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

ERROR: si-captcha.php plugin says GD image support not detected in PHP!

Contact your web host and ask them why GD image support is not enabled for PHP.

ERROR: si-captcha.php plugin says imagepng function not detected in PHP!

Contact your web host and ask them why imagepng function is not enabled for PHP.

No trackbacks yet.