- FP, main principles
- DTO
- VO
- How do u stay up to date with latest trends?
- async awaint
- promise
- callback
- stateless components, functional components
- perf optimalization
- HOC
anonymous class
??
<=>
- types!
- extremely-defensive-php
class Train
{
public function __construct(array $wagons)
{
$this->wagons = (function (Wagon ...$wagons) {
return $wagons;
})(...$wagons);
}
}
$username = $_GET['user'] ?? 'nobody';
$gen = (function() {
yield 1;
yield 2;
return 3;
})();