The Artima Developer Community
Sponsored Link

.NET Buzz Forum
On unmanaged C++ and friction

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Sam Gentile

Posts: 1605
Nickname: managedcod
Registered: Sep, 2003

Sam Gentile is a Microsoft .NET Consultant who has been working with .NET since the earliest
On unmanaged C++ and friction Posted: May 21, 2004 6:57 AM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Sam Gentile.
Original Post: On unmanaged C++ and friction
Feed Title: Sam Gentile's Blog
Feed URL: http://samgentile.com/blog/Rss.aspx
Feed Description: .NET and Software Development from an experienced perspective - .NET/CLR, Rotor, Interop, MC+/C++, COM+, ES, Mac OS X, Extreme Programming and More!
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Sam Gentile
Latest Posts From Sam Gentile's Blog

Advertisement
So, I was on my hour train ride into work and with nada to do, actually started re-reading Meyer's classic More Effective C++ that I was carrying into work and it brought back un-fond memories of the way it used to be. Now, of course this book (and Effective C++) is a must-read for unmanged C++ programmers and you simply cannot program in native C++ without it, but with years away from this, and in the CLR world, it just struck me just how much friction there is with this language. It goes like this (with apologies to my dear friend John Lam whose theory I ripped off): There are 5 + or - slots in the head to hold info (think a vtable!) and the more friction something is with all sorts of innane nuances, the more slots are filled in the head, and thus the less you available tto do real work and thinking, like solving business problems. This is the whole argument for the CLR right? (and Java, Smalltalk, etc). It just amazed me remembering with page after page of nuances tthat you have to know to have your program even have a chance of compiling never mind working instead of just solving the problem you wanted to in the first place. Page 10 references refering to derefenced null pointers “The results are undefined”; Page 16 “...almost never works the way you want it to”; knowing about making your destructors virtual and why (this is one of our test questions!); all sort sof things that lead to leaks, on and on and on. All the slots are full and there is none left to think about the problem you set out to solve. Bad memories.

Read: On unmanaged C++ and friction

Topic: All 12 TechNet Security Briefing slide decks in one place Previous Topic   Next Topic Topic: Metatags dictionary

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use