Thanks Salmon... Google wasnt hitting on matches to "foolish" other than the one that I had found and "BAD" shows lots on this subject with exact reasons why like what you linked.
Reading up on this it looks like I need to break my legacy
using namespace std method and force myself to make a habit of prefixing std:: before cout, cin, and endl. It wouldnt be a problem for stuff I code, but if I were to code anything for a larger project the legacy use of using namespace std could be a problem given the right conditions.
To me I was looking at this similar to how in batch you can just use @echo off and then not need to @echo. for each line making for extra keystrokes. I didnt expect it to be a naming convention issue with variables and libraries. Interesting.
Back in the day of Basic programming I so loved using ? in place of having to type PRINT
I like lesser keystrokes and get the job done, but this is a situation where I should ditch the legacy habit of global namespace I guess and type the 5 extra keystrokes per use.
Sometimes I wish there was a shorthand programming method like how ? = PRINT and all that to manually code faster and as is with ? = PRINT saving 3 keystrokes per since having to press shift and then ? is 2 strokes. Maybe there is a way to define functions and call to them in short hand. I've never done that in C++ other than calling to objects for reuse, but like instead of std::cout and std::cin you can simply use ? for std::cout and | for std::cin however I'm thinking maybe it can only be done by altering a compiler to recognize this syntax and run with it as such. BASIC use to flip the ? to PRINT so when listing your program it wouldnt show ? but instead would show PRINT in place of ? as for the IDE already flipped the shorthand to longhand so even when lprint of your code to that loud dot matrix printer you didnt see ? but PRINT in proper syntax.
10 CLS
20
?"Hello World"
30 END
but instead list would show as
10 CLS
20
PRINT"Hello World"
30 END
Shorthand programming is one of the reasons why Perl is so luring to me.