3 ms·
Brian McKenna is a public figure who people could easily have encountered in other ways. In my experience many functional programmers, myself included, do gene
by lmm 11y ago
Brian McKenna is a public figure who people could easily have encountered in other ways.
In my experience many functional programmers, myself included, do generalize where they don't need to (e.g. writing a function to accept any F[_]: Foldable when it's only ever called with List). At which point asking them to justify the abstraction is entirely justified. Conversely in cases where fancy functional techniques really are improving maintainability it's usually pretty easy to demonstrate this by comparing two implementations side by side.
- gb 11y agoAn advantage of using the most general signature possible is it restricts the things you can actually do with the values involved, which can make it easier to provide correct implementations.
- incepted 11y agoExactly. More generally, this is what code reviews are for. On top of the personal issues that might be occurring there, it looks like that team doesn't do code reviews. Code reviews are not just to make sure the code that goes in is sound, they also help getting multiple team members familiar with the entire code base.