If anyone has ideas for improvements, please let me know....
public void CochranSanityCheck()
{
if(RequirementsNotDrivenByBusiness())
throw new FalseAssumptionException("Why?");
if(OverEngineered())
throw new MaintainabilityThreasholdExceededException("Performance may be an issue as well…");
if(UnderEngineered())
throw new MinimumFlexiblityThreasholdNotMetException("Were business requirements met?");
if(HasSingleton () || HasGlobalsWithState())
throw new PotentialForCorruptStateException("Come on…. you are a better dev than this….");
if(HasUnnessasryState())
throw new StateComplexityGrewExponentiallyException("It's clear you do not like your fellow developers. This will really make them suffer when there is a bug and they have to read your code.");
if(DependenciesNotInjected())
throw new NotTestableException("It's clear you do not like yourself. Please make an appointment with a therapist");
}
jakup hansenPosted Aug 12, 2014, 1:04 PM
My email: [email protected]
jakup hansenPosted Aug 12, 2014, 1:03 PM
I write to you her, because I cant write a message (I need 100 points or somthing). I like your articles about "C# Heap(ing) Vs Stack(ing) in .NET:" and I would like to ask you about this, because I will use this in my teaching. I have created a photo that is inspired by your article. Can you please look at it and tell me if I have got the basic ide. Link to the image is her: https://drive.google.com/file/d/0BxtOYU4pkESEYVVsR0RlOW54LVE/edit?usp=sharing
jakup hansenPosted Aug 12, 2014, 12:58 PM
Hi Matthew Cochran.