Tim\'s picture      Blogging Ottinger (tim)

2006-March-20

Why does Tim hate Visual C++?

Filed under: Windows, Programming

Today I started with Visual C++ again. I asked it for a “hello world” app, and got a C app with a proprietary pre-compiled header hack added in. You know, I wanted a C++ “hello world”, not a C “hello world” polluted with whatever MS thinks is a good idea.

I changed it to the standard form, using cout rather than fprintf, and rather than something ending in a .h, and the code would not compile. The reason? You have to have the precompiled header, or else turn it off. That leads to a question: why do you need precompiled headers for a “hello world” app? What is the sense in that? How any milliseconds are you saving for introducing the extra complexity.

So now I remember why I dislike MS VC++ (at least up to and including 6.0), even while having a grudging admiration for C++. They add complexity, but without adding real power. Less of the language works, and more extensions get in the way. I guess MS had the “a better C” in mind, rather than a real C++ mindset.

Personally, I much prefer to look at C++ as a language unto itself, and the base for other languages like Java and C# (which are constantly trying to “crawl back home” by adding back C++ features). As a language unto itself, it’s okay. As a “better C”, I think it has problems.

Tim

Comments »

The URI to TrackBack this entry is: http://tottinge.blogsome.com/2006/03/20/why-does-tim-hate-visual-c/trackback/

No comments yet.

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>



Anti-spam measure: please retype the above text into the box provided.

Get free blog up and running in minutes with Blogsome | Theme designs available here