Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

When should a developer make a new tab in edit script

When should a developer make a new tab in edit script

1: when code exceeds 255 lines

2: When he first time access edit script

3: when the script is no more logically related

1 Solution

Accepted Solutions
ngulliver
Partner - Specialist III
Partner - Specialist III

Hi, Sreeharsha.

Jason is absolutely correct.

Remember, the person coding the edit script may not be the same person who has to amend or maintain it.

So it is important to break it down into logical sections so that the code can be easily followed. By having clearly named tabs you can resolve issues much quicker.

Regards,

Neil

View solution in original post

6 Replies
Jason_Michaelides
Luminary Alumni
Luminary Alumni

Number 3.  The best use of tabs in the edit script is to logically divide the sections of the script. Then you can put a nice big header of comments explaining what this section of script will do (plus of course more commenting on lines that need it, which will be many of them).

Jason

Not applicable
Author

This is really help full,

what if entire script is related with only one section?

Gysbert_Wassenaar

Whenever it improves maintainability of the application.


talk is cheap, supply exceeds demand
ngulliver
Partner - Specialist III
Partner - Specialist III

Hi, Sreeharsha.

Jason is absolutely correct.

Remember, the person coding the edit script may not be the same person who has to amend or maintain it.

So it is important to break it down into logical sections so that the code can be easily followed. By having clearly named tabs you can resolve issues much quicker.

Regards,

Neil

Jason_Michaelides
Luminary Alumni
Luminary Alumni

"what if entire script is related with only one section?"

Then try to break it down further. But if it is a small script only performing one logical function that one tab is fine (although the settings is usually best in a tab of its own for tidiness)

Gysbert_Wassenaar

Some developers put every load in a sub routine and put groups of related sub routines on their own tab. On a 'main' tab all those subs are called in the order they should be executed. This makes it easy to follow the flow of the script at a high level and dive into details in the subs.


talk is cheap, supply exceeds demand