Profile cover photo
Profile photo
Albert Attard
Java
Java
About
Albert's posts

Post has attachment
Tutorial: http://www.javacreed.com/testing-swing-application/

This tutorial demonstrates how to develop a simple Java Swing (or user interface) application and test the UI related logic using automated tests, such as JUnit, using a series of videos compiled as a playlist.  The application is kept very simple while making use of various technologies, such as EasyMock.  This tutorial is targeted to college or university students who studied Java but lack experience and would like to do something productive.  The main idea of this tutorial is not to learn Java, but to help the viewers to build testable Swing applications.  The playlist presented by this tutorial shows how to build a Java Swing application that can be easily tested using automated tests in a step-by-step fashion.

Post has attachment
ZzzxxzXt

Post has attachment

Post has attachment

Post has attachment
A question that some developers ask is, with many List implementations, which one should one uses?  The correct answer to this question is, it depends.  In this article we compared various lists implementations and measured their performance when executing some common actions.  Some implementations performed poorly when compared to the others are highlighted in the first two tests.  This does not mean that those that did not do well should never be used.  On the contrary, all implementations have their place and here we only considered single threading environment.  Before using any given list, stop and think how this list is going to be used and run some tests like the ones we saw here before jumping into any hasty conclusions.

Post has attachment
Photo

Post has attachment
A simple solution to order a #CopyOnWriteArrayList 

Post has attachment
Dependency injection is quite popular and there are many articles about this in the Internet.  Most of these articles focus on a specific technology and show you how to use dependency injection.  This article focuses on why we use dependency injection in order to help the reader understanding the idea and concept behind dependency injection.

http://www.javacreed.com/why-should-we-use-dependency-injection/

Post has attachment
Dependency injection is quite popular and there are many articles about this in the Internet.  Most of these articles focus on a specific technology and show you how to use dependency injection.  This article focuses on why we use dependency injection in order to help the reader understanding the idea and concept behind dependency injection.

http://www.javacreed.com/why-should-we-use-dependency-injection/

Post has attachment
Imagine you are waiting for a call from your girlfriend with whom you had an argument. She too is waiting for you to call her and apologise. In other words, both of you are waiting for the other to call. Now if no one takes the phone and calls the other, you will never talk again. This is a deadlock and in this article we will see how deadlock occurs in programming and how to prevent it. Unfortunately this article falls short in providing good tips about relationships.

http://www.javacreed.com/what-is-deadlock-and-how-to-prevent-it/
Wait while more posts are being loaded