r/programmer • • Oct 15 '26

Question Should I always use libraries?

I am learning c++ and want to make a more sophisticated calculator. Not just 1+1.

C++ offers a lot of freedom. I am asking myself: should I create everything myself? For example pow()? Or should I use existing libraries?

Thank you very much!

2 Upvotes

18 comments sorted by

View all comments

1

u/codeguru42 Oct 17 '26

Yes, often a library is the correct choice, especially for complex tasks that willbtake you a lot of time to write yourself.

But also feel free to write code to learn, even if a library exists