|
8 | 8 | In this first part, I'm going to introduce the basics of 'Test-Driven
|
9 | 9 | Development' (TDD). We'll build a real web application from scratch, writing tests first at every stage.
|
10 | 10 |
|
11 |
| -We'll cover functional testing with Selenium, as well as unit testing, and |
12 |
| -see the difference between the two. I'll introduce the TDD workflow, what |
13 |
| -I call the unit-test/code cycle. We'll also do some refactoring, and see how |
14 |
| -that fits with TDD. Since it's absolutely essential to serious software |
15 |
| -engineering, I'll also be using a version control system (Git). We'll discuss |
16 |
| -how and when to do commits and integrate them with the TDD and web development |
17 |
| -workflow. |
18 |
| - |
19 |
| -We'll be using Django, the Python world's most popular web framework |
20 |
| -(probably). I've tried to introduce the Django concepts slowly and one at |
21 |
| -a time, and provide lots of links to further reading. If you're a total |
22 |
| -beginner to Django, I thoroughly recommend taking the time to read them. If |
23 |
| -you find yourself feeling a bit lost, take a couple of hours to go through |
24 |
| -the official Django tutorial (make sure to use the |
25 |
| -https://docs.djangoproject.com/en/1.11/intro/tutorial01/[1.11 version]), and |
26 |
| -then come back to the book. |
27 |
| - |
28 |
| -You'll also get to meet the Testing Goat... |
| 11 | +We'll cover functional testing with Selenium, as well as unit testing, |
| 12 | +and see the difference between the two. |
| 13 | +I'll introduce the TDD workflow, Red/Green/Refactor. |
| 14 | + |
| 15 | +I'll also be using a version control system (Git). |
| 16 | +We'll discuss how and when to do commits and integrate them with the TDD and web development workflow. |
| 17 | + |
| 18 | +We'll be using Django, the Python world's most popular web framework (probably). |
| 19 | +I've tried to introduce the Django concepts slowly and one at a time, |
| 20 | +and provide lots of links to further reading. |
| 21 | +If you're a total beginner to Django, I thoroughly recommend taking the time to read them. |
| 22 | +If you find yourself feeling a bit lost, |
| 23 | +take a couple of hours to go through the https://docs.djangoproject.com/en/4.2/intro/[official Django tutorial] |
| 24 | +and then come back to the book. |
| 25 | + |
| 26 | +In Part 1 you'll also get to meet the Testing Goat... |
29 | 27 |
|
30 | 28 | .Be Careful with Copy and Paste
|
31 | 29 | [TIP]
|
32 | 30 | ====
|
33 |
| -If you're working from a digital version of the book, it's natural to want to |
34 |
| -copy and paste code listings from the book as you're working through it. It's |
35 |
| -much better if you don't: typing things in by hand gets them into your muscle |
36 |
| -memory, and just feels much more real. You also inevitably make the occasional |
37 |
| -typo, and debugging them is an important thing to learn. |
38 |
| -
|
39 |
| -Quite apart from that, you'll find that the quirks of the PDF format mean |
40 |
| -that weird stuff often happens when you try to copy/paste from it... |
| 31 | +If you're working from a digital version of the book, |
| 32 | +it's natural to want to copy and paste code listings from the book as you're working through it. |
| 33 | +It's much better if you don't: typing things in by hand gets them into your muscle memory, |
| 34 | +and just feels much more real. |
| 35 | +You also inevitably make the occasional typo, and debugging them is an important thing to learn. |
| 36 | +
|
| 37 | +Quite apart from that, you'll find that the quirks of the PDF format |
| 38 | +mean that weird stuff often happens when you try to copy/paste from it... |
41 | 39 | ====
|
42 | 40 |
|
43 | 41 | --
|
0 commit comments