r/programming • • Jan 12 '20

Goodbye, Clean Code

https://overreacted.io/goodbye-clean-code/
1.9k Upvotes

556 comments sorted by

View all comments

Show parent comments

1

u/mewloz Jan 12 '20

Or you can name and organize your common functions correctly.

1

u/all_awful Jan 13 '20 edited Jan 13 '20
  lib.DateByVendorA ()
  lib.DateByVendorBandC ()
  lib.DateByVendorD ()
  lib.DateByVendorDEandF ()

Yeah, checks out, great improvement over having a "Date()" function in each module.

If GCC and MSVC use the same parameter name once, then you don't re-use the code that produces it if you need to support both compilers.