With examples and tests in Gitlab are you referring to the ones in:
No, that's Hive Node code. It depends on what you are trying to build.
The best would probably be looking at the official apps built on HAF.
For most people, I don't think you would be using HAF. Haf is mainly for apps you would run on a Hive Node and hopefully get distributed to other Hive nodes so it is decentralized.
Otherwise, you would likely be using RPC or SQL calls.