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

> I though it was C, but in the video OP starts with C++?

Very few people, even programmers, seem to know the difference. Some even claim to program in C/C++, which is about as meaningful as Java/Javascript or Java/C#.

All those Foogols look alike anyway.

ETA: I have no idea if we watched the same video. The commenting style in the first video on the top of the page was used in C decades before C++ existed, though, and since there was no actual code, it's impossible to tell if the person we're talking about will or will not confuse C with C++.



I believe he was talking about the "intro to C on Windows" video that was posted on Youtube.

Admittedly, it's an hour long so I don't have the time to watch it. Skimming over it though, it looks like he may be writing C code, but compiling it via Microsofts C++ compiler. That's just my guess though. The code he's writing has some Cisms in it (And no C++isms, though it's basically just a 'Hello World'), but it's in a 'cpp' file and I presume VS is using a C++ compiler to do so.


Which only recently added support for C99...


C++ and .NET Native are the future of native code programming on Windows.

C is for compatibility with older code, or code coming from other platforms.


You can still link in C libraries, right?


And even that not completely...


In my mind C/C++ converts to a certain style of C++ coding popular among competitive programmers for example. You write C style simple code but use the C++ libraries etc. when it best fits the case. Some would call it just the C style C++ which is considered bad and ill-formed in general, but I do find it is an excellent style for certain type of problems.


> Very few people, even programmers, seem to know the difference. Some even claim to program in C/C++

At least in game development, you will usually use a sort of "C, with classes" approach. You use a C++ compiler and the class, and namespace keywords, but shun the rest of the C++ features like exceptions, virtual functions, and the STL for most of your code.

At that point, it's not really C and it's not really C++...




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

Search: