gregjoeval / KnightcardSignInDevice

A device to store information from Knightcards to replace the physical sign-in clipboard.
2 stars 1 forks source link

Increasing Testability & Readability #22

Closed gregjoeval closed 7 years ago

gregjoeval commented 7 years ago

This branch focused on making the script, sqlConnect, easier to test and read. It is now easier to test because I have implemented a testMode where most if not all variables that are currently in the script are output to the terminal. I also implemented an OutputMode where the user can define what kind of output they would like to see. There are three types of output: to a database, to a text file, or to the terminal. I have also reorganized and heavily commented the code to make it all much easier to read.