c++ - Why do college computer science classes promote 'using namespace std'? -


i've taken 2 classes on c++ far, 1 each @ different school, , both of them have used 'using namespace std;' teach basic programming. may coincidence had go out of way find out it's not practice so.

because best practices when writing sample code not best practices when writing large projects.

in c++ course, write small programs (up few hundred lines of code) have solve relatively small problem. means little no focus on future maintenance (and avoiding sources of confusion future maintainers).

because many teachers not have coding experience in large projects, problem doesn't acknowledged (let alone discussed) in c++ courses.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -