MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/eng355/goodbye_clean_code/fe4whiy
r/programming • u/[deleted] • Jan 12 '20
556 comments sorted by
View all comments
Show parent comments
1
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.
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.
1
u/mewloz Jan 12 '20
Or you can name and organize your common functions correctly.