Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
6 votes
2 answers
10k views

Windows batch files (.bat) coding style standard

Is there any standard/encouraged Windows batch file coding style? I would think that if I want my batch files to be easy to read/mantain, I should care about this, but searching the web I found very ...
carlossierra's user avatar
  • 1,425
1 vote
3 answers
2k views

Long vs short scripts? Big vs small scripts? [closed]

As a programmer, I have always wondered whether it is preferable to write (a) short modular functions that are each stored in their own script (i.e., file) or (b) long comprehensive scripts that ...
Gyan Veda's user avatar
  • 133
8 votes
2 answers
292 views

Where should I define constants in scripts?

When writing scripts using a modern scripting language, e.g. Powershell or JavaScript, where should I define constants? Should I make all constants global for readability and ease of use, or does it ...
bshacklett's user avatar