Possible optimized record construction in order to use as DTO
Pedro Lamarão
pedro.lamarao at prodist.com.br
Thu Jan 11 13:50:20 UTC 2024
Hello! My observation is below.
Em qui., 11 de jan. de 2024 às 09:50, Roel Meeuws <r.j.meeuws at gmail.com>
escreveu:
> now let's construct this:
> var line = new IrritatinglyBigEUReportLine(
> 12345,
> ZonedDateTime.now(),
> "John",
> "Doe",
> "529900T8BM49AURSDO55",
> BigDecimal.valueOf("100.0"),
> BigDecimal.valueOf("100.0"),
> BigDecimal.valueOf("100.0"),
> BigDecimal.valueOf("100.0"), // anyone knows what this value is here?
> ...
> );
>
I think this is an interesting usability problem that has many solutions.
My IDE, for example, puts a small widget in front of that line, showing the
name of the parameter.
I suspect many good editors today will show the name of the parameter with
some UX gesture, such as mouse rovering, or placing the caret at the
position and doing some key combination.
Many such problems are best solved by the editor.
--
Pedro Lamarão
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/amber-dev/attachments/20240111/bf3b2dae/attachment.htm>
More information about the amber-dev
mailing list