Re: Less boilerplate in code

2014-05-24 Thread Dave Newton
On May 24, 2014 8:09 AM, "Christian Grobmeier" wrote: > I didn't know this: {0.enrollmentDate,date,-MM-dd} would call SimpleDateFormat. I find it reasonably obvious this is formatting a date. I also don't see anything confusing about the call itself. I prefer code to be distilled to its ess

Re: Less boilerplate in code

2014-05-24 Thread Christian Grobmeier
On 24 May 2014, at 0:43, Chris Pratt wrote: log.debug("Loading Student [{0.number}] {0.name} Enrolled: {0.enrollmentDate,date,-MM-dd}",student); This makes logging complicated. I actually find it a lot less complicated than the equivalent: if(log.isDebugEnabled()) { log.debug("Loading S