So called because this article puts together all the parts of a web service by hand so that when you use the available tools out there designed to make things easier and quicker you can work out what has gone wrong and how to fix it.
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”
The other day I came across an example where a formula written in a Java program could be represented in standard notation on the screen. I thought this was brilliant. I recall back in my Uni days using the formula editor in Microsoft Word to present formulas. Now I don’t have a use for this in Java yet but, you never know. However in case anyone out there does have a requirement to represent a formula written in a programming language in standard notation then maybe this will help. Continue reading “Math Formula in Java”
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”
One of the challenges when writing Desktop applications in Java has always been deployment. The write once run code anywhere concept has always been attractive but it has been the running of the code which has traditionally been the stumbling block.
Over the years there have been many solutions developed to overcome these challenges. Initially there was Continue reading “Java Executables”