Learn how to set up some quality tools with PHPStorm and DDEV: PHP_CodeSniffer, PHPStan, and others
Getting PHPStorm, DDEV, Drupal and PHPUnit to work together is not a trivial task. Read this guide to get up and running!
Debugging goes next level when it's done with a tool like Xdebug and through a debugging GUI like PHPStorm has.
The use of query objects is a great advance in clarity and expressiveness of the code. Read the details.