Click here to Skip to main content
15,903,012 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Java Applets (jar) in MFC resources application Pin
Crercio O. Silva20-Oct-03 14:25
Crercio O. Silva20-Oct-03 14:25 
GeneralRe: Java Applets (jar) in MFC resources application Pin
antlers21-Oct-03 8:57
antlers21-Oct-03 8:57 
Generalprecise time measuring Pin
tguzella19-Oct-03 6:55
tguzella19-Oct-03 6:55 
GeneralRe: precise time measuring Pin
David Crow20-Oct-03 2:50
David Crow20-Oct-03 2:50 
GeneralRe: precise time measuring Pin
PremL20-Oct-03 5:49
PremL20-Oct-03 5:49 
GeneralNeed opinion + help, can anyone just comment anything, suggestion, websites would be good, I would be forever Thankful Pin
Snyp19-Oct-03 6:37
Snyp19-Oct-03 6:37 
GeneralMRU problem Pin
YaronNir19-Oct-03 6:26
YaronNir19-Oct-03 6:26 
GeneralInteresting Interview with Bjarne Stroustrup Pin
Kevin McFarlane19-Oct-03 6:16
Kevin McFarlane19-Oct-03 6:16 
http://www.artima.com/intv/goldilocks.html[^]

I especially liked the section "Climbing Above C-Level."

Stroustrup: "The C++ community has yet to internalize the facilities offered by standard C++. By reconsidering the style of C++ use, major improvements in ease of writing, correctness, maintainability, and efficiency can be obtained."

This is all too true. And it certainly applies to the code I'm having to maintain at the moment. It also applies to almost all the C++ code I've had to maintain over the past few years. Part of the problem has been that Standard C++ (STL, etc.) was difficult and certainly when STL was new it was pretty damn difficult to get to grips with. I remember at one time seeing the theoretical document behind the original HP (I think it was HP?) implementation and being completely bamboozled.

However, today there are plenty of good books around so current C++ developers should have no excuse for avoiding it (though Francis Glassborow of The Association of C and C++ Users tells me that the majority of professional programmers don't read books on programming so this may have something to do with it). Sure Standard C++ is big and does get pretty complicated but in fact basic use of it is easy and can alleviate a lot of common problems. There are lots of worked examples in, e.g., the MS Visual C++ online help. That was my first route into it.

Stroustrup: "Most of these techniques are criticized unfairly for being inefficient. The assumption is that if it is elegant, if it is higher level, it must be slow. It could be slow in a few cases, so deal with those few cases at the lower level, but start at a higher level. In some cases, you simply don't have the overhead. For example, vectors really are as fast as arrays. "

This too rings true. C/C++ developers are often obsessed with perceived inefficiency and often have poor intuition about it. Some time ago I read a case study on the use of Eiffel at a Fortune 500 storage manufacturer. Eiffel is an OO language analogous to Java and C# (i.e., managed runtime, etc.). The project required rewriting an existing C application in Eiffel. The developers were new to Eiffel and had the intuition that performance would be inferior as a result of Eiffel's managed runtime. In fact, it turned out that the new application was 10 times faster. Obviously, much of this performance boost would have been due to moving to a more efficient OO design, resulting in more code re-use. Also, no doubt the C application would have been faster than the original had it been redesigned in C. Still, it showed up the poor intuition of the C developers. We should aim first at maintainability and correctness. Efficiency will often follow as a consequence.





Kevin
GeneralDatabase Implementation, Please!!! Pin
Chopper19-Oct-03 4:39
Chopper19-Oct-03 4:39 
GeneralSetAtGrow problem Pin
YaronNir19-Oct-03 2:42
YaronNir19-Oct-03 2:42 
GeneralRe: SetAtGrow problem Pin
BadJerry19-Oct-03 7:11
BadJerry19-Oct-03 7:11 
GeneralRe: SetAtGrow problem Pin
YaronNir19-Oct-03 7:12
YaronNir19-Oct-03 7:12 
GeneralSwitchnig beetween views Pin
Chernobog119-Oct-03 0:38
Chernobog119-Oct-03 0:38 
GeneralMCI prob Pin
AI_Warrior19-Oct-03 0:30
AI_Warrior19-Oct-03 0:30 
GeneralRe: MCI prob Pin
Alexander M.,19-Oct-03 4:00
Alexander M.,19-Oct-03 4:00 
GeneralSending a "Click". Help please is urgent. Pin
Rafael Fernández López18-Oct-03 23:54
Rafael Fernández López18-Oct-03 23:54 
GeneralRe: Sending a "Click" Pin
User 665819-Oct-03 1:00
User 665819-Oct-03 1:00 
GeneralRe: Sending a "Click". Help Please, is Urgent Pin
Rafael Fernández López19-Oct-03 1:01
Rafael Fernández López19-Oct-03 1:01 
GeneralRe: Sending a "Click". Help please is urgent. Pin
Michael Dunn19-Oct-03 5:35
sitebuilderMichael Dunn19-Oct-03 5:35 
GeneralRe: Sending a "Click". Help please is urgent. Pin
Rafael Fernández López19-Oct-03 5:51
Rafael Fernández López19-Oct-03 5:51 
GeneralRe: Sending a "Click". Help please is urgent. Pin
Michael Dunn19-Oct-03 8:28
sitebuilderMichael Dunn19-Oct-03 8:28 
GeneralRe: Sending a "Click". Help please is urgent. Pin
Rafael Fernández López19-Oct-03 10:19
Rafael Fernández López19-Oct-03 10:19 
GeneralRe: Sending a "Click". Help please is urgent. Pin
Jonas Larsson20-Oct-03 1:08
Jonas Larsson20-Oct-03 1:08 
GeneralRe: Sending a "Click". Help please is urgent. Pin
Rafael Fernández López20-Oct-03 1:48
Rafael Fernández López20-Oct-03 1:48 
QuestionList Box with DoModal - Can anyone help a newbie? Pin
Anonymous18-Oct-03 23:29
Anonymous18-Oct-03 23:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.