|
CPallini wrote: Yes.
No. See my reply to George. And yes it is from Meyers. Wink while you can monkey boy.
led mike
|
|
|
|
|
Post conditions are required by design by contract approach, or am I wrong?
led mike wrote: Wink while you can monkey boy.
Please elaborate (my poor English).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
CPallini wrote: Post conditions are required by design by contract approach, or am I wrong?
Yes, no, both. assignment operator, and other other operators, have implicit contracts. Read Meyers. ( I am getting a little tired of saying the "read Meyers" part you know )
CPallini wrote: Please elaborate (my poor English).
It's a twist on a quote from a movie Adventures of Buckaroo Banzai Across the 8th Dimension[^] where a character said "Laugh while you can monkey boy".
led mike
|
|
|
|
|
led mike wrote: Yes, no, both. assignment operator, and other other operators, have implicit contracts. Read Meyers. ( I am getting a little tired of saying the "read Meyers" part you know )
OK, I will do. However,you know, design by contract is only one of the possible approaches.
led mike wrote: It's a twist on a quote from a movie Adventures of Buckaroo Banzai Across the 8th Dimension[^] where a character said "Laugh while you can monkey boy".
I really appreciate you elaborated, thank you.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
CPallini wrote: design by contract is only one of the possible approaches.
Yes I know, and not the most popular approach. The most popular approach is probably the Disastrous Bowl of Worms approach. That's the one where you ignore all the advice from people like Kent Beck, Martin Fowler, Scott Meyers and others.
led mike
|
|
|
|
|
That's fanaticism.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
George_George wrote: Does led mike mean rollback is not needed in assignment operator if exception is thrown?
No. It means that rollback is an inappropriate post condition for an assignment operator since it is not part of the implied contract of the assignment operator.
led mike
|
|
|
|
|
Hi led mike,
What is your contract? My contract is, exception could be thrown, but all status of object should be consistent. Your contract is, if exception is thrown, status of object is unknown?
led mike wrote: contract of the assignment operator
regards,
George
|
|
|
|
|
George_George wrote: What is your contract?
My contract is: READ MEYERS!
Don't make me say that again, period.
led mike
|
|
|
|
|
Hi led mike,
What is MEYERS?
regards,
George
|
|
|
|
|
George_George wrote: What is MEYERS?
Hi George, I supplied a link in this very thread. If you are not going to read my posts to your threads then perhaps I should stop posting them, eh?
led mike
|
|
|
|
|
|
|
Sorry led mike,
My email issue. I missed this post.
regards,
George
|
|
|
|
|
Thanks led mike,
My email issue. I missed this post.
regards,
George
|
|
|
|
|
(Hopefully this is the right forum - This is all done in VC++.NET)
Sprinkled Throughout the various project I have are some where, if the design mode window is part of startup, it takes a rather long time for the project to be loaded. Similarly, if already opened, opening the design-mode window take a rather long time. I believe I know why it's happening, but I don't know how to stop it - and it can be very annoying.
Why I know:
1) Projects with database's attached (::SqlClient) are the worst offender - but not all of them.
2) A digital clock drop-in control I made, when put into a project, was actually ticking merrily away in the design mode window
I conclude that the horrid delay may be establishing (and timing out) of dBase connections.
Does anyone know how to disable this 'live' state of a project that, in my philosophy at least, should not be running?
For now, it's a catch-22: I can re-arrange the code and the items aren't intialized at this point - but that also means they're not on the designer window and that sort of defeats the whole purpose - which is having an open designer window.
Thanks, in advance,
Balboos
Notes: VS2003, VS2005, VS2008 .
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein
"How do you find out if you're unwanted if everyone you try to ask tells you to go away?" - Balboos HaGadol
|
|
|
|
|
Balboos wrote: (Hopefully this is the right forum - This is all done in VC++.NET)
Depends Visual C++ from 2003 on up all include .NET platform extensions for using the .NET platform in your project. If you are doing that the this is not the right forum. If you are doing native C++ then this is the correct forum. For .NET development using C++ you want the Managed C++/CLI forum.
Balboos wrote: A digital clock drop-in control
Drop-in control? Never heard that term. TIP: Don't make up your own terminology there is already far to much and people won't understand what you are saying. So do you mean you developed a custom control that includes a Visual Studio Designer interface?
Balboos wrote: Does anyone know how to disable this 'live' state of a project that, in my philosophy at least, should not be running?
I can't be sure what that means but if you are talking about your custom control then yes. The designer interfaces include the ability to know during initialization if it is a designer instance. You can use that information to avoid doing any processing that you don't want the control to do in designer mode.
led mike
|
|
|
|
|
Yep - will repost in correct forum.
led mike wrote: do you mean you developed a custom control that includes a Visual Studio Designer interface
I'll try to be a bit less sloppy in my terminology, and, the answer is yes: it's a custom control. I use the term because the designer is drop-and-drag, and so I made something to drop.
Thanks,
Balboos
|
|
|
|
|
Hi,
Might it seems Silly question to many of you.
I have 3 years experiance in VC++.
Iam looking for job change. I know C++,MFC, COM (In COM not proficient I can give 4 out of 10.)
In India , How much I can ask in new company ?
One more Question ,, Is it VC++ got saturated in new openings ?
Thanks,
Krishna.
|
|
|
|
|
Royaltvk wrote: In India , How much I can ask in new company ?
As far as questions go, you can ask as many as you like.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
|
Hi all,
I am kin in learning Visual C++ / MFC (Microsoft Foundation Class), but i was quite trouble as i do not know where to start. I've been reading up on Basic C++ like usage of Functions, Arrays and theories. I also downloaded simple programs to explore and see the differences and changes that will be made if i change the contents within the program.
I will like learn again, from the basics as i fail to do so during my previous tertiary education in Diploma in Electronics. I wish to learn now so as to prepare myself to do effective projects in my next upcoming tertiary education. Please kindly assist
Thank you.
scene
(Every scene in my life is an experience and unforgettable memories)
|^-^| Willing to Learn is the light to my life |^-^|
|
|
|
|
|
Hi there,
There is more than to learn just C++ for MFC. If you were to listen, people here can recommend you very good books with which you could start learning MFC/Visual C++.
I'll say buy the one written by Jeff Prosise (Programming Windows with MFC). Good luck with your learning.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Just a moment ago, CPallini(Whom is one of the forum personnel_ gave me a suggestion on learning C++ and Windows Programming and i can ignore MFC, why does he say so?
|^-^| Willing to Learn is the light to my life |^-^|
|
|
|
|
|
ask him, my dear?
(just kidding)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|