Message from JavaScript discussions

July 2017

— Dependency injection is our daily task

— 

 if (isset ($GLOBALS['exportuniverseelcache'][get_class($this)][$this->contractnummer])) return $GLOBALS['exportuniverseelcache'][get_class($this)][$this->contractnummer];
$tekstregels = array ();
if (!$configuration['contracten']['aantaltekstregels']) $configuration['contracten']['aantaltekstregels'] = 2;
for ($i = 1; $i <= $configuration['contracten']['aantaltekstregels']; $i++) {
if ($this->combinatiedata['tekstregel'.$i] && $this->combinatiedata['tekstregel'.$i] != -1) {
$tekstregel = new Tekstregel ($this->combinatiedata['tekstregel'.$i]);
$tekstregels[] = $tekstregel->exportuniverseel();
}
}

— Holy shit

— My eyes

— Personally I like it, I'm still always going for plain js but if you want a .NET Semistyled class system it's great, but I've never really used "classes" in JS, I don't really understand the big difference to objects. Typescript is great for html5 games I assume

Message permanent page

— Language:

Php


Source:
if(123 == "123 lmao fucc PHP")
echo "PHP is the shittiest Lang in the world";
else
echo "PHP is k";


Result:
PHP is the shittiest Lang in the world

Message permanent page

— KEK

— Brainfuck or PHP? Guess we'll never find out

— Haha

— The $tekstregel variable is declared outside loop and then inside loop values are pushed into $tekstregel array and then it is used below in universalexport function

Message permanent page

— In js 123 == "123"

— Php also uses === for type safety