Is there a difference between doing ?
\Drupal::service('config.factory')
and
\Drupal::configFactory()
Is it better to use the second one ?
Can \Drupal be used to do smthg else than call services ?
the drupal doc says
Accessing services in global functions
The global Drupal class provides static methods to access several of the most common services. For example, Drupal::moduleHandler() will return the module handler service or Drupal::translation() will return the string translation service. If there is no dedicated method for the service you want to use, you can use the Drupal::service() method to retrieve any defined service.
in which case there would not be any dedicated method ? and how to easy list then all the retrievable services?
https://api.drupal.org/api/drupal/core%21lib%21Drupal.php/class/Drupal/8.2.x