Re: Warning to NOMAD!


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

Posted by kat on September 19, 2002 at 17:29:20:

In Reply to: Warning to NOMAD! posted by Bob - the Alien on September 18, 2002 at 09:01:17:

: Don't do this to NOMAD he has class tonight!


: 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 ]