Dave Cheney personal blog
Be wary of functions which take several parameters of the same type
A good example of a simple looking, but hard to use correctly, API is one which takes two or more parameters of the same type. Let’s compare two function signatures:
- Points
- 218
- HN comments
- 234
- Submissions
- 1
- Cited by
- 0 commenters
Software EngineeringCareer & Management2019
On Hacker News
| Submitted | Title on HN | Points | Comments |
|---|---|---|---|
| Sep 26, 2019 | Be wary of functions which take several parameters of the same type by ngaut | 218 | 234 |