Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jan 6th, 2006, 2:01 AM   #11
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 4 Arevos is on a distinguished road
Quote:
Originally Posted by Indigno
I use loops when I can, but I find it easier just to "jump" back to the beginning of a program with a goto.
Sounds like you need to use more functions
Arevos is offline   Reply With Quote
Old Jan 7th, 2006, 8:12 AM   #12
Indigno
Professional Programmer
 
Indigno's Avatar
 
Join Date: Dec 2005
Location: Anywhere non-productive
Posts: 267
Rep Power: 0 Indigno is an unknown quantity at this point
Send a message via AIM to Indigno Send a message via MSN to Indigno Send a message via Yahoo to Indigno
Quote:
Originally Posted by Ooble
It may be easier to write, but it's definitely harder to read. My advice is this: code everything with the view "If I come back to this in a year's time, will I understand what I've just written?"
I'm talking about classwork stuff, not stuff that I will need to come back and update many times.
Indigno is offline   Reply With Quote
Old Jan 7th, 2006, 8:36 AM   #13
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 8 Ooble is on a distinguished road
You're still teaching yourself bad habits. It doesn't matter whether you will or not; attacking a problem with that mindset will almost always produce much better code.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Jan 7th, 2006, 8:41 AM   #14
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 4 Arevos is on a distinguished road
Quote:
Originally Posted by Indigno
I'm talking about classwork stuff, not stuff that I will need to come back and update many times.
It's a bad habit to get into. Presumably, the point of your classwork is to teach you how to program. If you're programming with gotos, then you won't learn how to effectively program without them. Gotos don't really have a use in modern programming, and there are better ways to achieve the same thing without them. You should get used to not using them.
Arevos is offline   Reply With Quote
Old Jan 7th, 2006, 10:40 AM   #15
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Essentially, if you find yourself using gotos except in the most extreme circumstances, you're a rank amateur and need additional work on your skills.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Feb 20th, 2006, 12:34 AM   #16
Aether
Newbie
 
Aether's Avatar
 
Join Date: Feb 2006
Location: -=()N-=()=-C()=-
Posts: 1
Rep Power: 0 Aether is on a distinguished road
Send a message via AIM to Aether Send a message via MSN to Aether Send a message via Yahoo to Aether
Heh.. I personally enjoy using the web browser suplied in vb6. Add a web browser, and then, instead of your gotosite command, toss this in there

WebBrowser1.Navigate Text1.Text 'Text1.Text, or other textbox, or something like
'"http://www.website.com/ , maybe "http://" & text1.text "
It is quite efficient, might I add..
Aether is offline   Reply With Quote
Old Feb 20th, 2006, 6:22 AM   #17
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Please note that you've resurrected a thread that's over a month old. Please note also that your comment has nothing whatsoever to do with the subject at hand. Welcome to the forum. If you haven't yet read the rules/FAQ and a "How to Post..." thread, please take the time to do so.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Feb 20th, 2006, 7:22 AM   #18
Polyphemus_
Expert Programmer
 
Polyphemus_'s Avatar
 
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 3 Polyphemus_ is on a distinguished road
Quote:
Originally Posted by Aether
Heh.. I personally enjoy using the web browser suplied in vb6. Add a web browser, and then, instead of your gotosite command, toss this in there

WebBrowser1.Navigate Text1.Text 'Text1.Text, or other textbox, or something like
'"http://www.website.com/ , maybe "http://" & text1.text "
It is quite efficient, might I add..
May I be so free to ask what the hell that's got to do with the goto statement?
Polyphemus_ is offline   Reply With Quote
Old Feb 20th, 2006, 7:44 AM   #19
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Goto unemployment line. Do not pass Goto. Do not collect paycheck.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Feb 20th, 2006, 6:19 PM   #20
Ęthereal Haze
Newbie
 
Join Date: Feb 2006
Location: -=()N-=()=-C()=-
Posts: 7
Rep Power: 0 Ęthereal Haze is on a distinguished road
Send a message via AIM to Ęthereal Haze Send a message via MSN to Ęthereal Haze Send a message via Yahoo to Ęthereal Haze
GAH!
That is It! I Am Never Drinking Sake Again...
Sorry About That Post.
Of Course, Here Was My Mental Translation, probably:
Oh, this guy should use an extra web browser he made on his own instead of the gotosite.. I think it to be much better, and much more accepted.................

So Yah, I Apologize For The Post...
Ęthereal Haze is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 5:03 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC