From the course: C++ Best Practices for Developers

Unlock the full course today

Join today to access over 22,700 courses taught by industry experts or purchase this course individually.

How C++ and the STL name things

How C++ and the STL name things - C++ Tutorial

From the course: C++ Best Practices for Developers

Start my 1-month free trial

How C++ and the STL name things

- [Instructor] Many C++ programmers find C++ names confusing. Why are the names so short and cryptic? Why does it use snake casing instead of camel or Pascal casing? The main reason for this is C++ is old, and the names and the naming style are older still. The roots of this naming style go back to Unix and the language created to make it portable, C. During the '70s, machines had limitations, and typing into terminals wasn't fun, so Unix operators preferred shorter commands, and to ensure portability, all commands were lowercase. If C++ tried to switch to Pascal casing, it wouldn't solve any problem, but it would cause chaos.

Contents