chichi-code-report.html 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <!DOCTYPE html>
  2. <html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">
  3. <head>
  4. <meta charset="utf-8" />
  5. <meta name="generator" content="pandoc" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
  7. <title>Chichi code report</title>
  8. <style>
  9. code{white-space: pre-wrap;}
  10. span.smallcaps{font-variant: small-caps;}
  11. span.underline{text-decoration: underline;}
  12. div.column{display: inline-block; vertical-align: top; width: 50%;}
  13. div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
  14. ul.task-list{list-style: none;}
  15. .display.math{display: block; text-align: center; margin: 0.5rem auto;}
  16. </style>
  17. <link rel="stylesheet" href="C:\SGZ_Pro\Hobbys\Writing\Org\pages\blog\styles.css" />
  18. <!--[if lt IE 9]>
  19. <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
  20. <![endif]-->
  21. <link rel='stylesheet' type='text/css' href='styles.css' />
  22. </head>
  23. <body>
  24. <header id="title-block-header">
  25. <h1 class="title">Chichi code report</h1>
  26. </header>
  27. <ul>
  28. <li>Python-Projects could be instead named Scripts</li>
  29. <li>Don't put str(bytes)</li>
  30. <li>Look into using a sesson class</li>
  31. <li>Better function names</li>
  32. <li>Don't have hanging print statements</li>
  33. <li>Don't use os.system</li>
  34. <li>Use <code class="verbatim">tqdm</code> for progress bar</li>
  35. <li>Don't exit on every request that's not 200. You use the <code class="verbatim">ok</code> attribute</li>
  36. <li>Use click for parsing cli args</li>
  37. <li>In python use a negative index not len(…) -1</li>
  38. <li>Check out python params</li>
  39. <li>Check out python dicts</li>
  40. <li>Commits should be more uniform and less conversational <a href="https://gist.github.com/joshbuchea/6f47e86d2510bce28f8e7f42ae84c716">https://gist.github.com/joshbuchea/6f47e86d2510bce28f8e7f42ae84c716</a></li>
  41. <li>List comprehensions: map, filter and reduce</li>
  42. </ul>
  43. <hr>
  44. <footer>
  45. <a rel='license' href='http://creativecommons.org/licenses/by-sa/4.0/'><img alt='Creative Commons License' style='border-width:0' width='88' height='31' src='../images/cc-by-sa.png' /></a><br>
  46. Unless otherwise noted, all content on this website is Copyright Zortazert 2021-2022 and is licensed under <a rel='license' href='http://creativecommons.org/licenses/by-sa/4.0/'>CC BY-SA 4.0</a>.
  47. </footer>
  48. </body>
  49. </html>