A nation of shopcoders

So we are back into another individual project week. We have had a week of learning basic Java, followed by a week of learning basic Android development, leading into a week of individual project work.

None of the suggested options were particularly inspiring at first glance, so I went off on a slight initial tangent thinking about what else I could do. I did think of a fortune telling app using Tarot cards, then I thought of a card playing app using Tarot cards (there are a million Tarot games). Then  I thought that was too complicated, so I was thinking of a simple trick-taking game like “The Cow Game“, a simplified version of “Aluette“.

But in the end I thought I wouldn’t go the trouble of writing my own brief and decided on one of the suggested ones:


Goal: Practice OO modelling in Java (unit tests, no UI)

You are required to build an app that allows a Shop to sell goods to a Customer. Stock and items are not important.

The Shop must be able to:

  • Make a Sale
    • The customer funds go down, shop sales go up
  • Give a refund
    • The customer funds go up, shop refunds go up
  • Report on income
    • Total sales minus total refunds

The Customer must:

  • Have a collection of possible Payment Methods:
    • CreditCard (default), DebitCard
  • Be able to select a Payment Method to pay at any Shop
  • Be able to select a Payment Method to recieve a refund onto a given Payment Method

(You may find HashMaps useful for this project)

Project Extensions

  • Add stock tracking

I thought, let’s just go boring. But I had a half hour planning session with Bobby, the other cohort members who is doing this project, and it got pretty complicated pretty quickly.



It’s going to be a challenge, but boring though it sounds, I’m getting a bit excited about working on it.

Maybe another extension could be customer complaints?



It’s Java: Deal with it

It’s Java – deal with it

This weekend we’re building a card game with Java (see what I did with the title there? Never mind …)

If you want to read a clever and accurate emotional reckoning of the week that rings true to me, read my classmate Claudia’s post for this week: Java(aagh?!).

I’m so glad we started to learn programming with Ruby, though. She was the first girlfriend who was so easy to be with that you didn’t realise you were also learning life lessons that would stand you in good stead when you tried to form a relationship with somebody new.


Oh Ruby, you were so beautiful … what happened to us?

The new cohort, Cohort 8, started this week and it’s really interesting seeing them going through the same experience we did not so long ago – five weeks, to be exact.

And, as set down by time-honoured tradition, this week Cohort 7 hosted a “pub quiz” for Cohort 8 as a social mixer. I managed to get a few very out-of-focus shots that I won’t bore you with here. Needless to say it was nothing like this:


The ladies and gentlemen of Codeclan enjoying a decorous evening’s entertainment?

Just imagine the opposite of that and you won’t be far off the mark.


There were definitely no togas.

I was on the organising committee and snagged the easiest round for myself, a general knowledge round. I made up for it on the night by hogging the microphone and making a general arse of myself which deflected some of the attention away from the shyer members of the organising committee.

I’m happy to report the night went with a swing, and unless everyone was lying to spare our embarrassment, a good time was had by all.

I could post some footage of our instructors dancing up a storm, but that wouldn’t be kind on my part. However, if it makes it onto YouTube I’ll update this post with a link. I’m not as kind as all that.