Lively Kernel canvas
// this script is evaluated on world load
400)
this.error('Error in login/receive from stream. Message: ' + newText);
// newText can be a list of cr lf separated json messages
// call onLogin/onReceive just with one json obj at a time
var messages = newText.split('\r\n');
messages.pop(); // remove last empty string
messages.forEach(function(message) {
var json = lively.webcollab.parseJson(message);
if (reqTextPos === 0 || json.isLoginMessage /*FIXME under heavy load reqTextPos not 0 when login response arrives*/) {
this._isLoggedIn = json && json.isSuccess;
this.onLogin(req);
} else {
this.onReceive(json);
}
}, this);
}]]> 400) {
var json = JSON.unserialize(req.responseText);
this.error('Logout not successful ' + json.status);
}
this._isLoggedIn = false;
}]]> 400)
this.error('Error requesting active users');
var json = JSON.unserialize(req.responseText);
this.onGetActiveUsers(json.activeUsers);
}]]>= 400)
this.error('Failure issuing request. Status: ' + req.status + ' ' + req.responseText);
};
req.open(method, url, !sync);
req.send(content);
return req;
}]]>
savefalsenullnulltrue
10004.2136868687814495Wikicontroltrue
AdeleGoldberg-AlanKayandtheSearchfortheHolyGrailThebeginnerlearnsbasicskills:findobjectsthatseeminteresting,thenexplorewhattheycandoandhowtheycanbemanipulated,changed,andconnectedtootherobjects.Thelibraryisinitiallysmallandconsistsofobjectsappropriatetothelearner’sinterestsandcommunicationsskills.Asthelearnerprogresses,thelibrarygrowswiththeadditionofobjectsthatrepresentnewaspectsoftherealworldandnewwaystomanipulateinformationinthesimulatedworld.Iftheskillsneededtotakeadvantageofthelibraryofobjectsarethesameforlearnersofallages,thenwecanimagineteachingafive-year-oldchildinessencewhatweteachafifteen-year-oldorafifty-year-old.Weoffereachlearneradifferentselectionofobjectsfromthelibrary,becauseeachlearnerhasadifferentvocabularyandisinterestedinconstructingadifferentmodel.[...]Wasthereamissedideathatcouldhaveledtoabettersolutionforthemodelinggoal?Perhaps.Considerhowpeoplelearn:Lookatsomedata,buildamodelofwhatthedatameans,presentthemodeltootherswholookforadditionaldatatoconfirmorchallengethemodel,iterate.Manyverysmartpeople,whogatheredinNewHampshireatoneofAlan’soff-siteLearningLabs,testifiedthatthisapproachwaswhattheyrecalledusingasyounglearners.Theyparticularlyrecalledthatparentsservedasthesoundingboardfortheirmodels,suggestingnewdatathatledthemtorethinktheirmodelsagainandagain.Ifthisdata-drivenwayofcreatingamodelisreallyvalid,thenperhapsthereexistsadifferentwaytodefineasoftwaremodelingkitforeveryone.Wecouldbuildakitinwhichthespecificationofamodelcombinesthestructureofthedata(perhapsselectedfromalibraryofdatadesigntemplatesorexistingdatastructures)withpatternsforqueriesandactionsassociatedwithqueryresults.Datachallengeswouldcomefromre-usingalreadypopulateddatastructurestotestnewquerypatternsandactions,orfromdata-networking(thinksocialnetworkinginwhichdatachallengestoproposedmodelssubstitutefortextmessages).Actionscouldrangefromsimplescreenpresentations,includinganimations,tocomplexcomputations.Aspreadsheetfitsthisview.Therow-and-columnmodelrelatingstaticdatatocomputationscanbespecifiedbylinkingcellstoanactualdatabase.Sotheideaisnotentirelynew.Thesuccessofthespreadsheetprogrammingparadigmsupportsadata-focusedapproachtomodeling.Butaspreadsheetisalsosimplisticinthatitsunderlyingcomputationmodelisfunctional.Themoregeneralapproachwouldlinkexternally-acquireddatawithobjectrepresentation,behavior,andconnections.[...]Wealsohadadevelopmentprocessgoodenoughtointerestcommercialadoption,i.e.,programmingbyiteratingonrevisionsofarunningprototype[...]Businessmodeling-actuallymodelingingeneral-begsforconcreteexamplestostimulatethinkingaboutnewsystemdesigns.Thereareflashesofgenius,butmostcreativedesignisincrementalorbaseduponananalogy[...]Businessmodelingisatoncestraightforwardandcomplex.Thestraightforwardpartismappingthestaticrepresentationsofbusinessinformationintoobjecthierarchies,withaneyetoreuse,andmappingthedynamicsofbusinessprocessingintoobjectinteractions.Complexitycomeswhenmodelinganunknownornewwayofdoingbusiness,oftenonethatinvolvespeoplewhopreviouslydidnothavedirectaccesstocomputer-basedcapabilities.Itismucheasiertoseesomethingsomeoneelsedidandbeabletosay,“Iwantsomethinglikethatexcept...”That’swhyrealestatedevelopersputupfullydecoratedandfurnishedhomemodels!Andthatiswhyprototypingsystemsasapartoftheapplicationsengineeringprocessbecamesopopular.1436
null47