posted 5 years ago
As I struggle to learn and keep up with the tests and assignments while having a full-time job completely detached from the IT field, I realized that I am cutting corners.
My coding style is an utter mess. If my code works, I spend very little time polishing it, and I feel like I am missing some basic OOP concepts.
Here is a recent assignment. It is just a program that communicates with a MySQL database and allows an imaginary company to store and alter data of its employees.
I would be extremely grateful is someone could point out any bad practices and improvements I could make. Especially the connection part. I feel like I should have make a separate class for that.
(Please note that in order to make it in time, I rarely checked the user input, if at all.)
This is the class where all the crud operations are
Rest of the code coming right up.