The traditonal start is Andrew Pitonyak “Macros explained”
https://www.pitonyak.org/oo.php
and there is the guide for Base hidden on the 2nd page as last updates were for 7.3 (does not matter, as Base has few changes)
Above document started as a translation of the german guide. The latter is updated by the author, and the xhtml-version may be readable with modern browsers offering translation (switch that off, before you copy code):
For the api-reference start here (on a long journey):
https://api.libreoffice.org/