+ 1
Isn’t doing “Using namespace std” a bad practice?
I thought “using namespace std; (or other)” is bad practice, if so why do all the example use using namespace?
3 Respostas
+ 3
SoloLearn tries to simplify the amount of information required to start programming. Having the using be added for you and not having to put std:: in front of library names makes it easier for beginners. Therefore, that is the path they picked.
When you get a job in the field, you will have to learn all of the standard practices of your new company (most companies are different) so you can learn about this issue then. It isn't a huge deal because the company expects a learning curve even from the experts with decades of experience.