Home » Author Archives: David Gray

Author Archives: David Gray

David Gray
David is a software engineer with a passion for everything Java and the web. He is a server side java developer based in Derby, England by day and a Android, jQuery, jack of all trades by night.

5 Things I’ve learnt being a scrum master

agile-logo

I’ve been a scrum master now for about 6 months. Having been involved in scrum previously as a product owner, as well as a developer, moving into this role has really opened my eyes to some of the more political and arguably awkward elements of trying to get rid of impediments. Stay calm when others aren’t Something that I think ...

Read More »

Jax-RS custom exception handling

java-interview-questions-answers

One of the nice things about working with JEE is the components available really are pretty standard.  While using JAX-RS, sometimes you need to control how exceptions get processed and fed back to the user.  If an exception is thrown, by default, you’ll get some horrible HTTP 500 internal server exception, exposing the internal failings of your web service. Consider ...

Read More »

Strategy Pattern ain’t meant for Spring!

spring-interview-questions-answers

Right, so lets say you’re writing a Spring MVC app and you decide, “I want to do seperate encapsulated algorithms that can be swapped to carry out a specific behaviour”. The classic response to this would be “you need the Strategy Pattern ma’ boy!”.  So, that’s what I did, consider the code below… Interface     public interface MealStrategy { ...

Read More »

Java testing with Selenium and dynamic ids in html

selenium-logo

One of the cool aspects of Selenium, is that not only can you record yourself using a site, you can actually run this as a junit test. Firstly, I’ll install Selenium in Firefox (as this is the official version) and record a quick test.  It’s important to note that Selenium will give you a number of different ways to remember ...

Read More »

Parsing ESPN API using Java and Google GSON

json-logo

For my first post, I’ll explain how to parse the ESPN API.  The API documentation can be found at http://developer.espn.com/docs. Firstly, you’ll need to request an API key, then you can start querying the REST API to retrieve the JSON response.  In the following example, I’m going to query simply for all the players in the sport of “Soccer” (dam ...

Read More »
Want to take your Java Skills to the next level?
Grab our programming books for FREE!
  • Save time by leveraging our field-tested solutions to common problems.
  • The books cover a wide range of topics, from JPA and JUnit, to JMeter and Android.
  • Each book comes as a standalone guide (with source code provided), so that you use it as reference.
Last Step ...

Where should we send the free eBooks?

Good Work!
To download the books, please verify your email address by following the instructions found on the email we just sent you.