- cross-posted to:
- [email protected]
- cross-posted to:
- [email protected]
Seeing that Uncle Bob is making a new version of Clean Code I decided to try and find this article about the original.
Seeing that Uncle Bob is making a new version of Clean Code I decided to try and find this article about the original.
I think this is your strawman version of “Clean Code”… not anything that’s actually in it…
I “like” some parts of your example more than the previous one, but a lot of this depends on where exactly in the whole program this method is - if this method is on a “Salesman” class - does it make sense to pass the “Contract” in? If there’s a Contract class available, why doesn’t the “calculateCommission” method exist on it?