struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <>
Subject Re: Less boilerplate in code
Date Sat, 24 May 2014 15:11:18 GMT
On May 24, 2014 8:09 AM, "Christian Grobmeier" <> wrote:
> I didn't know this: {0.enrollmentDate,date,yyyy-MM-dd} would call

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 essence. In this case, logging, I'd rather focus on
what I'm logging than the mechanics of Java. A giant chunk of code in the
middle of what I'm *really* doing is distracting and takes the focus away
from the problem being solved.

This is true of Java in general, but I don't want to be overwhelmed by
secondary concerns while reading code, whenever possible.

While I don't necessarily advocate this as the *only* solution, I wouldn't
mind introducing some minor syntax in format strings. I do wonder if it
should fit in better with an existing EL rather than introducing yet
another, though.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message