Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start with the narrowest useful interface #78

Open
hadley opened this issue May 20, 2019 · 2 comments
Open

Start with the narrowest useful interface #78

hadley opened this issue May 20, 2019 · 2 comments

Comments

@hadley
Copy link
Member

hadley commented May 20, 2019

  • Ensures you get good error messages if unexpected input is supplied.

  • Makes the interface maximally extensible, because it's easy to add new functionality; it's hard to take away (or modify) existing functionality.

  • Enables you to make a more considered decision about what is important.

@hadley
Copy link
Member Author

hadley commented May 23, 2019

Need to carefully balance user friendliness for good inputs with informative errors for bad inputs. The more flexible you make the input specification, the greater the chance that a bad input will silently return an incorrect value.

@hadley
Copy link
Member Author

hadley commented Jul 20, 2023

Related to #141

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant