官术网_书友最值得收藏!

Solving the exercises

Almost every chapter has an Exercises section at the end. These exercises are designed to give you ideas for how you continue practicing what you've learned. They have already been solved in the GitHub repository so you can see how I've solved them. The next chapter always starts from the point where I've solved the exercises.

Should you choose to solve the exercises—which I encourage you to do—then the likelihood is that you'll have solved them in a different way than I would have. Unfortunately, this might leave you in merge hell when you begin the next chapter.

If you find yourself in this situation, I suggest you first study the differences between your approach and mine. Think about how they differ and the relative merits of each. (Do not think that mine will be any better than yours.)

Then, ensuring you've committed and successfully stored your code, move to a new tag and a new branch, starting again.

In other words, be pragmatic and don't spend an inordinate amount of time fighting the system. It's better to keep moving and not get stuck or frustrated.

Pro tip: always keep your exercise solutions in a separate commit. When you move on to the next chapter, branch from your pre-Exercises commit and merge in the official exercise solutions instead.

主站蜘蛛池模板: 祁东县| 东光县| 玉树县| 枣庄市| 松阳县| 光山县| 庄浪县| 彭阳县| 宾阳县| 财经| 曲周县| 田东县| 富锦市| 云霄县| 巴彦淖尔市| 阿拉善右旗| 奉贤区| 江孜县| 上虞市| 柳河县| 青田县| 醴陵市| 溧水县| 龙江县| 丽水市| 会昌县| 华蓥市| 兴义市| 新安县| 濮阳县| 绥阳县| 洪泽县| 黄梅县| 喀喇| 高唐县| 贞丰县| 错那县| 章丘市| 江都市| 明光市| 房产|