Thursday, February 7, 2013

About the use of Shell Scripts and Java/Python scripts

A former consultant was very fond of shell scripts - probably because they are so cryptic that they give their author a comfortable job security.
Those scripts, being build/deployment scripts, make several calls to Python/WLST scripts and to Java classes. Each call entails starting a JVM, which even on a robust machine takes time, say 5 seconds.
Also, each time you need to pass parameters around, which can quickly become a nightmare.
The overall result is having scripts which are slow, hard to debug and difficult to maintain.
My personal decision is: NEVER AGAIN SHELL SCRIPT. Do all in Python and FORGET SHELLS.

No comments: