![]() |
| | #1 | |
| Evil Member Join Date: Jan 2002
Posts: 638
| Funny The teacher put the course notes on her website, and included in the style guide is this little gem... Quote:
Not that I disagree with the statement, but I found the wording interesting. Of course its about as funny as the third slide of the powerpoint presentation she gave the class, which was a picture of a computer with lines pointing to the monitor, keyboard, joystick, speakers, and so on. | |
| Imperito is offline |
| | #2 |
| Registered User Join Date: Apr 2002
Posts: 1,571
| Man thats pretty good stuff. How was the class unavoidable? At most colleges you can challenge any class. The teacher will give you the final and if you pass it you get a P for the class I believe. No gpa points are awarded but you receive the full 3 credits or however many the class is. I did this for a 'intro to computers' class.
__________________ "...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers |
| MrWizard is offline |
| | #3 |
| Code Goddess Join Date: Sep 2001
Posts: 9,661
| Prelude's Translations: >The goto statement is evil! Translation: I'm an idiot. >If you need to use it, it is a definite sign of bad code. Translation: I've only written trivial programs and never needed goto, so anyone who uses it is a bad programmer. >Those who use the goto statement will be punished. I'm trying to make everyone believe my flawed logic through intimidation. This is a good one, would it be possible for you to post a link to this website? I like a good laugh every now and again. ![]() -Prelude
__________________ My best code is written with the delete key. |
| Prelude is offline |
| | #4 | |
| Registered User Join Date: Apr 2002
Posts: 1,571
| Quote:
__________________ "...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers | |
| MrWizard is offline |
| | #5 |
| aurë entuluva! Join Date: Aug 2001
Posts: 1,209
| Even Knuth (somwhere I know) talks about the advantages of goto...correct me if I'm wrong prelude
__________________ Who's Your Suspended Account? |
| mithrandir is offline |
| | #6 |
| Just because Join Date: Jan 2002
Posts: 2,502
| i know this is the 267'th time this has been asked... but what advantages are there to using goto? can't everything be done with an equivalent non-goto command that looks and fits better? |
| ygfperson is offline |
| | #7 |
| ¡Amo fútbol! Join Date: Dec 2001
Posts: 2,121
| Say you are in a series of 4 or 5 nested loops and you want to break out of all of them. Which is more effecient, having a flag and breaking out of each loop individually or using a goto to right after the loop? |
| golfinguy4 is offline |
| | #8 |
| Evil Member Join Date: Jan 2002
Posts: 638
| I agree with both parties here. Yes, Prelude and the other board members have a point about goto and the JMP opcode having usefulness in really time-critical applications, where exiting a control stucture gracefully is not an option, but I see where it would be a good idea for Dr. Nihan to impress on introductory students that goto is not the magic wand it first appears to be. Also, for anyone interested, Clicky! The "Programming Style Guide" is where that quote was pulled. The notes from the first lecture are also visible, you can hear my response to that here. |
| Imperito is offline |
| | #9 |
| Code Goddess Join Date: Sep 2001
Posts: 9,661
| I agree (more or less) with everything on that page except for the comment about goto. I feel it shoudn't be used except when absolutely necessary, but a thoughtless ban on its use is stupid. -Prelude
__________________ My best code is written with the delete key. |
| Prelude is offline |
| | #10 |
| Evil Member Join Date: Jan 2002
Posts: 638
| I thought 11 was worded oddly, but the only one I thought was off-base was 3, where she said that putting a command after an if was not as clear as under. I find that when an if binds only to one command to which it is logically connected, it is better to put it right after. |
| Imperito is offline |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Funny Windows Error Codes (I rofled...) | Sentral | General Discussions | 10 | 06-01-2006 09:38 AM |
| funny things | Benzakhar | A Brief History of Cprogramming.com | 4 | 01-10-2004 11:06 AM |
| funny sigs | Geo-Fry | A Brief History of Cprogramming.com | 2 | 03-23-2003 10:59 PM |
| Object Oriented - Funny story | MethodMan | A Brief History of Cprogramming.com | 5 | 09-26-2002 02:21 PM |
| For some reason, it prints funny characters ??? | Nutshell | C Programming | 8 | 01-14-2002 04:27 PM |