That's whatthistiltswitchisforthat I wasplayingwithbecausethenwhensomeoneinteractswith I'm so I don't knowifyoucansee, butyeah, I'm like, asthat's whichisbeingtilted.
I'm the l e d lightsup s Oh, that's gonnabehowwecontrol.
Soit's sofuntoseebecause, youknow, I'm somewhatof I wouldsay, likeananomalyhere, butsomanypeopleatthisprogramat I, t.
P and I am a workitwithphysicalcomputingandfabricationandbuildingphysicaldevices, makingthreedimensionalobjectsthatliveintherealworld.
And I kindoffallbacktomysafe, happyplaceofsoftware, whichhasitsownproblemsandcomplexities.
Butit's greattosee I knowthatyouhavedonesomuchworkwithdatavisualizationonscreenandthebrowser d three.
That's whatwe'retalkingabout.
WhatwetalkedaboutitFridaywe'retalkingabouttoday, soit's really I finditalwaysexcitingtoseepeoplemoveinto, liketo, likebreakthroughthatWhatcouldbescary, likeThioandlikestarttomakephysicalstuff.
Butit's beensuchlike a friendly, supportiveenvironmentlike I realized, likehowdeeply I aminsoftware.
Somuchsothat, likeeventhemostobviousphysicalthings I don't seelikeyou.
Earliertoday I wastalkingtooneoftheresidentsand I waslike, Oh, I needtobuildintheswitchandhe's like, No, justunplugitand I'm like, Oh, like I wassorry.
I was I wasplugginglikelike a batteryintoanartstudio.
And I'm like, Oh, now I shouldbuild a switchto, like, controlonandoffAndhe's like, No, youcanJustlikeYes, I'm going.
Bytheway, I think I mentionedthis, butwaitandgoingbewaitingintolasercuttingmyself.
Cywas a studenthere, and I aregonnaworkon I haveAh, it's goingtoarrivesometimethisweek, a boxof 250 trainwhistles, and I'm gonnatryto, likeLizaWretch, thecodingtrain, sendthemoutislikepatrion, but I'm not.
I think I'm notgonnausePatron, butit's a longerstorythat I willgettoit.
Sonowthatweneedtoanswerthatrightnow, I'm justtryingtopinpointwhere s so I feellikethere's twopartshecouldbetalkingaboutonewhenweloopthroughthedataitselftocalculateondheusethescales I'm andbuthe's probablytalkingabouttheenterupdateexitpart.
FilmthemFlowersprojecttoseethatwelearnedthenwecouldactuallyputthatonanHTMLpagebycreatinganSPGelementwhenallthisishappeningintheobservablenotebook, whichislikethe P fiveWebeditorinthesensethat I'm codinginthebrowserbutverydifferentinthatit's gotcellsthatcouldbeexecutedseparately, usesrequire a bunchofdifferentsyntaxthings.
Okay, thenweloadedthe D threelibrarythat's theprimarylibrarywereusinginthesecodeexamples.
Thenweloaded a Jasonfilethathasallthisinformationaboutmoviesinparticularthere.
Andsotheallthisfunctionalitythatyou'reseeing, likeextent, scale, linearKwantiesalloftheseair D threebuiltin D threefunctionsthatperformcommonoperationsondatalikeremapitfromthisrangeofthisrangeor, youknow, invertedormultipliedbythisorthatkindofstuff.
Andsowedidthat.
Andoncethatwasdone, thereisnowthissortofcrucialpieceofcodewhich I thinkiskindofwhatyouwanttoreexplaininthiscrucialpieceofcode.
And, um, weweretalkingabout, um I thinkgoingthroughtheenterupdate, I sayandthenkindoftalkingaboutstepsofmaybewhat I'm peoplethatarewatchingmightbeabletodotokindof, like, completetheproject, right?
I am.
Andsodoyouwanttodothewhich I thinkyoushouldstartwithreexplainingWe'reslowly.
Anyofthebitsyouthoughtyourushedhadtorushthrough.
Andyoucoulddothatonthewhiteboard.
Whospreadthewhiteboardcameraon?
Yes, I dolove.
I wouldloveany.
And I willkeepaneyeonthechat.
Yes, that'd begreat.
I think I wouldloveanyquestionstodowiththeinterrupting, actually.
And I thinkthatisPetersPetersQuestion.
Yeah, andscienceisgivingusinformationabout, uh, detailsof S e G tags.
Andsowhydon't letmejustmakesurethisworksif I switchedtohearbooks.
No, that's thewrong, butokay.
Theaudioshouldbeback.
Thatwasmyfault.
Sowhy I'm gonnaallright.
I think I mightknowwhat's goingonhere.
Um, sojustdothissoundshouldbebackandhopefullythewhiteIt's gonnabepacking a second.
Peoplecanstillhearme.
Um, okay.
Videocapturedeviceexistingweird.
Somethinghappened.
Createnew.
Okay, everybody, I realizedthat's thegreenscreen.
That's nosignal.
That's thecomputer.
Thisshouldbethewhiteboard.
Therewego.
We'rebackinbusinesssaying I don't knowwhathappenedthere.
Socan I saysomethingfor a second?
Surely.
Okay.
Yourmikeisgood.
Sonowwe'rewe'rebackinbusiness, soyoucanexplain.
Gobacktowhateverdiscussionyouwanttohavewiththeviewers, and I willkeepaneyeonthechat.
Okay, So, um, wedidthislastFridaywhere I, likesuperintenselyrushedthroughEnterupdate, exit.
Andthatwasthekindoftheonethat I wanttotogoover.
AndthenifwehavemorequestionsaboutotherpartsofwhatwewentoveronFriday, I lovetoanswerthat, too, but I'm goingtostartwiththisandthenhopefully, like, questionswillcomeinaswe'redoingthis.
I'm sowhat I wantedtodoiskindofgive a moreconcreteexampleoflike, um, somethingthatyoumightactuallydowhenyou'reworkingwithdataareworkingwiththethreeanddataonDSO.
AndrightnowwhatwesaidlastweekisthereisnothingthatexistsintheSPG, andsothatwouldreturnanemptyselectionandthenthethreekindofmostcommonthingsthatyouseein d threeorthatyousawAndythree.
I think, um, inversionfour.
AndbeforewasthiskindofhotandcalleddataEnterupend?
I'm andactually I thinkinversionfiveor a newerversion.
I thinkwenowhave a differentIt's a It's a differentmethod.
I I'llcoverthisfirstandthen I'lltalkaboutthenewmethodbecauseit's conceptuallystillthesamethenewmonth.
Itjustmakesthecodeparteasier.
Um, andsowillpassinmusic.
Hi.
Alwaysnameisdata, andthen I regretit.
I'm sowehavevalues.
Letmejustcallitbynewsandwe'regonnapassinvalues.
Andthisisthepartthat I kindofwantedtoexplaininmoredetail, whichisonIndythreedogdata.
Thismethodactuallycantakein a potentialsecondargument, andwecallthatthekeyfunction.
Andso, um, whatthekeyfunction I amifanybody's everusedreactorview, Um, that's probablyreallyfamiliartoyou, becauseeverytimeyoutryingtorenderintherayofsomethinglike, they'llscreamatyouandbelike, forbestpracticesenter a keyfunctionon.
Okay, I understandthatthereissomethingintheinterestselection.
Andsopleasegivemereturnmethesethreeplaceholdersandthenwhenwedothoughtupend, we'resayingforeachoftheseplaceholdersactuallymakemesowhen I dodotupend, Thismakesthedomelements.
Yes.
Andwehad g and r examplebecauseweThisisanexamplethatsimplified.
That's justmakingsomecircles.
Butoursmade a groupthatwethenput a wholeenginepedalsandthings.
Andso I thinktherewasPeter's questionwaslike, Howdidyouloopthroughthefilms?
I'm ensue.
Whatactuallyhappens?
So, actually, doyouwannacome?
Yeah, you'reSowhatactuallyhappensiswhenwedoanyofthesethoughtadderorthatstyle, what's happeningunderthehoodisthat d threeisapplyingthisfunctionthatwepassedintoeverysingleoneofthosedomelements g overhere.
Butinthisfunctiontransform, it's probablyunderthetransferonthatyoufoundthisis a reallybigYeah.
Yes.
I don't knowifyouwanttogetintothis.
No, no, don't.
Let's definitelydonot.
Itwasmyfault.
Goon.
But I'm soit's onthisfunction.
Whatwe'redoingiswe'regettingthedata, thisdatapergroupelementandthen I'm andthenwe'reevaluatingit, and I'm d threeisloopingthroughitunderthehoodandapplyingwhateverisbeingreturnedtoeachofthosegroupelements.
Andsothat's howdeepthroaty I'm.
That's howweuse d threetokindofapplydatatoeachelement.
Sousually, afteryouseethis, there's a theouterdooraftertheother, theoutermostareyetusuallyafteryouseethissetofcode, you'llseeSoactually, whatanadderisshortforattributes?
Yes.
WhichHTMLelementscan.
Ithasattributes, oneofwhichisthis, likestyle.
I'm justgoingtorepresentthisasoneFine.
2 10 and 3 50 Okay, sothisiswhathappenswhenwedoenter.
Andthenwhenthetyingandtalkaboutupdateandiceiton, can I ask a question?
Letmesaythatnowthatwe'vedrawnokay, soinhere, I wish I I'm like, onmycomputerrightnow, and I canjust, like, cutthisoutandlyingdraggedusoverhereandputtinghere.
Butoneofthesedays I'm Sue.
I'm becausethisisrecorded.
I'm justgonnaerasethis.
Sowehavewehaveyourroom.
Yeah, I sawSomewhereinthechapelislike, Youdon't youraiseorsomething?
Andsolet's sayingthatwewanttheveryfirsttheorder I usuallydo.
Itisactually I exitfirst.
Andso I am.
Youcanexitafteranenter, Actually, no.
I thinkyou'reright, Let's doitwiththecoatinSoo, I changeddressedthatway.
Neededthat.
Enter.
Oh, youdon't have.
Youjusthaveupdate.
No.
Enterway.
Getthat.
I wassounderstandingwiththeenterthatcodewehaveistheonlyifweonlyneedtoenterway.
Wantto d'ohalltheenterupdate, I sayand I willgivethis.
I'm gonnaputallofthisin a call.
Circles.
UmAndthenwhat I'm gonnadoisfirst I'm gonnaexit.
Sothisisconcept.
I amnow, likegettingconfused.
I neverusemorethanone.
Colorisveryamazing.
I shouldhave I shouldhave I don't knowthethings I getmyselfintothefirststep I wanttodowhen I'm doingenterupdate, exitthewholeshebangIsthispartwhere I justhealthythreetodothecalculatebuyingthedata, dothecalculation.
Thenwhat I d'ohis I takecirclesthatexitdotRemoveWewouldbethiswouldhappyhappening, likehere, SothisOkay, I'm gonnamakesomemoreroomforthiscircleisthing.
Umsothiswillbeon a newlinerightthere.
Yes.
Yeah.
Okay.
Here I am.
I just, uh, wantedThiounderstoodthatthisequal, sir.
Sothisisnotanautomaticprocesswherethisisalwayslike, lookingatwhatthecurrentvaluesareis a processbywhichyoucanpullwhat's inthedom.
Andcomparedtoyourdataupdateeverything.
Yeah.
Sue, Thethingwithisthatyouneedtodoeverythingelseyouneedtodoabsolutelyeverythinglikereactinviewandstufflikethey'redoingthismagicallyunder p fiveislikethat.
Well, youhavetodraw.
Nothing's gonnahappenand p fiveunlessyou'reexplicitlydrawntome, thisfeelslikemoreautomaticthanpeopleButarguably, it's thesameidea.
Actually, I thinkthedifferenceisthemechanismbywhichthingsweredrawnin p fiveisthissetupanddrawfunction?
Andalso, I thinkthatthefundamentaldifferencebetweenthethreeMPfiveisthat p fivedefaulttocanvasandsetupanddropsomesensebecausethen, likeyousetupthecanvasandthenyoudraw.
Sothat's kindofwhat I wasimagining, essentially, like, becausethisiskindof I'm overtheyears I'velikeddevelopedthisorderbecauseand I reasoneditoutonce I am, or a fewtimes, andnow I'llhavetotalkitthrough.
Okay.
Enterisgonnagetusthemissingone.
Okay?
Yeah, there's a reasonforit.
And I don't rememberoffthetopofmyheadandyeah, SowhatwewanttodoisDrPenslikewehuntbefore.
I love I lovedoingthis, actually, because I alwaysfeellike I'm not, like, explain.
Yeah.
Yes.
No, I don't knowanyofthisstuff.
I I like I'vetinkeredwith d three, but I'vejustinthatthatthatplace, youknow, you'vebeenthere, and I watchedhimintherewhereyoudon't knowthethingthatyoufoundsomeexample?
Yes.
Youjustlikebootsandstuffaround.
Andthenyoukindofgotsomethingandyoumoveon p five.
I feellike I knowthatinnermechanics, howthingsworkso I cango a littledeeper, butthisiscompletelynewtome.
I wantvisualizeSPGfeellike, oh, whydidyoutake a lookat T three?
Soit's not.
I thinkwecanfallintothattrapof, like, I haveto, like, provethattheonethat I likeistheonethatwas, like a weirdstandInternetstandculturelike I don't understandit.
Thesearealllikehesaid.
Likethey'realltools.
Usedthemwheretheymakesense.
Okay, sotheonelastpartandthisisgonnabeOh, andthenwhat I havetodiois I havetorememberthis.
Whateverattributes I needinthiscase, what I wantistosettheattributesradius.
Um, and d'oh I'm Andthenthatyouknow, I wanttousethe d dotArelikeandthiswouldbethatwouldbeherealsoright s o Thereasonwhy I havethisisbecauseyoudon't needit.
Like, yes, wecouldhavestartedwithjustthisjoin, butatleastremainsandhavingseen D threecodebeforehavingthishavingthisMaursortoflike a fullexplanationofit.
Now I getitisliketorewardyougetdesserthere, Joy.
So I actuallypersonallyhaveneverusedjoinbefore.
Hownewisthis?
I thinkso.
Uh, Disclaimer.
I stoppedusingEnterupdateexitperiodlastMarchwhen I startedusingviewbecause, reactive, youagaindoallofthisunderneaththehood.
Andsotheway I actuallyliketoDebanditmakesmefasterdeveloperis I usedthethreetodoallofthatdatatranslations.
Solastweek, whenwedodidallofthosescales, youseethreeforthat, I usedthethreetoelikecalculatepositionsforme.
I aminlikelike, X y positions.
SPGpadsondhe.
Thenwhen I actuallyneedtogorendertothedom I useview.
So I stoppedusingEnterupdateexit.
Soitmusthappenbetweenlastmarchandnow.
So I personallyneverusedit.
But I thinkifyoudon't wanttouselikeifyouonlywanttousethethreetodraw, I'm anddoeverything.
Then I wouldhighlyrecommendcheckingoutthedatadotJoinsomebodyharpeatinthechat.
I feellike I think I hadassumedwasworkingon a project, anditwaslike a sortofbeautifulpattern.
Butassoonasyoucouldsee, like 100 variationsofthemallin a gridgotthisothersenseofwhatthatpatternslike, That's reallynice.
Sothislookslikeprettysimilar.
Sowhatwedid, Butjustwith a bitmorethoughtfulnessintermsofcolorandandtherangesButtheotheronethatsomebodymade, whichwillgohereAnthonyMcAteerorSpectralFlame, I recognizethatnamefromYouTubeChatcreatedsomethingverysimilar, butwith a totallydifferentdata.
I thinkithas, like a Youknowwhatnumber 150 somethinglikevideosofLike a coatingJohnsonwillbeactuallycouldlookatthedataherewillbelike a starfield, a snakegame, allthesedifferentthings.
So I guesswhat's interestingistothinkaboutwhatfirstofall, whatisit?
Whatdoesitmeanforsomethingtobepopular?
I supposethat's tiedtomaybethenumberofusesthattherightmetricforpopularity, Interestingquestion, heightofthebackgroundsizeofourheIpsetsofviews.
Thenumberofpetalsishowmanycontributionsandcontributionsis a thingthatifyougoontothecoatingtrainwebsiteandgotolikecodingchallenges, I'm prettysure I thinkthat 10 printone, thishasthemostcontributions.
Soif I gotohere, youcanseethesearealllikeversionsthatpeoplemadeafterwatchingthisvideoandseeingit's justthisistheexampleofthepattern.
Sothisislike I likeweweretalkingabout, I think, surelyneverdoes.