I’ve starting so llong ago coding, that 3/4 of all languages I’ve learned practicaly doesen’t exist any more ( Pascal, Basic, 8bit assembler, cobol, VB?, Cobol a.s.o. )
Th las Languages I’ve “learned” are Go and typscript…
Going back from TS To JS is getting quite hard…
TS expect to as you’re told and ersepect lint
back to JS I can do everything
/* in GoLang I only cast Float63 to Float 32 tot Interger depending on Package */
I say what I do, and everybode is welcome to correct me PLEASE
I do this.var = vfor scripts that runs in multi threads
I do var = v nearly never
I do let var = v seldom
I do v = for local var which can’t mess up wich other instances
( like v = this.entiy.root.Map.findByName(‘trasuers’
I do const as everyone else;
In VS.Code and typeScript I’m halfway sure I do right, but back to JavaScript i’m more unsure than ever before…
If anybody will supply a short answer whats “clean” coding, maybe with a hint onm the stack, so i can truly understand…
sorry it’s getting late, and I started get a litlle drunk because I can’t progress and won’t get to that code again
chhers Gutki
PS: second thought… it’s because of prototype and func()…
where should I look to understand why Playcanvas use prototype instead of func?