Hacker News new | past | comments | ask | show | jobs | submit login

Generating getters is actually 2 IDE clicks that will protect you down the road.

Trying to refactor fields that made it into a public API is a nightmare. If you're shipping code people use, you won't get to refactor their projects from your upstream library.

Also, no one is suggesting everything needs a setter. Where is this coming from?




If I could I would make this two IDE clicks behind a big mean warning. In my experience people tends to autopilot it without thinking about what that entails.




Consider applying for YC's Summer 2025 batch! Applications are open till May 13

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: