A colleague is looking to update all inspections in IntelliJ at work, which is commendable.
He referred a link, see [1], to me regarding the use of Booleans as method parameters ("switches"), which is a pet peeve of another colleague of mine.
I thought I'd just mention it here, for who's interested.
References
- [1] The Pitfalls of Boolean Trap
- https://ariya.io/2011/08/hall-of-api-shame-boolean-trap
No comments:
Post a Comment