People are saying that they are bad in general. I am not sure of the reasons why although I was taught that it was a bad practice.
People are saying that they are bad in general. I am not sure of the reasons why although I was taught that it was a bad practice.
Join the IRC! irc.rizon.net:6667/srl | SQLite (0.99rc3+) | SRL Doc | Simba Doc | Extra Simba Libraries (openSSL & sqlite3)
Originally Posted by #srl
"A programmer is just a tool which converts caffeine into code"
Obviously it will work. To me, it makes the code look dirty but yeah..
Join the IRC! irc.rizon.net:6667/srl | SQLite (0.99rc3+) | SRL Doc | Simba Doc | Extra Simba Libraries (openSSL & sqlite3)
Originally Posted by #srl
"A programmer is just a tool which converts caffeine into code"
When you're expanding your script to do multiple things, you're probably going to have to do some fancy coding to make it work as intended.
I hope you're not talking to me. Labels aren't even fancy.
Join the IRC! irc.rizon.net:6667/srl | SQLite (0.99rc3+) | SRL Doc | Simba Doc | Extra Simba Libraries (openSSL & sqlite3)
Originally Posted by #srl
"A programmer is just a tool which converts caffeine into code"
Wow, funny how I wrote the script I just don't remember one of the main reason's why I used the labels. I wanted to be able to debug... You see the endscript() procedure I made lets me see the problems in the script. Its prints that line out in the finalreport... If I created a loop then I don't know a way i can do that ...
"Logic never changes, just the syntax" - Kyle Undefined?
Remember, The Edit Button Is There For A Reason!!!
You can do it the same way you're doing it. But when you put goto just replace that with continue.
Join the IRC! irc.rizon.net:6667/srl | SQLite (0.99rc3+) | SRL Doc | Simba Doc | Extra Simba Libraries (openSSL & sqlite3)
Originally Posted by #srl
"A programmer is just a tool which converts caffeine into code"
Sex, I was under the impression that is was the script. I didn't have time to read it. So adding new
Features to a script without procedures, that is just a load of loops would take a lot of time and effort![]()
Right. Adding on to that, I'm sure you could split that big procedure in to a couple smaller procedures maybe following a naming scheme like Cookfood_proc1 etc.
Join the IRC! irc.rizon.net:6667/srl | SQLite (0.99rc3+) | SRL Doc | Simba Doc | Extra Simba Libraries (openSSL & sqlite3)
Originally Posted by #srl
"A programmer is just a tool which converts caffeine into code"
Yago, I did post reasons not to. The letter by Edsger Dijkstra.
I didn't have time to read the whole thing, but I read page 1 and some of page 2 and it was worded weirdly or I was just not in the comprehensive mood or not. Anyways thanks you guys for your help
"Logic never changes, just the syntax" - Kyle Undefined?
Remember, The Edit Button Is There For A Reason!!!
Instead of using goto statements in a function, you could use repeat...until(true) and do Continue; instead of goto StartofFunctionLabel;
That's what I said.
Join the IRC! irc.rizon.net:6667/srl | SQLite (0.99rc3+) | SRL Doc | Simba Doc | Extra Simba Libraries (openSSL & sqlite3)
Originally Posted by #srl
"A programmer is just a tool which converts caffeine into code"
There are currently 1 users browsing this thread. (0 members and 1 guests)