1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <!DOCTYPE html>
- <html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">
- <head>
- <meta charset="utf-8" />
- <meta name="generator" content="pandoc" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
- <title>Chichi code report</title>
- <style>
- code{white-space: pre-wrap;}
- span.smallcaps{font-variant: small-caps;}
- span.underline{text-decoration: underline;}
- div.column{display: inline-block; vertical-align: top; width: 50%;}
- div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
- ul.task-list{list-style: none;}
- .display.math{display: block; text-align: center; margin: 0.5rem auto;}
- </style>
- <link rel="stylesheet" href="C:\SGZ_Pro\Hobbys\Writing\Org\pages\blog\styles.css" />
- <!--[if lt IE 9]>
- <script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
- <![endif]-->
- <link rel='stylesheet' type='text/css' href='styles.css' />
- </head>
- <body>
- <header id="title-block-header">
- <h1 class="title">Chichi code report</h1>
- </header>
- <ul>
- <li>Python-Projects could be instead named Scripts</li>
- <li>Don't put str(bytes)</li>
- <li>Look into using a sesson class</li>
- <li>Better function names</li>
- <li>Don't have hanging print statements</li>
- <li>Don't use os.system</li>
- <li>Use <code class="verbatim">tqdm</code> for progress bar</li>
- <li>Don't exit on every request that's not 200. You use the <code class="verbatim">ok</code> attribute</li>
- <li>Use click for parsing cli args</li>
- <li>In python use a negative index not len(…) -1</li>
- <li>Check out python params</li>
- <li>Check out python dicts</li>
- <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>
- <li>List comprehensions: map, filter and reduce</li>
- </ul>
- <hr>
- <footer>
- <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>
- 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>.
- </footer>
- </body>
- </html>
|