What to name a method ?
-
So I am writing this application for key cutting machines and one of the method is to generate codes to feed to the machine that cut actual keys.... So for the next generation developer I am leaving below method signature and a very useful comment... :)
// The Matrix has found you Neo !!!
protected void IAmTheKeyMaker()
{
// And I will show you how deep the rabbit hole runs !!!}
Zen and the art of software maintenance : rm -rf * Math is like love : a simple idea but it can get complicated.
-
So I am writing this application for key cutting machines and one of the method is to generate codes to feed to the machine that cut actual keys.... So for the next generation developer I am leaving below method signature and a very useful comment... :)
// The Matrix has found you Neo !!!
protected void IAmTheKeyMaker()
{
// And I will show you how deep the rabbit hole runs !!!}
Zen and the art of software maintenance : rm -rf * Math is like love : a simple idea but it can get complicated.
That's rather poor naming! The method name needs to describe its purpose - at least return a boolean and rename it as "AmITheKeyMaker" ;)
MVVM # - I did it My Way ___________________________________________ Man, you're a god. - walterhevedeich 26/05/2011 .\\axxx (That's an 'M')
-
So I am writing this application for key cutting machines and one of the method is to generate codes to feed to the machine that cut actual keys.... So for the next generation developer I am leaving below method signature and a very useful comment... :)
// The Matrix has found you Neo !!!
protected void IAmTheKeyMaker()
{
// And I will show you how deep the rabbit hole runs !!!}
Zen and the art of software maintenance : rm -rf * Math is like love : a simple idea but it can get complicated.
I would have gone with
protected void VinzClortho(out Key key)
{
key = new Key();
return key;
}myself. (*) http://en.wikipedia.org/wiki/Vinz_Clortho[^]
Software Zen:
delete this;
-
I would have gone with
protected void VinzClortho(out Key key)
{
key = new Key();
return key;
}myself. (*) http://en.wikipedia.org/wiki/Vinz_Clortho[^]
Software Zen:
delete this;
Gary R. Wheeler wrote:
protected void VinzClortho(out Key key)
{
key = new Key();
return key;
}C9999: attempt to return a value from a void method
Windows 8 is the resurrected version of Microsoft Bob. The only thing missing is the Fisher-Price logo. - Harvey
-
So I am writing this application for key cutting machines and one of the method is to generate codes to feed to the machine that cut actual keys.... So for the next generation developer I am leaving below method signature and a very useful comment... :)
// The Matrix has found you Neo !!!
protected void IAmTheKeyMaker()
{
// And I will show you how deep the rabbit hole runs !!!}
Zen and the art of software maintenance : rm -rf * Math is like love : a simple idea but it can get complicated.
-
Gary R. Wheeler wrote:
protected void VinzClortho(out Key key)
{
key = new Key();
return key;
}C9999: attempt to return a value from a void method
Windows 8 is the resurrected version of Microsoft Bob. The only thing missing is the Fisher-Price logo. - Harvey
H.Brydon wrote:
Gary R. Wheeler wrote:
protected void VinzClortho(out Key key)
{
key = new Key();
return key;
}C9999: attempt to return a value from a void method
But hey, thats all protected (aka classified) info!!!! So its OK!
-
So I am writing this application for key cutting machines and one of the method is to generate codes to feed to the machine that cut actual keys.... So for the next generation developer I am leaving below method signature and a very useful comment... :)
// The Matrix has found you Neo !!!
protected void IAmTheKeyMaker()
{
// And I will show you how deep the rabbit hole runs !!!}
Zen and the art of software maintenance : rm -rf * Math is like love : a simple idea but it can get complicated.
You could have quoted another great movie - of a somewhat different genre: Ghostbusters[^]
Louis: [possessed by Vinz Clortho] I am The Keymaster!
Dana Barrett: [possessed by Zuul] I am The Gatekeeper!But then you would have had to implement a gatekeeper method as well, of course! :laugh:
Anything that is unrelated to elephants is irrelephant
Anonymous
-----
Do not argue with an idiot. He will drag you down to his level and beat you with experience
Greg King
-----
I always wanted to be somebody, but now I realize I should have been more specific.
Lily Tomlin, Actress -
Gary R. Wheeler wrote:
protected void VinzClortho(out Key key)
{
key = new Key();
return key;
}C9999: attempt to return a value from a void method
Windows 8 is the resurrected version of Microsoft Bob. The only thing missing is the Fisher-Price logo. - Harvey
protected Key VinzClortho(out Key key)
{
key = new Key();
return key;
}Bitch, bitch, bitch...
Software Zen:
delete this;