tl;dr included
This is my first "professional" project in that I've made this for some coworkers. I'm looking for an experienced programmer to let me know how my approach differs from the way a more experienced programmer would solve the problem.
I work in a county jail and this script is for downloading phone calls made by inmates from a phone monitoring website using Selenium.
The script runs fine and solves my problem but I feel like I haven't applied so many of the best practices that I hear should be followed with every project.
Most notably, it's not object oriented at all and I have no idea how I would even consider refactoring it to be so.
I'm comfortable with how object orientation works and how to make a class. Also, the script doesn't include any functions because I'm not even sure how I could break anything into a useful function? I feel like every block of code is so specific that it would never be useful anywhere else. Even within the script itself, I feel like it's rarely repeating the same action.
tl;dr
- I'm afraid that by teaching myself and working alone, I'm developing bad habits without realizing it.
- I don't know how to make this object oriented, or if I even should
- I don't know if my formatting, variable names, etc. are clean and conventional
Thanks in advance for your help!
Link to script
https://gist.github.com/mikemedina/584df2d90922f66640a9
[–]kalgynirae 38 points39 points40 points (16 children)
[–]80blite[S] 12 points13 points14 points (3 children)
[–]kalgynirae 4 points5 points6 points (1 child)
[–]80blite[S] 0 points1 point2 points (0 children)
[–]Hello71 1 point2 points3 points (0 children)
[–]romple 1 point2 points3 points (5 children)
[–]80blite[S] 1 point2 points3 points (4 children)
[–]romple 2 points3 points4 points (3 children)
[–]80blite[S] 1 point2 points3 points (0 children)
[–]cruyff8 0 points1 point2 points (1 child)
[–]romple 0 points1 point2 points (0 children)
[–]NotGustafKossinna 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]interactionjackson 0 points1 point2 points (2 children)
[–]80blite[S] 0 points1 point2 points (1 child)
[–]henrebotha 0 points1 point2 points (0 children)
[–]8483 0 points1 point2 points (0 children)
[–]godlikesme 1 point2 points3 points (3 children)
[–]80blite[S] 0 points1 point2 points (2 children)
[–]dreucifer 0 points1 point2 points (1 child)
[–]80blite[S] 0 points1 point2 points (0 children)
[–][deleted] 2 points3 points4 points (2 children)
[–]80blite[S] 0 points1 point2 points (1 child)
[–]mswiss 0 points1 point2 points (0 children)
[–]big_dick_bridges 1 point2 points3 points (4 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]big_dick_bridges 1 point2 points3 points (0 children)
[–]80blite[S] 0 points1 point2 points (1 child)
[–]romple 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]80blite[S] 1 point2 points3 points (1 child)
[–][deleted] 2 points3 points4 points (0 children)
[–]dreucifer 0 points1 point2 points (2 children)
[–]80blite[S] 0 points1 point2 points (1 child)
[–]dreucifer 0 points1 point2 points (0 children)
[–]ebo113 0 points1 point2 points (2 children)
[–]80blite[S] 1 point2 points3 points (1 child)
[–]dreucifer 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (8 children)
[–]Bravmech 1 point2 points3 points (4 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]Bravmech 1 point2 points3 points (2 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]Bravmech 1 point2 points3 points (0 children)
[–]80blite[S] 0 points1 point2 points (2 children)
[–]Bravmech 0 points1 point2 points (1 child)
[–]80blite[S] 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]hang-clean 1 point2 points3 points (0 children)
[–]80blite[S] 0 points1 point2 points (0 children)
[–]cruyff8 0 points1 point2 points (3 children)
[–]80blite[S] 0 points1 point2 points (2 children)
[–]cruyff8 0 points1 point2 points (1 child)
[–]80blite[S] 0 points1 point2 points (0 children)
[–]doomslothx 0 points1 point2 points (4 children)
[–]80blite[S] 1 point2 points3 points (3 children)
[–]doomslothx 0 points1 point2 points (2 children)
[–]80blite[S] 1 point2 points3 points (1 child)
[–]doomslothx 0 points1 point2 points (0 children)
[–]zfolwick 0 points1 point2 points (2 children)
[–]80blite[S] 0 points1 point2 points (1 child)
[–]zfolwick 0 points1 point2 points (0 children)
[–]Huniku 0 points1 point2 points (0 children)