How it works…

We have replaced a page of code with just one line using a script file. If you have a code that can be packaged and reused across applications, it makes sense to store this code in a script file for others to use. Doing this reduces the complexity and keeps the focus of new developers on the backend code and on the matter that is relevant to that application.

It's worth pointing out that you could copy the code in the preceding point directly into the script editor and it will still get created and be ready for use. We save this code as a QVS file so that we can load the code using the $(Include...) statement. Loading the script from external files using the $(Include...) statement is a good method of reusing blocks of script across applications or using them for source control.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset