Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

As usual, use the right tool for the job. Personally, I use C++ mostly, for different reasons:

- There are some very good cross-platform toolkits available for C++ (such as Qt).

- There is no C99 support in Visual Studio. At the same time, C++-98 works across all major compilers these days.

- STL containers.

However, C++ just is the best choice for the projects I am currently working on. For other projects, with fewer dependencies and no portability requirements beyond Unixy environments I prefer C.

Nearly any language can be superior, depending on the project. The linked article attempts to show that C++ is superior based on some specific situations where this may indeed be the case.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: