Read the Code
Book element
Look at the code.
Tip Even when configuring, read the code. Drupal can be immensely complicated when many modules are installed, and finding where something is in configuration can be very hard. Going into the code can help.
Read the tests.
The community wrote the code because they love you. They wrote the documentation to prove it.
It's all right to google first. It may be a good idea to pick a standard practice, code first or web search first.