PC Review


Reply
Thread Tools Rate Thread

Edit and Continue

 
 
Jeremy
Guest
Posts: n/a
 
      19th Jul 2006
Is [Edit and Continue] a worthwhile feature?

I've lived just fine without it for years... don't see much value in using
it. Am I missing something?

Thanks!


 
Reply With Quote
 
 
 
 
Jonathan Wood
Guest
Posts: n/a
 
      19th Jul 2006
Why not?

While debugging your code, you might see a line you want to change before
executing it. You can make the change and restart the program, or just edit
and continue. Which would you prefer?

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com

"Jeremy" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Is [Edit and Continue] a worthwhile feature?
>
> I've lived just fine without it for years... don't see much value in using
> it. Am I missing something?
>
> Thanks!
>



 
Reply With Quote
 
Jeremy
Guest
Posts: n/a
 
      19th Jul 2006
My prior experience with Edit and Continue (vb6, vba, etc) is that it's a
feature that, IF it were to function as advertised, might prove useful. But
things would periodically go wrong - thereby wasting much more time than the
feature was intended to save. Furthermore, assuming that it now "works as
advertised" it seems that changing a line of code while the application is
running might cause unknown (even unpredictable) conseqeunces.

You can see that I'm reluctant to try it again based on the considerations
given above. But rather than simply dismissing it, I'm wondering if there is
some aspect of [Edit and Continue] that you more experienced developers
conclude makes it a must-have feature. Do any of you use it "all the time"
or as a matter of course? Or do most of you prefer to not use it?

Thanks.


"Jonathan Wood" <(E-Mail Removed)> wrote in message
news:eyW$(E-Mail Removed)...
> Why not?
>
> While debugging your code, you might see a line you want to change before
> executing it. You can make the change and restart the program, or just
> edit and continue. Which would you prefer?
>
> --
> Jonathan Wood
> SoftCircuits Programming
> http://www.softcircuits.com
>
> "Jeremy" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>> Is [Edit and Continue] a worthwhile feature?
>>
>> I've lived just fine without it for years... don't see much value in
>> using it. Am I missing something?
>>
>> Thanks!
>>

>
>



 
Reply With Quote
 
Michael C
Guest
Posts: n/a
 
      19th Jul 2006
"Jeremy" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Is [Edit and Continue] a worthwhile feature?
>
> I've lived just fine without it for years... don't see much value in using
> it. Am I missing something?


It's just a time saving feature in my opinion, if you notice a mistake in
your code then you can change it without having to restart your app. This is
especially useful if it took a long time to get to the point your code is
at, eg at the end of a long import.

