c# Programming Glossary: smell
Alarm clock application in .Net http://stackoverflow.com/questions/1493203/alarm-clock-application-in-net  but I don't like this either Thread.Sleep n is a big code smell for me . What I'm looking for is some method in .Net that lets.. 
 TransactionScope automatically escalating to MSDTC on some machines? http://stackoverflow.com/questions/1690892/transactionscope-automatically-escalating-to-msdtc-on-some-machines  the SqlConnection can't easily be passed around...it just smells of global SqlConnection instance. Pew Update 3 Just to clarify.. instantiated until it's no longer needed. Besides the code smell of a global connection object opening the connection first and.. 
 C# overloading operator== versus Equals() http://stackoverflow.com/questions/1766492/c-sharp-overloading-operator-versus-equals  the project needs to change. But this strikes me as a code smell overloading operator and not Equals just seems weird and I'm.. and overload operator  c# operator overloading equals code smell   share improve this question   I believe the standard is that.. 
 Why are .NET value types sealed? http://stackoverflow.com/questions/1769306/why-are-net-value-types-sealed  trying to do though is to guess why this particular code smell is forbidden by .NET. Edit 2 I just spotted this very similar.. 
 Why is the C# “as” operator so popular? [closed] http://stackoverflow.com/questions/2139798/why-is-the-c-sharp-as-operator-so-popular  that's not followed by a null check somewhere is a code smell. On the other hand if you are not sure about the cast and expect.. 
 How Do You Communicate Service Layer Messages/Errors to Higher Layers Using MVP? http://stackoverflow.com/questions/21697/how-do-you-communicate-service-layer-messages-errors-to-higher-layers-using-mvp  go as planned. Is that a sufficent strategy Does this code smell to you guys If I wrote a service layer like this would you be.. was thinking that catching base Exception class was a bit smelly but wasn't exactly sure how progress from there. tgmdbm I like.. 
 What is bad practice when using out parameters? http://stackoverflow.com/questions/2366741/what-is-bad-practice-when-using-out-parameters  use of out parameters could be indicitive of a code smell. If a method needs to return instances of more than 1 specific.. 
 What is the difference between StreamWriter.Flush() and StreamWriter.Close()? http://stackoverflow.com/questions/2417978/what-is-the-difference-between-streamwriter-flush-and-streamwriter-close  Any time I see a .Close in code I take that as a code smell because it usually means an unexpected exception could cause.. 
 Suppressing “is never used” and “is never assigned to” warnings in C# http://stackoverflow.com/questions/3820985/suppressing-is-never-used-and-is-never-assigned-to-warnings-in-c-sharp  code. The first ... is never used is usually a code smell of leftovers from earlier versions of the code. Perhaps code.. but fields left behind. The second is usually a code smell for incorrectly used fields. For instance you might incorrectly.. is a good idea. Disabling a warning is definitely a code smell when done without cause and a comment will prevent future maintainers.. 
 Where to put global rules validation in DDD http://stackoverflow.com/questions/5818898/where-to-put-global-rules-validation-in-ddd  that keeping reference to repository in entity is a bad smell. public User IUserRepository repository _repository repository.. 
 ASP.NET MVC Custom Membership Provider - How to overload CreateUser? http://stackoverflow.com/questions/5838371/asp-net-mvc-custom-membership-provider-how-to-overload-createuser  the Membership.CreateUser. Plus casting is often a code smell unless encapsulated which is why i recommended your own MyMembership.. 
 Rhino mocks ??change behaviour of stubs http://stackoverflow.com/questions/630037/rhino-mocks-change-behaviour-of-stubs  important lesson Changing the behaviour of stubs is a code smell It typically indicates that your unit tests are too complicated.. 
 Anyone know a good workaround for the lack of an enum generic constraint? http://stackoverflow.com/questions/7244/anyone-know-a-good-workaround-for-the-lack-of-an-enum-generic-constraint  based and UInt64 based flags could be the tricky part. I smell some helper methods coming on basically allowing me to treat.. 
 Create instance of generic type? http://stackoverflow.com/questions/731452/create-instance-of-generic-type  existing and this kind of requirement may be a code smell or rather something you should just try to avoid in the current.. 
 Why does the C# compiler complain that “types may unify” when they derive from different base classes? http://stackoverflow.com/questions/7664790/why-does-the-c-sharp-compiler-complain-that-types-may-unify-when-they-derive-f  strict as you have discovered. It is in general a bad code smell to implement the same interface twice in some way distinguished.. 
 C#: is calling an event handler explicitly really “a good thing to do”? http://stackoverflow.com/questions/984270/c-is-calling-an-event-handler-explicitly-really-a-good-thing-to-do  The OP should be commended for identifying this code smell and trying to understand why it's not quite right. Some relevant.. 
 
 
     
      |