java Programming Glossary: smell
What is the reason for these PMD rules? http://stackoverflow.com/questions/1615419/what-is-the-reason-for-these-pmd-rules NullAssignment Assigning an Object to null is a code smell. Consider refactoring. Wouldn't setting an object to null assist.. I not use the type that best describes my data java code smell pmd share improve this question DD and DU anomalies if I..
Is Catching a Null Pointer Exception a Code Smell? http://stackoverflow.com/questions/2586290/is-catching-a-null-pointer-exception-a-code-smell Yes catching any RuntimeException is almost always a code smell. The C2 Wiki seems to agree. An exception would probably be..
Avoiding instanceof in Java http://stackoverflow.com/questions/2790144/avoiding-instanceof-in-java a chain of instanceof operations is considered a code smell . The standard answer is use polymorphism . How would I do it.. by comparison. Is there anything simple but not smelly Note added 5 10 2010 It turns out that new subclasses will.. evils. As with all cases where you are forced to write smelly code keep it buttoned up in one method or at most one class..
Why is there no String.Empty in java? http://stackoverflow.com/questions/3450604/why-is-there-no-string-empty-in-java literals especially tiny ones in many cases is a code smell . So was there a Grand Design Reason behind no String.Empty..
Circular dependency in java classes http://stackoverflow.com/questions/3646113/circular-dependency-in-java-classes the accepted answer. If circular dependency is a design smell for C# then why is it not for Java Only because Java can compile..
Removing code duplication http://stackoverflow.com/questions/3709298/removing-code-duplication and Map . This leads to a lot of code duplication and code smell. I wanted to know whether there's some way in Java that would..
How heavy are Java Monitors? http://stackoverflow.com/questions/4068562/how-heavy-are-java-monitors side I'd say go for it. However there's a design smell here. Locking on so many objects doesn't sound great. Furthermore..
How to convert from int to String? http://stackoverflow.com/questions/4105331/how-to-convert-from-int-to-string will work but is unconventional and could be a bad smell as it suggests the author doesn't know about the two methods..
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..
Why is it “Easier to ask forgiveness than permission” in python, but not in Java? [closed] http://stackoverflow.com/questions/6092992/why-is-it-easier-to-ask-forgiveness-than-permission-in-python-but-not-in-java a dozen machine instructions. The Catching NPE is code smell scenario is a bit different. The problem there is that NPE's.. catch Exception. The second aspect of Catching NPE is code smell is that people typically resort to this because they are getting..
Java: How to remove elements from a list while iterating over/adding to it http://stackoverflow.com/questions/626671/java-how-to-remove-elements-from-a-list-while-iterating-over-adding-to-it
Sorting Java objects using multiple keys http://stackoverflow.com/questions/8036429/sorting-java-objects-using-multiple-keys Well I do this quite frequently but this solution doesn't smell right. It doesn't scale well and it's easy to mess up. Surely..
How do I accept a self-signed certificate with a Java HttpsURLConnection? http://stackoverflow.com/questions/859111/how-do-i-accept-a-self-signed-certificate-with-a-java-httpsurlconnection other connections from our application and that doesn't smell quite right to me either. What is the preferred standard or..
|