You're going to get replies from people who never need this feature because
they never make mistakes and always check their code before running it and
it works perfectly first time every time. But for those not living in
newsgroup fantasy land it is a very useful feature (not that I've got vs2005
but I'm using visual basic 6 on 1 project).

>
> Thanks!
>



 
Reply With Quote
 
Michael C
Guest
Posts: n/a
 
      19th Jul 2006
"Jeremy" <(E-Mail Removed)> wrote in message
news:u$(E-Mail Removed)...
> My prior experience with Edit and Continue (vb6, vba, etc) is that it's a
> feature that, IF it were to function as advertised, might prove useful.
> But things would periodically go wrong - thereby wasting much more time
> than the feature was intended to save.


The feature works pretty much perfectly in vb6, I don't know where you're
getting the idea that it doesn't work as advertised. It does require some
understanding of what is going on.

> Furthermore, assuming that it now "works as advertised" it seems that
> changing a line of code while the application is running might cause
> unknown (even unpredictable) conseqeunces.


The usual situation is that you get an error, fix a simple mistake and
continue, but getting the error might cause some side effects. You just need
to take this into account but it's rarely a problem.

Michael


 
Reply With Quote
 
Jonathan Wood
Guest
Posts: n/a
 
      19th Jul 2006
I very rarely use it. But on those rare occasions, it can be nice. But,
frankly, I just don't see any downside to it.

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com

"Jeremy" <(E-Mail Removed)> wrote in message
news:u$(E-Mail Removed)...
> My prior experience with Edit and Continue (vb6, vba, etc) is that it's a
> feature that, IF it were to function as advertised, might prove useful.
> But things would periodically go wrong - thereby wasting much more time
> than the feature was intended to save. Furthermore, assuming that it now
> "works as advertised" it seems that changing a line of code while the
> application is running might cause unknown (even unpredictable)
> conseqeunces.
>
> You can see that I'm reluctant to try it again based on the considerations
> given above. But rather than simply dismissing it, I'm wondering if there
> is some aspect of [Edit and Continue] that you more experienced developers
> conclude makes it a must-have feature. Do any of you use it "all the time"
> or as a matter of course? Or do most of you prefer to not use it?
>
> Thanks.
>
>
> "Jonathan Wood" <(E-Mail Removed)> wrote in message
> news:eyW$(E-Mail Removed)...
>> Why not?
>>
>> While debugging your code, you might see a line you want to change before
>> executing it. You can make the change and restart the program, or just
>> edit and continue. Which would you prefer?
>>
>> --
>> Jonathan Wood
>> SoftCircuits Programming
>> http://www.softcircuits.com
>>
>> "Jeremy" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>>> Is [Edit and Continue] a worthwhile feature?
>>>
>>> I've lived just fine without it for years... don't see much value in
>>> using it. Am I missing something?
>>>
>>> Thanks!
>>>

>>
>>

>
>



 
Reply With Quote
 
Greg Miller
Guest
Posts: n/a
 
      19th Jul 2006
On Tue, 18 Jul 2006 19:08:49 -0700, "Jeremy" <(E-Mail Removed)> wrote:

>But things would periodically go wrong - thereby wasting much more time than
>the feature was intended to save. Furthermore, assuming that it now "works as
>advertised" it seems that changing a line of code while the application is
>running might cause unknown (even unpredictable) conseqeunces.


I'm curious as to what types of problems you ran into.
 
Reply With Quote
 
Jon Skeet [C# MVP]
Guest
Posts: n/a
 
      19th Jul 2006
Jonathan Wood <(E-Mail Removed)> wrote:
> Why not?
>
> While debugging your code, you might see a line you want to change before
> executing it. You can make the change and restart the program, or just edit
> and continue. Which would you prefer?


Restart the program - otherwise I can't be sure that my change won't
have affected anything I've already done.

Of course, with a good battery of unit tests, "restart the program"
actually means "rerun the test" which I'd be doing anyway.

--
Jon Skeet - <(E-Mail Removed)>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
 
Reply With Quote
 
Jon Skeet [C# MVP]
Guest
Posts: n/a
 
      19th Jul 2006
Jonathan Wood <(E-Mail Removed)> wrote:
> I very rarely use it. But on those rare occasions, it can be nice. But,
> frankly, I just don't see any downside to it.


The potential downside I see is that it encourages "development by
tinkering" - fix this particular problem, but don't bother checking
that nothing else is broken. I believe there are developers who write
more code in the debugger than not.

Now, this could be a myth, and it can certainly be avoided just by
being disciplined about when you use it. I *can* see E&C being useful
when trying different ways of presenting a UI - but I wouldn't want to
use it for fixing bugs.

--
Jon Skeet - <(E-Mail Removed)>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
 
Reply With Quote
 
Steven Nagy
Guest
Posts: n/a
 
      19th Jul 2006
I agree. I think there is a possibility that it can breed complacency.
I think it can be used in moderation, but as Jon said, only for small
UI or similar situations. You don't want to rely on E&C. Its good that
its been absent for a few years, and I personally don't use it at all.

Jon, got any really good resources on unit testing in .NET ?
They're going to push Nunit on us at work and I want to be completely
prepared.
I have never before developed from a test-driven approach. I understand
the basic concepts of writing testable methods, but only the basics
mind you.
I'm sure there are lots of resources available that a Google would
find, but I want to know what YOU recommend.

Cheers,
Steven


Jon wrote:
> Jonathan Wood <(E-Mail Removed)> wrote:
> > Why not?
> >
> > While debugging your code, you might see a line you want to change before
> > executing it. You can make the change and restart the program, or just edit
> > and continue. Which would you prefer?

>
> Restart the program - otherwise I can't be sure that my change won't
> have affected anything I've already done.
>
> Of course, with a good battery of unit tests, "restart the program"
> actually means "rerun the test" which I'd be doing anyway.
>
> --
> Jon Skeet - <(E-Mail Removed)>
> http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
> If replying to the group, please do not mail me too


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Edit and Continue Tom McL. Microsoft VB .NET 2 16th Aug 2006 10:59 PM
Edit and Continue in ASP.Net Diane Yocom Microsoft ASP .NET 5 10th Jul 2006 02:22 PM
Edit Continue =?Utf-8?B?Unlhbg==?= Microsoft Access VBA Modules 1 8th Dec 2005 02:36 PM
Edit and Continue in VB for CF? Tery Microsoft Dot NET Compact Framework 3 27th Nov 2005 05:59 PM
C# Edit & Continue Andrew Brampton Microsoft Dot NET 2 19th Jul 2003 05:28 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:28 PM.