473,799 Members | 2,903 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using GOTO

Hi,
Is it good practice using GOTO in .NET application?

Please advice.

Thanks, Kartic
Nov 20 '05
13 8465

"Jay B. Harlow [MVP - Outlook]" <Ja************ @msn.com> wrote in message
news:%2******** *******@TK2MSFT NGP11.phx.gbl.. .
Cor,
First a question: Why are you attempting to build a long thread? ;-)

It's been awhile... =)


As I told Robin:

Remember bad use of a Goto does not make the Goto bad!

Too many developers think Goto is Bad! as they have seen bad uses of Goto
too often...

The second link is interesting, I don't see what you are trying to say with the first (other then who wrote the second).

Just a thought
Jay

"Cor Ligthert" <no**********@p lanet.nl> wrote in message
news:e%******** ********@TK2MSF TNGP11.phx.gbl. ..
Hi Jay B. (And Bill)

I never come with documents, however this greath Dutchman will turn around about your writting.

(He has done very much for modern programming, in my idea most modern
languages derives partialy from his ideas)

http://www.cs.utexas.edu/users/EWD/

http://www.acm.org/classics/oct95/

Cor


Nov 20 '05 #11
Hi Jay,
First a question: Why are you attempting to build a long thread? ;-)
Because I always know this hits me, I have seen so often bad programs which
with thinking how to provide the "goto" became suddenly much better (not a
religion, a trick to make better programs).
Remember bad use of a Goto does not make the Goto bad!
The Goto has after somewhere 1970 always been for me a bad command (In the
begin it was nothing more than a branch unconditional)
Too many developers think Goto is Bad! as they have seen bad uses of Goto
too often... In my idea still Goto's in scripting languages, it is for not good
programmers more easy to understand I think.
The second link is interesting, I don't see what you are trying to say with the first (other then who wrote the second).


The first was to show who wrote it, not a simple Dutchman, which you may
think when you see the second link.

:-)

Cor
Nov 20 '05 #12
* "Cor Ligthert" <no**********@p lanet.nl> scripsit:
I never come with documents, however this greath Dutchman will turn around
about your writting.

(He has done very much for modern programming, in my idea most modern
languages derives partialy from his ideas)


Dijkstra formulared the "Dining Philosophers' Problem", didn't he ;-).

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 20 '05 #13
Herfried,
Dijkstra formulared the "Dining Philosophers' Problem", didn't he ;-). I like the "Dining Philosophers' Problem", I have a VB.NET implementation I
wrote someplace...

I believe you are correct, I don't have my reference handy...

Jay

"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:c6******** ****@ID-208219.news.uni-berlin.de... * "Cor Ligthert" <no**********@p lanet.nl> scripsit:
I never come with documents, however this greath Dutchman will turn around about your writting.

(He has done very much for modern programming, in my idea most modern
languages derives partialy from his ideas)


Dijkstra formulared the "Dining Philosophers' Problem", didn't he ;-).

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 20 '05 #14

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

30
4280
by: Hayri ERDENER | last post by:
hi, what is the equivalent of C languages' goto statement in python? best regards
11
6604
by: Grasshopper | last post by:
Hi, I am automating Access reports to PDF using PDF Writer 6.0. I've created a DTS package to run the reports and schedule a job to run this DTS package. If I PC Anywhere into the server on where the job is running, the job runs sucessfully, PDF files got generated, everything is good. If I scheduled the job to run at the time that I am not logged into the server, Access is not able to print to the printer. The error is pretty...
9
11476
by: Ed Staffin | last post by:
Hi, In vb6, if I had an error handler I could catch an error, make a correction and then try it again using resume. I want to do the same thing in vb.net. I am trying to deal with some concurrency issues. I want to be able to catch a error, wait a few milliseconds and then try it again. Any help on this would be great. Thanks ... Ed
6
3655
by: eBob.com | last post by:
How do you make a loop iterate early without using a GoTo? (I guess I've done too much structured programming and I really don't like using GoTos.) Here's my code ... For Each Thing As OFI In FileInfo If Thing.Displayed <> True Then GoTo Iterate 'skip this entry; try next one End If
3
6808
by: Goran Djuranovic | last post by:
Hi All, Does anyone know how to retreive deepest XPath value from XML document by using VB.NET? For example, if I had an XML file like this: <Root> <Customer> <Name>MyName</Name> </Customer> </Root> I would like to retreive "\Root\Customer\Name" out of it. Something like:
23
1801
by: marora | last post by:
I keep hearing about not to use 'go_to' in your code. However, I don't know what's the reasoning behind it? Can any one here shed some light? Thanks in advance, Manish
67
7400
by: Rui Maciel | last post by:
I've been delving into finite state machines and at this time it seems that the best way to implement them is through an intense use of the goto statement. Yet, everyone plus their granmother is constantly cursing at the goto statement, accusing it of being some sort of spawn of satan. So it seems we have a pickle here. The thing is, at first thought it seems that there aren't any viable alternatives which are better suited for this...
11
9716
by: O.B. | last post by:
Does C# support anything like PHP's break command that optionally accepts a parameter specifying how many loops to break out of?
1
3521
by: Mientje | last post by:
I've made an Access 2007 database to store information about the lessonplans I have to make every schoolyear. I want to export the data form the table "Lesvoorbereiding" (Lessonplans in English) to Word using a readymade template (NLD-LV1.dotx). All works well except for the multivalued fields 'Lesuur' (Lessonhour) and 'Werkvormen' (Used activities) and the field 'Lesverloop' (Lessonflow?), i.e. a field where you can link to documents, etc. on...
0
9686
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9540
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10475
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10250
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10026
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5463
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5585
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3757
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2938
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.