|
4 | 4 |
|
5 | 5 | <details open><summary><strong>What is the best way to use it?</strong></summary><br>
|
6 | 6 | I keep the text file open on separate desktop at all times. It is also in a different text editor than the one I usually use, so it's easier to switch to with <code>Ctrl+↹</code> / <code>⌘↹</code>. Cheatsheet consists of minimal text and short examples so things are easy to find with <code>Ctrl+F</code> / <code>⌘F</code>. If you're on the webpage, searching for <code>'#<name>'</code> will only search for the titles.<br><br>
|
7 |
| - I also keep the Python console open at all times to test little snippets of code, to check out the available functions of a module using code completion and above all, to use <code>help(<module/object/function/type>)</code> command. If something is still unclear, then I search the Python docs by googling <code>'python docs <module/function>'</code>. |
| 7 | + I also keep the Python console open at all times to test little snippets of code, to check out the available functions of a module using code completion and above all, to use <code>help(<module/object/function/type/str>)</code> command. If something is still unclear, then I search the Python docs by googling <code>'python docs <module/function>'</code>. |
8 | 8 | </details><br>
|
9 | 9 |
|
10 | 10 | <details open><summary><strong>What does the '<type>' signify?</strong></summary><br>
|
|
32 | 32 | Check out <a href="https://google.github.io/styleguide/pyguide.html">Google Style Guide</a> and use <code>Ctrl+Alt+L</code> / <code>⌥⌘L</code> shortcut in PyCharm to automatically reformat code.
|
33 | 33 | </details><br>
|
34 | 34 |
|
35 |
| -<details open><summary><strong>Why are import statements, virtual environment, tests, packaging and installation not covered?</strong></summary><br> |
| 35 | +<details open><summary><strong>Why are there no blank lines between method definitions?</strong></summary><br> |
| 36 | + This way classes can be copy-pasted into the Python console, which would otherwise raise IndentationError. |
| 37 | +</details><br> |
| 38 | + |
| 39 | +<details open><summary><strong>Why are import statements, virtual environments and tests not covered?</strong></summary><br> |
36 | 40 | Check out <a href="https://docs.python-guide.org/">The Hitchhiker’s Guide to Python</a> for a nice overview of the mentioned topics.
|
37 | 41 | </details><br>
|
38 | 42 |
|
39 |
| -<details open><summary><strong>Why is Django not covered?</strong></summary><br> |
40 |
| - Maybe it will be in the future. For now, here is a nice <a href="https://github.com/kickstartcoding/cheatsheets/blob/master/build/topical/django.jpg">Django cheatsheet</a>. |
| 43 | +<details open><summary><strong>Why are Flask and Django not covered?</strong></summary><br> |
| 44 | + Maybe they will be in the future. For now, here is a nice <a href="https://github.com/kickstartcoding/cheatsheets/blob/master/build/topical/django.jpg">Django cheatsheet</a>. |
41 | 45 | </details><br>
|
42 | 46 |
|
43 | 47 | <details open><summary><strong>Why are there no concrete Regex examples?</strong></summary><br>
|
|
49 | 53 | </details><br>
|
50 | 54 |
|
51 | 55 | <details open><summary><strong>Why is staticmethod decorator not covered in Class section?</strong></summary><br>
|
52 |
| - Because it's of very limited use and is easy to mix up with classmethod. |
| 56 | + Because it is of very limited use and is easy to mix up with classmethod. |
53 | 57 | </details><br>
|
54 | 58 |
|
55 | 59 | <details open><summary><strong>Why are descriptors not covered?</strong></summary><br>
|
|
0 commit comments