ORM 到底值得嘛?

原文: PyCoder's Weekly - Issue #450

pycoder

  • 201209 Zoom.Quiet(大妈) 用时 42 分钟 完成快译
  • 201209 Zoom.Quiet(大妈) 用时 37 分钟 完成格式转抄.

Budding web developers learning Model-View-Controller frameworks are taught that they should use an Object Relational Mapper (ORM) to interface with their databases. But the “why” is often brushed aside or omitted entirely, leaving a fledgling programmer with burning questions like ”What are ORMs, anyway?” and “What problems do they solve?”

(是也乎:

直觉上, 为了节省 SQL 培训时间, 以及将 SQL 安全隐藏到 ORM 模块中.

)

Reducing numerical precision is a way to save memory in pandas, but does it make a difference to the conclusions that we might draw from real-world datasets?

(是也乎:

这才是真正的千年虫本身

)

In this step-by-step tutorial, you’ll learn how to use PyQt’s built-in SQL support to create GUI applications that effectively manage SQL databases.

(是也乎:

PyQt

连接以及读写DB 简单, 问题是 GUI 自动生成表格..

)

Learn how to turn your phone’s camera into a link detector on printed media using Tensor Flow 2’s Object Detection API.

探讨/吐糟

Discussions

A good mix of genius, boredom, and absurdity

(是也乎:

如果不惜成本, 几乎是一切.

)

An inspiring thread of how not to write code

(是也乎:

如果乐趣可以无限长....

)

文章/教程/嗯哼

Articles, Tutorials and Talks

Come learn with Python experts at the Real Python Office Hours, a weekly video call that offers Real Python members the chance to get help with Python-related questions, meet new Pythonistas, learn about new and trending topics in the community, and get feedback and tips on Python code and projects.

(是也乎:

Office

嗯哼,发现和 自怼圈 付费定期聊天类似, 如果大家学不动, 和专家们聊天儿也是好的.

嘦付费.

)

Have a Django app on Heroku and want to use Tailwind CSS? In this tutorial, you’ll see how to configure Tailwind for a Django project and set up Heroku to build your CSS file.

(是也乎:

Tailwind ~ 尾风? -> 顺风

Bootstrap 式傻瓜框架, 只是, 对类命名进行了更加直觉的嗯哼.

问题是引用资源是否够大家任性使用... Bootstrap 有 github 支持, CDN 到处所有, 新人上来...

)

If you’re coming to Python from a different language, you may not know about a useful tool for working with loops, Python’s built-in enumerate function. This week on the show, David Amos is here, and he has brought another batch of PyCoder’s Weekly articles and projects. Along with the Real Python article covering the details of the enumerate function, we also talk about another article about constructing Python graphical user interface elements in PyQt.

(是也乎:

podcast

)

Get started with fuzzing, a technique for automatically finding bugs in Python code by repeatedly trying various inputs to your program, using Google’s newly open-sourced Python fuzzer called Atheris.

(是也乎:

fuzzing ~ 模糊测试, 也变成显学了,

)

For a fun exercise, learn how you can leverage Python’s unlimited integer precision to encode and store lists of any size as a single integer. Because, why not?

(是也乎:

...如何利用Python无限的整数精度将任意大小的列表编码和存储为单个整数...

这个思路令人想起一则 SiFi 情节:

宇宙间最大图书馆

将所有图书文字加密, 编辑为一个连续数字, 作为一个无理小数本体;

然后,找到这个无理数的精确整数比, 类似 113/355 这种,

然后, 将这个比例, 刻为一个稳定材料制造的小棍上, 那么, 整个儿图书馆的所有内容, 就变成了一个小棍物理外观上携带的一个点儿;

到任何稳定环境中, 只要精确测量出来那个点所在位置分割小棍的比例, 一除就获得了所有加密数字, 再根据解密原则就能还原出所有内容了,

很简洁吧?

)

Learn how to identify sources of non-determinism in your project and to use Bazel to create reproducible, hermetic builds with Python.

Learn how to create a message server using the Python WebSockets library capable of handling over 12,000 messages per second.

(是也乎:

look good, 不过, 想替代游戏行业 OTP 内部进程消息自动广播, 还早...

)

Looking for a fun project to tackle? Learn how to build an IRC bot!

好物/妙品/...

Interesting Projects, Tools and Libraries, Projects & Code

(是也乎:

DevOps 之后, MLOps 来了, 然后 AIOps 也可以期待了?

)

(是也乎:

Google 出品,必须小心...

)

(是也乎:

等等,为什么没有 PyUDP ?

)

(是也乎:

所以, 流畅的飞行, 不再是 GHIBLI 的专属特技了?

)

(是也乎:

当年 GTalk 多火哪, 什么库都有, 结果多源头自宫后, 什么都没留下来;

IRC 的问题是...

)

📆🐍 活动/大会

Events, MeetUp 真的是全球线下活动组织中心

(是也乎:

Office

每周定期了?

...members only

)

PyCon2020中国

(是也乎:

PyCon20深圳 大妈 暖场小单口

并实锤可用神器: NixOS - NixOS Linux

nix 可以跨语言非Docker 将开发和运行时环境精确锁定.

以及 PyCon19广州 的坑终于填上了:

基于Django的无代码Admin + 低代码开发框架

)

DAMA

❤️ Happy Pythonic ;-(大妈私人无责任播报)

None

PS:


好文笔,感叹号年度配额: 2/3

投稿/反馈邮箱:

askdama@googlegroups.com

(邮件列表地址, 当成正常邮件发送邮件就好, 不用注册, 不用翻越...)


ZoomQuiet/大妈

就是四处 是也乎,( ̄▽ ̄) 的那个大妈:

私自嗯哼: ZoomQuiet (订阅号: ZoomQuiet42)
公开课程: 蟒营 (订阅号: Mainium)
历史吐糟: Chaos42 (订阅号 PythoniCamp)

as 创始组织者:
    PyChina (订阅号: PyChinaOrg)
    本地社区: 
        GDG珠海 (订阅号: GDG-ZhuHai)
        TFUG珠海 (订阅号: ZH_TFUG)

NN 4222

RPP


Comments



自怼圈/年度番新

DU21.4
关于 ~ DebugUself with DAMA ;-)

关注公众号, 持续获得相关各种嗯哼:
zoomquiet

追问

任何问题, 随时邮件提问可也:
askdama@googlegroups.com