Computer Science Canada Copthesaint's Turing Helper |
Author: | copthesaint [ Mon Nov 17, 2008 7:24 pm ] | ||
Post subject: | Copthesaint's Turing Helper | ||
As you may have seen I had recently made a sound finder but I decided to goto the next level and create 3 programs in a program. The first program will find a sound for the user. The second program will find a color for the user. The third program will position and resize a box I hope you (the user) enjoy. This will help alot for drawing pictures. Post Comments please. No Pictures Required.
|
Author: | Insectoid [ Mon Nov 17, 2008 7:54 pm ] |
Post subject: | RE:Copthesaint\'s Turing Helper |
You should look into procedures, save yourself a LOT of coding. My teacher has a policy, 'if it's bigger than 1 screen, break it into procedures.'. So if your code visible takes up more room than 1 screen, top to bottom, break it into procedures. They really are quite easy, and you will start using them even when they are not necessary. |
Author: | copthesaint [ Mon Nov 17, 2008 8:04 pm ] |
Post subject: | Re: Copthesaint's Turing Helper |
Thats fine but how would you resume to main menu? Turing will not allow me to go from 1 procedure to another... Btw expect less since I took 2 and a half hours to make this ;p; also This isn't for marks I was just making a program to help other users. this is a update |
Author: | Insectoid [ Mon Nov 17, 2008 9:02 pm ] |
Post subject: | RE:Copthesaint\'s Turing Helper |
If this took 2.5 hours, then I expect more. The menu typically is the last procedure you write, as it calls other procedures. You can indeed go from one procedure to another. ex. [code] proc sound_thing %blah end sound_thing proc color_thing %blooh end color_thing proc box_thing %blieh end box_thing proc menu if sound_thing chosen then sound_thing elsif color_thing choses then color_thing elsif box_thing chosen then box_thing end if end menu |
Author: | copthesaint [ Mon Nov 17, 2008 9:29 pm ] |
Post subject: | RE:Copthesaint\'s Turing Helper |
HOW CAN YOU EXPECT MORE! You didn't even download the new version !!WOW!! I think making a 500 line program in 2.5 hours is pretty good also since I type with 2 fingers. Why not download the new version that took 2.5hours THEN judge... |
Author: | gitoxa [ Mon Nov 17, 2008 10:38 pm ] |
Post subject: | Re: RE:Copthesaint\'s Turing Helper |
insectoid @ Mon Nov 17, 2008 7:54 pm wrote: You should look into procedures, save yourself a LOT of coding. My teacher has a policy, 'if it's bigger than 1 screen, break it into procedures.'. So if your code visible takes up more room than 1 screen, top to bottom, break it into procedures.
That's a pretty bad policy, if I do say so myself. For one, breaking things into procedures the way you explained doesn't save you any typing whatsoever. Unless of course you're counting negative. Yea that's right, there's more typing. And please lay off copthesaint, i've seen a few of his posts now where all you've done is harass him. insectoid @ Mon Nov 17, 2008 9:02 pm wrote: If this took 2.5 hours, then I expect more. The menu typically is the last procedure you write, as it calls other procedures. You can indeed go from one procedure to another.
I write it first, it's just preference. |
Author: | CodeMonkey2000 [ Mon Nov 17, 2008 11:46 pm ] |
Post subject: | Re: RE:Copthesaint\'s Turing Helper |
insectoid @ Mon Nov 17, 2008 7:54 pm wrote: You should look into procedures, save yourself a LOT of coding. My teacher has a policy, 'if it's bigger than 1 screen, break it into procedures.'. So if your code visible takes up more room than 1 screen, top to bottom, break it into procedures.
They really are quite easy, and you will start using them even when they are not necessary. Imo that's a bad policy. I have a policy, where if you are copy and pasting a lot of code that has the same logic, you probably should factor that into one general method/procedure. |
Author: | Euphoracle [ Tue Nov 18, 2008 6:58 am ] |
Post subject: | RE:Copthesaint\'s Turing Helper |
I "design" my code on a lined sheet of paper before writing, which usually makes it obvious what code will be repeating, and thus, functions. |
Author: | copthesaint [ Tue Nov 18, 2008 7:40 am ] |
Post subject: | Re: Copthesaint's Turing Helper |
Yes I do also write my program on lined sheets of paper but Since I wasn't like trying to get marks on this I just did trial and error. The reason why I made this was really because I didn't have my final fantasy project on me or at least my recent version with me. ![]() ![]() Again I hope this does help someone. Also I seemed to notice that there are all these coments but there Are Downloads... I'd prefer if you looked at the final post of my project before you comment... Btw my finl Update will have these tools. Sound finder Color finder box creator and positioner. oval creator and positioner. I don't know If I will Do all the shapes... I just thought I would do the basics |