<a href='https://www.youtube.com/watch?v=7mze96vKW_8' style='font-weight: bold;'>Watch on YouTube</a><br>
<br>
<p><strong>About the show</strong></p>
<p>Sponsored by <a href="http://pythonbytes.fm/foundershub2022"><strong>Microsoft for Startups Founders Hub</strong></a>.</p>
<p><strong>Connect with the hosts</strong></p>
<ul>
<li>Michael: <a href="https://fosstodon.org/@mkennedy"><strong>@mkennedy@fosstodon.org</strong></a></li>
<li>Brian: <a href="https://fosstodon.org/@brianokken"><strong>@brianokken@fosstodon.org</strong></a></li>
<li>Show: <a href="https://fosstodon.org/@pythonbytes"><strong>@pythonbytes@fosstodon.org</strong></a></li>
</ul>
<p><strong>Michael #1:</strong> <a href="https://survey.stackoverflow.co/2022"><strong>StackOverflow 2022 Developer Survey</strong></a></p>
<ul>
<li>Last year we saw Git as a fundamental tool to being a developer. This year it appears that <strong>Docker is becoming a similar fundamental tool for Professional Developers</strong>, increasing from 55% to 69%.</li>
<li>Language: <strong>Rust</strong> is […] <strong>the most loved language</strong> with 87% of developers saying they want to continue using it.</li>
<li>JS Frameworks: <strong>Angular.js is in its third year as the most dreaded</strong>.</li>
<li>Let me Google that for you: 62% of all respondents <strong>spend more than 30 minutes a day searching for answers</strong> or solutions to problems. 25% spending more than an hour each day. </li>
<li>The demise of the full-stack developer <a href="https://survey.stackoverflow.co/2022/#section-developer-roles-developer-type">is overrated</a>.</li>
<li>I do wish <a href="https://survey.stackoverflow.co/2022/#section-demographics-gender">there were more women</a> in the field.</li>
<li><strong>Databases</strong>: Postgres is #1 and MongoDB is still going strong.</li>
<li>The “<a href="https://survey.stackoverflow.co/2022/#section-most-popular-technologies-web-frameworks-and-technologies">which web framework do you use</a>?” question is a full on train wreck. Why is this so hard for people to write the question? Node.js or Express (built on Node) vs. FastAPI or Flask (but no Python?)</li>
<li>Most wanted / loved language is Rust (wanted) and <strong>Python/Rust tied for most wanted</strong>.</li>
<li><a href="https://survey.stackoverflow.co/2022/#section-worked-with-vs-want-to-work-with-programming-scripting-and-markup-languages">Worked with vs. want to work with</a> has some interesting graphics.</li>
</ul>
<p><strong>Brian #2:</strong> <a href="https://pepy.tech"><strong>PePy.tech - PyPI download stats with package version breakdown</strong></a></p>
<ul>
<li>Petru Rares Sincraian</li>
<li>We’ve discussed pypistats.org before, which highlights
<ul>
<li>daily downloads</li>
<li>downloads per major/minor Python version</li>
<li>downloads per OS</li>
</ul></li>
<li>PyPy is a bit more useful for me
<ul>
<li>default shows last few versions and total for this major version</li>
<li>“select versions” box is editable.
<ul>
<li>clicking in it shows dropdown with downloads per version already there</li>
<li>you can add <code>*</code> for graph of total</li>
<li>or other major versions if you want to compare</li>
</ul></li>
<li>daily/weekly/monthly is nice, to round out some noise and see larger trends</li>
<li>Oddity I noticed - daily graph isn’t the same dates as the table.
<ul>
<li>off by a day on both sides</li>
<li>not a big deal, but I notice these kinds of things.</li>
</ul></li>
</ul></li>
</ul>
<p><strong>Michael #3:</strong> <a href="https://github.com/exaloop/codon"><strong>Codon Python Compiler</strong></a></p>
<ul>
<li>via Jeff Hutchins and Abdulaziz Alqasem</li>
<li>A high-performance, zero-overhead, extensible Python compiler using LLVM </li>
<li>You can scale performance and produce executables, even when using third party libraries such as matplotlib. </li>
<li>It also supports writing and executing GPU kernels, which is an interesting feature.</li>
<li>See how it works at <a href="https://exaloop.io">exaloop.io</a></li>
<li>BTW, <strong>really terrible licensing</strong>.
<ul>
<li>Free for non-commercial (great)</li>
<li>“Contact us” for commercial use (it’s fine to charge, but give us a price)</li>
</ul></li>
</ul>
<p><strong>Brian #4:</strong> <a href="https://medium.com/techtofreedom/8-levels-of-using-type-hints-in-python-a6717e28f8fd"><strong>8 Levels of Using Type Hints in Python</strong></a></p>
<ul>
<li><a href="https://medium.com/@yangzhou1993?source=post_page-----a6717e28f8fd--------------------------------">Yang Zhou</a> (yahng cho)</li>
<li>A progression of using type hints that seems to track how I’ve picked them up</li>
</ul>
<ol>
<li>Type Hints for Basic Data Types.
<ul>
<li><code>x: int</code></li>
</ul></li>
<li>Define a Constant Using Final Type
<ul>
<li><code>DB: Final =</code> <code>'``PostgreSQL'</code></li>
<li>(ok. I haven’t used this one at all yet) </li>
</ul></li>
<li>Adding multipe type hints to one variable.
<ul>
<li><code>int | None</code></li>
</ul></li>
<li>Using general type hints.
<ul>
<li><code>def func(nums: Iterable)</code> </li>
<li>Also using <code>Optional</code></li>
</ul></li>
<li>Type hints for functions
<ul>
<li><code>def func(name: str) → str:</code> </li>
<li>(I probably would put this at #2)</li>
</ul></li>
<li><p>Alias of type hints (not used this yet, but looks cool)
PostsType = dict[int, str]</p>
<p>new_posts: PostsType = {1: 'Python Type Hints', 2: 'Python Tricks'}</p></li>
<li><p>Type hints for a class itself, i.e. <code>Self</code> type
from typing import Self</p>
<p>class ListNode:
def __init__(self, prev_node: Self) -> None:
pass</p></li>
<li>Provide literals for a variable. (not used this yet, but looks cool)
from typing import Literal
weekend_day: Literal['Saturday', 'Sunday']
weekend_day = 'Saturday'
weekend_day = 'Monday' # will by a type error</li>
</ol>
<p><strong>Extras</strong> </p>
<p>Brian:</p>
<ul>
<li>I hear a heartbeat for Test & Code, so it must not be dead yet.</li>
</ul>
<p>Michael:</p>
<ul>
<li>New article: <a href="https://mkennedy.codes/posts/welcome-back-rss/">Welcome Back RSS</a>
<ul>
<li>From this I learned about <a href="https://readwise.io/read">Readwise</a>, <a href="https://www.kustosz.org">Kustosz</a>, and Python’s <a href="https://reader.readthedocs.io/en/latest/">reader</a>. </li>
</ul></li>
<li><a href="https://techhub.social/@year_progress/109611005011655695">Year progress == 100%</a></li>
<li><a href="https://www.bleepingcomputer.com/news/security/pytorch-discloses-malicious-dependency-chain-compromise-over-holidays/">PyTorch discloses malicious dependency chain compromise over holidays</a> (of course found over RSS and reeder — see article above)</li>
</ul>
<p><strong>Joke:</strong> <a href="https://www.reddit.com/r/programminghumor/comments/z6uga8/finally_they_made_a_switch_to_exit_vim/">vim switch</a></p>
↧