japhyr
August 9th, 2010, 03:50 PM
Hello,
I am used to languages in which functions can be defined at the end of a script. Having to define functions before they are called seems to make the script less readable. Instead of focusing on logic first and then seeing the grunt work of functions, all the grunt work comes first, and then overall logic comes last.
Is there a way to make function-first scripts more readable? Is it standard practice to put function definitions in a separate file and include them?
I am used to languages in which functions can be defined at the end of a script. Having to define functions before they are called seems to make the script less readable. Instead of focusing on logic first and then seeing the grunt work of functions, all the grunt work comes first, and then overall logic comes last.
Is there a way to make function-first scripts more readable? Is it standard practice to put function definitions in a separate file and include them?