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

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.

主站蜘蛛池模板: 吴川市| 灯塔市| 新闻| 正镶白旗| 会泽县| 绥中县| 德清县| 抚顺市| 祁门县| 双江| 桦南县| 专栏| 达日县| 苗栗市| 通江县| 安西县| 泾川县| 潜山县| 衡东县| 申扎县| 万载县| 永寿县| 霍州市| 汉阴县| 南皮县| 辰溪县| 淄博市| 滨海县| 潜江市| 喀喇沁旗| 盐边县| 张家界市| 方城县| 连城县| 宁远县| 沅江市| 新建县| 乌拉特中旗| 五华县| 江源县| 永吉县|