DanielDDDL / onpoint

Small program to control my clocks in and out of the company that I work for. The idea is for it to be a CLI application.
1 stars 0 forks source link

Keep SQL out of the code #4

Closed DanielDDDL closed 5 years ago

DanielDDDL commented 5 years ago

As stated here, it is a good practice to keep the SQL statements out of the code, as this allows for external help from people specialized on database related stuff, rather than forcing them to understand a piece of complex code. And it is also good to have the option to alter things on the fly, if necessary.

A good option for such would be to simply add those as a properties file. Or we could use some sort of specialized solution, such as this.