News for hackers. Stuff that matters.
Re:Show HN: Zero-dependency Java framework out of beta by ptx on Monday September 25, 2023 @03:20PM (#37649136)
Making the user manually escape parameters (and be very careful not to miss any) seems at odds with the goals of ease of use and maintainability. Most template libraries do this automatically by default.
Re:Show HN: Zero-dependency Java framework out of beta by 7ep on Monday September 25, 2023 @04:33PM (#37650206)
You are not wrong. Just, here, priority is

1. minimalism 2. ease of use

It's an uneasy balance. I am well aware of the value of fully-powered templating engines.

Re:Show HN: Zero-dependency Java framework out of beta by schemescape on Monday September 25, 2023 @06:22PM (#37651532)
For the record, I love this project's minimalist goal. Having said that, I agree with the other commenter that escaping by default (with an opt-out mechanism) is probably the better choice.

I don't even think this violates your prioritization because it should result in less code when considering an app in its entirety (framework + logic).

Re:Show HN: Zero-dependency Java framework out of beta by 7ep on Monday September 25, 2023 @08:31PM (#37652742)
Interesting point. Definitely worth considering. Thanks.