Coding Standards/conventions Question:

Size of Scripts and libraries?

Coding Standards Interview Question
Coding Standards Interview Question

Answer:

Main script section ("Sub Main .. End Sub) and function bodies should fit within an A4-page (approx. two monitor-pages). If the code doesn't fit it is a candidate to do more decoupling to separate small functions. The bigger a function body the harder to read and maintain.


Previous QuestionNext Question
How to deal both scripts and libs in Scripts and libraries?Documentation Introduction