Bram's Dev Blog

home

100 Days of Code Day 12 report - Adding error codes

31 Aug 2018

Improving logging and error messages

Where I can, I want to stick to the conventions for javadoc. Today I was struggling with the @return information, since I have multiple possible outcomes for a method. Should I write multiple @return tags in javadoc was exactly what I was wondering about. Single line, just saying in general what your return.

The cases that I have already isolated and for which I now return meaningful error messages

Cases that I would still like to cover:

And do proper testing for all of these cases.

Day 12 Plan

Further improvements to logging of updates and more meaningful error messages on the Analyzer failure page.

Future days

Sustainability - Raising the stakes (No change here)

Just keeping this section in the report. It was already in here earlier, didn’t change or makeup my mind yet.

I’m strongly thinking about raising the stakes by

This way, every day would be a win. Still doubting about which rules I should put in place. For now, I’m thinking along the lines of:

  1. I can anticipate or fix a lost day by doing an hour extra the day before, or an hour extra the day after.
  2. Goal is to have a steady frequency, so I can’t just do 8h on a sunday to get myself off the hook for the next 7 days.
  3. Sponsor commitments are fully voluntarily: any sponsor can back out at any time
  4. My commitment is fully voluntarily: if I want to change the rules or back out, I can at any time

Thinking further about September, these are already days that will be very tough:

So that’s already a lot of exposure to potentially missed days. Not sure if raising the stakes this way will be productive or not.