Re:Ask HN: How to become good at naming things in code?
by itm on Sunday April 05, 2020 @05:07AM
(#22784623)
(I hope you actually don't store passwords in clear text in your database :) )
Re:Ask HN: How to become good at naming things in code?
by mattbgates on Monday April 06, 2020 @12:30AM
(#22790914)
Security and privacy is something I strive to have... I would want the same for anyone who uses anything I create.
$dbname might be for the name in the database. $dbpass for password. $dbipddr logging of ip address. $dbdark might be a setting for light or dark theme.
In the databasae, it's just named as Name, Pass, IPAddr, DarkTheme or whatever. I've very rarely ever had to change names. But before I even start a project, I outline not only what the project is going to do, but how the database will look and function as well.