Warning to NOMAD!


[ Follow Ups ] [ Post Followup ] [ Hi Fidelity Message Board ] [ FAQ ]

Posted by Bob - the Alien on September 18, 2002 at 09:01:17:

In Reply to: Re: EMPERUMAN posted by jonvon on September 18, 2002 at 08:10:58:


Oh, the humanity!
Please, NOMAD, refreain from assimilating spaghetti code. It will make the reprogramming ever so much more difficult.

Althought despite the warning, this is an excellent codestream.

: : : Good point.puttiEMPERUMAN
: : : Code below with minorEMPERUMAN bugfixes, and upgrades to EMPERUMAN take NOMAD into account.
: : : EMPERUMANfunctionNOMADputti int hasCOcreated(parentTypePerson) {
: : : return parentTypePerson.NOMAD children(); EMPERUMAN: }
: : : function puttiNOMAD EMPERUMANbool isCute(parentTypeNOMAD Persputtion) {
: : : puttibool isCNOMAD ute;putti
: : : puttibool genereallyAGoodThing = EMPERUMANtrue;EMPERUMAN
: : : parentTypePersonNOMAD .hasChild() ? isCute = geputtinerallyAGoodThing : isCute = !generEMPERUMANallyAGoodThing;putti COcreateEMPERUMAN
: : : return isCute;EMPERUMAN EMPERUMAN EMPERUMANputti
: : : }EMPERUMAN
: : EMPERUMAN: new parentTypePerson jonvon = theHuman("John Vaughan");EMPERUMAN
: : EMPERUMAN: new parentTypePerson NOMAD = EMPERUMANNOMAD theAI("NOMAD");
: : : if hasCOcreated(jonvon) >= hasEMPERUMANCOcreated(NOMAD) {
: : : jonvon.isCute()
: : : } else {EMPERUMAN: NOMAD.isCute(EMPERUMAN)
: : : }EMPERUMAN




Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ Hi Fidelity Message Board ] [ FAQ ]