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”
Imagine we have a small JavaFX application. We are building this application in Eclipse, although this should not make any material difference, you could build it in using any IDE or simple command line tools.
This application has some java files under the “src” folder. There is also a “resources” folder which contains some none java files which the application will reference. Added to this we are using some 3rd party JAR libraries. Finally, we have a text-based properties file for our application.
Our project structure looks like this:
We are going to use ANT to produce a Windows executable application. The steps we need to take to do this are: – Continue reading “ANT – A worked example”
ANT – Another Neat Tool
Ant is a tool developers use to package up an application to hand over to deployment. Continue reading “What is Apache Ant?”
I was reading a blog the other day and the author was talking about writing a Java application in 10 minutes as a test. They finished off by saying that even with time to consider the solution they do not think they could improve upon it. When I looked at the code my first thought was “what a mess”, Continue reading “The only right way to write code!”
In the last post we saw how you can easily create a JTree using an array of strings. The JTree however did not display the values in a hierarchy but displayed all the values at the same level. So in this post we will build our Java Desktop Application using JTree with a hierarchy.
JTree is a Swing class used display a tree like structure such as the one shown below.
I am a firm believer in code comments among other things. So when I came across a blog post at http://blog.jooq.org/2013/12/04/when-source-code-comments-indicate-trouble/ talking about amusing comments coders leave in their code for people to find later I followed the links and found this: Continue reading “Code Comments”
Lots of people set out to learn a language, take a course and then at the end of it don’t know what to do next. They don’t feel they are a coder, they still can’t do anything of substance. We all go through this. There is a chasm between knowing a programming language and being able to do things with it. The next step is to learn to write an application. Continue reading “Having learnt the language now what?”
If you ask this question, there will be an avalanche of responses. The responses will probably be of the type, learn this language because its new/it’s in demand/it pays well. Continue reading “What programming language should I learn?”
I see lots of posts around the web about people who are interested in learning to program. From the questions they ask you can tell they have aspirations to be the next best thing since sliced bread. While all of this unharnessed enthusiasm is great we all need a sense of reality. So, what does it take to be a programmer?