4 ms·
Totally agree. Functions should never accept an object reference or another function as a parameter when the necessary information could be provided directly as
by blt 5y ago
Totally agree. Functions should never accept an object reference or another function as a parameter when the necessary information could be provided directly as data (where "data" means C structs without pointers, protobuf, JSON, ...). Even code that mutates its arguments is easy to test if it's all simple data.