![]() What if the application has a configuration file that has key value pairs as “User”: “”, “Password”: “password” and whenever some change is needed, only that file is touched and configurations are updated rather than digging into the actual code. And this could be a repetitive task after 2~3 months when some configuration again changes. Here, a developer must, for a small configuration change, take the latest of the code, make the required change, make sure nothing else breaks, re-deploy the application and then test it. Now in this scenario, the developer would again change the code and redeploy it. ![]() If the developer uses these credentials in the code and hardcodes them in their code file and deploys the application, it could work fine, job done! Now, imagine that after two months, the password for that FTP site is changed and the developer must again update that password in your application to make sure it does not break the existing functionality of FTP connection. If a developer has a module in his project that connects with an FTP server to download some files, then the developer would write a method to connect to FTP via FTP URL and use credentials like username and password for successful connection. Download complete source code from Github. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |