|
|
|
|
|
by CedricTeyton
1249 days ago
|
|
Hi Kevsim, thanks for your great comment, I do appreciate :) Sorry if you had a hard time to read this post. Your comment for the in Example #1 is right, we've shown only the first step. The second one would be to rename all others code operations:
=> Renaming `p1`, `p2`, `p1N`, `p2N
=> Remove the magic numbers 4, 6 and 1. One important thing in this article is the fact that each tip should be used by a developer locally as an intermediate step during a refactoring of a legacy code. So for each tip, the second piece of code should not be the final version to be committed. It clearly needs additional operations and transformations. We'll do our best to make our next post easier to digest :) |
|