PyADB icon indicating copy to clipboard operation
PyADB copied to clipboard

Style guidelines

Open texascloud opened this issue 7 years ago • 0 comments

snake_case is the preferred method of naming both functions and multi-word variables. I'd also suggest keeping variable names for primitives to lowercase and reserving capitalized variable names for objects. For example in this block from the "StartApplication" function in Android.py:

Command = 'sudo adb -s ' + udid + " shell monkey -p " + str(app) + " -c android.intent.category.LAUNCHER 1"

Command is a String, but due to style it seems as though it should be an object

texascloud avatar Jun 21 '17 22:06 texascloud