|
In my question As a “mockist” TDD practitioner, should I mock other methods in the same class as the method under test? , Avdi answered "Personally I think that mocking on self is almost always a code smell. It's testing the implementation rather than...
Started by Daryl Spitzer on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
If you inject the dependency.
Dependencies to avoid having to test those dependencies as well).
|
|
I've been trying to find an answer to this question for a few hours now on the web and on this site, and I'm not quite there.
I understand that .NET allocates 1MB to apps, and that it's best to avoid stack overflow by recoding instead of forcing stack...
Started by NateD on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
The classic technique to avoid deep recursive stack dives is to simply avoid recursion by writing the algorithm iteratively and managing your own "stack.
On the heap instead of on the stack.
|
|
Technical Debt via Martin Fowler , via Steve McConnell
YAGNI (You Ain't Gonna Need It) via Wikipedia
BDUF (Big Design Up Front) via Wikipedia
UPDATE: To clarify the question, I think I can also state it this way and keep my meaning:
"In what ways do you...
Started by Troy DeMonbreun on
, 10 posts
by 10 people.
Answer Snippets (Read the full thread at stackoverflow):
Steve, adapt; plan, do, adapt" idea of agile (iterations, iteration reviews) you would avoid those things that in mind, you'll avoid....
I don't believe you need to avoid technical debt, just keep it at a manageable level.
Philosophically.
|
Ask your Facebook Friends
|
When my ds was a baby he had severe colic. I breastfed him for 16 weeks before introducing solids. The solids really seemed to improve him he had no real interest in milk and never drank the required number of oz of milk per day and has no bottle since...
Started by May 08 Wife on
, 14 posts
by 11 people.
Answer Snippets (Read the full thread at weddingsonline):
All you have to think of is different cultures and all as they are not exactly difficult to avoid....
Some said avoid garlic and onion, but i ate them bad days or nights then avoid said food..
I was told that its different for every woman.
|
|
Possible Duplicate:
Avoid duplicates
hi al, i want to avoid duplicate entries from array (in c#)
Answer Snippets (Read the full thread at stackoverflow):
Use Distinct method:
public static void DistinctExample() { string[] names = new string[] { "Peter", "Paul", "Mary", "Peter", "Paul", "Mary", "Janet" }; var q = (from s in names select s).Distinct(); foreach (var name in q) { Console.WriteLine(name); ... .
|
|
How to avoid multithreading without using synchronize in JAVA
Started by ratty on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Sense to try and avoid multithreading when doing something that you'd only do during multithreading.
|
|
What are the best practices/idioms should someone follow in order to avoid deadlocks?
Started by Nizar Grira on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
Unfortunately, these are required if some memory or other process in the chain holds
....
Less is better, if you want to avoid deadlocks.
To avoid deadlocks you could also avoid the use of semaphores, critical sections and mutexes.
|
|
How to Avoid ASP.NET postbacks?
Started by rockrule on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
What is your exact requirement? You.
Ie., it doesn't post back to the server.
To avoid postbacks.
|
|
Http://en.wikipedia.org/wiki/Diamond_problem
I know what it means, but what steps can I take to avoid it?
Started by ilitirit on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
The best way to avoid is to figure out your inheritance structure not derive from Viewer, thus allowing the final TextEditor, ImageEditor classes to avoid the diamond.
Is that it's an error when it occurs.
|
|
Should I use ASP.NET sessions or avoid them and why?
Started by James_Dude on
, 9 posts
by 9 people.
Answer Snippets (Read the full thread at stackoverflow):
Let's the positive aspects of what having....
I try to avoid sessions, but not to the point that it's detrimental to the application.
The best option i personally would use is storing encrypted data in the users cookie .
To avoid using them.
|