If you intend to build an application designed for more than a single user then you will need to provide a means for users to authenticate themselves. Authentication is the means for a user to provide information that allows your application to identify who you are.
The application will then typically use authorisation to check which functions and information you are allowed to access. To take a look at what is involved in an authentication system lets build a simple system to get you started.
When I first started out in programming I made the same mistake as I see countless people make when starting. I wrote code for me and that worked, and that was good enough for me. As time passed and the code I produced expanded and became more ambitious so my bad habits became more ingrained. I think it is something we all do; we all go through. It is not until we encounter an issue, a reason to change, that we appreciate the error of our ways. Continue reading “Java application dynamic configuration using a properties file”→
Traversing the file system is one of the common tasks required in applications. Search the web for examples and you can find plenty of examples of how to go about it. One of the most popular is to work through the file system using recursive calls like this: Continue reading “Traversing the file system”→
Now you may be thinking that we have just completed a basic application in the previous section and whilst that is true, that was all about proving our environment works. Now we are going to assume our tools work and take a look at building our application.
As any experienced developer will tell you, when things go wrong with your application, it’s too late to wish you had some information to tell you what is going on; develop a strategy for capturing what your application is doing behind the scenes and implement it throughout your code.