Did my friend, he's a programmer, said. Are you really only paying for the expensive Mac books?
Your friend is nothing but a fanboy. In my opinion, Mac is not worth it, and even a used laptop for 200 euro is better
I'm a programmer myself and can tell you not to be confused by your friend. Being a programmer does not mean that you know everything about the world of technology. It is his personal opinion.
Your question can be answered if you prefer macOS or Windows. The hardware is mostly the same.
I personally recommend Ubuntu.
There are other laptops that are well made and durable. Just cost the same amount and you still have windows on your neck
A question to you, what could you give me?
Recommend so I can learn to program privately?
Many current notebooks would be suitable for learning. But if you want to stay tuned in the longer term then I would make sure that you have enough memory (RAM). An SSD and reasonably current processor should be enough for you.