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.



Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: