Title: Issue 412 Slug: issue-412 Date: 2020-03-18 14:42 Tags: Weekly,Python,pycoders,ZH
- 最关键的 Python 代码指标
- STEVE DOWER
“Code metrics are a popular way to analyse the complexity of our software. For some reason, we are attracted to single-figure summaries of quality, whether it’s lines of code, cyclomatic complexity, or the Pylint score. Personally, I think using these are about as valuable as judging another person based on one of their visible or measurable characteristics.”
对 圈复杂度 们的叕一次私人反击, 但是, 资本将重构一切.
- 用 PyGame 作 2D 卷轴游戏
- REAL PYTHON
In this step-by-step course, you’ll learn how to use PyGame. This library allows you to create games and rich multimedia programs in Python. You’ll learn how to draw items on your screen, implement collision detection, handle user input, and much more.
- 机器学习十大 Python 软件包
The field of data science is rapidly growing and relies heavily on Machine Learning; with hundreds of ML libraries, Python has become the language of choice for most engineers. Check out ActiveState’s list of the top 10 ML packages to learn →
一直低调赚钱的 ACTIVESTATE , 发布的 Python 发行版本可以说是最稳定的一支; 他们心目中的 ML 模块是:
#10 Matplotlib #9 Natural Language Toolkit (NLTK) #8 Pandas #7 Scikit-learn #6 Seaborn #5 NumPy #4 Keras #3 SciPy #2 Pytorch #1 TensorFlow
以及, TF 完胜 PyTorch ...
- Django 项目新治理模型
The Django core team, the Django Technical Board, and the Board of Directors of the Django Software Foundation have held their deliberations and voted to accept Django Enhancement Proposal (DEP) 10. Learn what the adoption of DEP 10 means for Django now and in the future.
- NIKITA SOBOLEV
What makes a good log? When should you log something, and when is logging overkill? In this opinion piece, Nikita Sobolev argues that logging isn’t always best-practice in an application and discuss some alternatives that might make better sense from a business perspective.
- 针对 Django 服务层
- JAMES BENNETT
“[On the] recommendation to add a ‘service layer’ to Django applications. The short version of my opinion on this is: it’s probably not what you want in Django apps.”
- JENNIFER OUELLETTE
Monty Python 真的是人类历史上最伟大的喜剧团体了...
Articles, Tutorials and Talks
- MELISSA MENDONÇA
Why is it so difficult to write good documentation? Why are documentation authors for projects often invisible? In this article, Melissa Mendonça investigates the answers to these questions and describes a new NumPy Enhancement Proposal that aims to restructure the NumPy documentation, build a documentation team, and diversify the contributor base.
说的没错, 可是现在人们不看文字了, 这又怎么办?
- DUSTIN MCINTOSH
“World Wandering Dudes is a simulation framework in which you initiate a ‘world’ which consists of a ‘field’ and a set of ‘creatures’ (dudes). The field has food on it. Each day, the creatures run around gathering the food which they need to survive and reproduce.”
- 如何在 Python 中进行二分法搜索
- REAL PYTHON
Binary search is a classic algorithm in computer science. In this step-by-step tutorial, you’ll learn how to implement this algorithm in Python. You’ll learn how to leverage existing libraries as well as craft your own binary search Python implementation.
- 用 defaultdict 处理字典键丢失
- REAL PYTHON
Learn how the Python defaultdict type works and how to use it for handling missing keys when you’re working with dictionaries. You’ll also learn how to use a defaultdict to solve problems like grouping or counting the items in a sequence or collection.
- 向 Django 开发者介绍 SQLAlchemy ORM
- DENIS OREHOVSKY
- • Shared by Denis Orehovsky
The Django ORM and SQLAlchemy are two of the most popular Python ORMs, but they have some pretty significant differences. Explore how common actions work in each framework, including transactions, models, queries, and dealing with the N+1 problem.
Django 内置的 ORM 是最好的.对于 Django 而言.
- 用 Python 和 AWS 进行 HTTP 异步攻击
- EMILE FUGULIN
“A couple of months ago, I was at work waiting patiently for some documentation to go live about a new type of attacks against modern web applications called HTTP Desync attacks. Here is the story of my findings in gunicorn!”
- 为毛 Iterable 为空时 all() 返回 True?
- CARL JOHNSONS
Does it make sense for all() to return True for an empty list? Is “all unicorns are blue” a true statement? Does shaving your dog contradict the statement “all mammals have fur?” You’ll have to read to find out!
- CAL PATERSON
“How inappropriate data access patterns massively slow down programs and how the same problems arise with RESTful APIs.”
看起来又是篇为 RPC 复辟叫好的文章.
- WebRTC: 可用示例
- PAWEŁ FERTYK
- Python Twisted 的异步 API 调用初学者指南
- MOSHE ZADKA
Twisted 的好,不仅仅在她很知名, 还在她是真的与时俱进的活的框架, )
- Itertools 模块简介
- FLORIAN DAHLITZ
- • Shared by Florian Dahlitz
叕一则对迭代工具包的介绍, 其实, 如此大力的宣传, 并不一定有效, 毕竟 Python 是过程型脚本语言, 不是纯函式语言哪
Interesting Projects, Tools and Libraries, Projects & Code
叕一个 IPython notebook 的再制品?
- NCLS: Python 的嵌套包含列表
- • Shared by Endre Bakken Stovner
开始对常用数据结构死扣内存/CPU 效率了... 这说明, Python 已经进入 盛年 )
📆 🐍 活动/大会
Events, MeetUp 真的是全球线下活动组织中心
- ⋅ EuroPython 2020 and COVID-19
- July 20-26
- in Dublin,
EuroPython 2020 is still scheduled
PyData statement on COVID-19 and Spring 2020 PyData events.
- ⋅ PyData COVID-19 Response
- March 22 to March 30, 2020
- ⋅ MoscowPythonConf++
- March 27 to March 28, 2020
- ⋅ PyCon SK 2020
- Rescheduled to
- September 11–13 2020
❤️Happy Pythonic ;-(
- Academic-nCoV/2019-nCoV Wiki
文科生的战斗, 虽然没办法象 wuhan2020 们那样快速组织工程师, 先于国家完成各种实用系统;
而且, 一个完全没有技术基础的文科团队, 自然通过 github 完成所有协同, 实在..感动 -> github 太好用了.
- 首发: Issue 412 ~蠎周刊 ~汇集全球蠎事儿 ;-)
- 修订: [issue-412.md](https://github.com/PyChina/weekly/blob/master/content/Issue/issue-412 .md)
私自嗯哼: ZoomQuiet (订阅号: ZoomQuiet42) 公开课程: 蟒营 (订阅号: Mainium) 核心成员: PyChina (订阅号: PyChinaOrg) 本地组织: GDG珠海 (订阅号: GDG-ZhuHai) TFUG珠海 (订阅号: ZH_TFUG)