Abstraction, do I need to know this?

Abstraction is a concept that is that is not only relevant to software engineering but also to many scenarios in the world. According to Wikipedia "The essence of abstractions is preserving information that is relevant in a given context, and forgetting information that is irrelevant in that context". In a very simplified way this means ...

JavaFX graphs look pretty good!

When I was doing my 3rd year project in university I needed a good looking chart to use in my user interface and now I have grown older (nearly 2 whole years!) I wish I would have turned to the charts in JavaFX rather than the ugly looking JChart2D API that I used. Now don't get me ...

Java 8 Streams

Streams are another feature that were added with Java 8. It provides a different way of performing operations on a Collection. Rather than implementing how to perform an operation on a Collection you instead define what you want to come out of it, which follows the Functional Programming paradigm that was made available with Java ...

Method::reference

Method references are a feature of Java 8. They are effectively a subset of Lambda expressions because if a Lambda expression can be used then it might be possible to use a method reference, but not always. They can only be used to call a singular method, which obviously reduces the possible places they can ...

Which for loop?

Java 8 has introduced another type of for loop. This gives us the third way to use them. You would think that releasing another way to use the loop would suggest that it must be better than the others. But that is not the case, each one has subtle differences meaning you should have a ...

A Little Lambda Tutorial

Lambda expressions are thought to be one of the biggest features in the release of Java 8 as they allow a more functional approach to Java programming. This is something that wasn't built into Java in previous versions. Java follows the Object-Oriented programming paradigm which uses object which can store data in fields and manipulate ...

Getting started with JavaFX

JavaFX is used to create desktop applications and internet applications.  It is meant to replace Swing as the main GUI library that comes included with Java SE.  This post will cover some of the basics to help get started with using JavaFX. Before I start giving out code examples I am going to insist that ...

Should you write comments?

To comment or not to comment, that is the question. I had a little argument with some of my family who have also done some coding, although one of them is still in secondary school, about this subject. They came a had a quick look at some code I was writing at home and asked ...

How do I use this?

I'm trying to write my first ever blog post and I have absolutely no idea how to start.  It took me at least 5 minutes to figure out how to change the title, hence the name of the post. As I write this I am overcome with dread but I will try stick with this. ...

Browse Categories