Elixir Weekly #143

原文: ElixirWeekly - Elixir Community Newsletter, one email every Thursday. Every Thursday: No frills, no click-through, no spam. 当周 不老药 This week in Elixir Phoenix LiveView 蚂蚁农场 .. Holy cow! Ricardo created this small experiment consisting of a bunch of old school ants running around (using Phoenix LiveView). 5 个原因 Elixir 可成就您的竞争优势 … Inspired by a recent discussion about the topic, Elvio wrote a blog post with some of the reasons that might make Elixir your competitive advantage. (是也乎: 不老, 万能, 炼金, OTP, FP ) benchee 1.0 终于来了 … Congrats to Tobias, Devon and everbody who helped to make 1.0 happen! 🎉 (是也乎: 压力测试工具… ) 如何使用 OTP 进行多源数据废弃和聚合 .. Just like in the documentary series “Big, Bigger, Biggest” we are going to show the different versions we developed on a real project, alongside the pitfalls and breakthroughs of each version. Event Sourcing in Practice Screencast … In this Event sourcing in practice screencast Ben demonstrates how you can apply event sourcing to an Elixir application. 编写 Elixir 微服务的经验 … Jean-Phillipe just published our blog post about writing Elixir microservices in their polyglot environment. (是也乎: 不同其它语言纷纷回到巨型应用守护, Elixir 基于 OTP -> 天然万能巨型守护, 微服务可能是 Elixir 开发原有体验的最先进描述. ) Elixir Streams 和大型 HTTP 响应: 处理文本 … This is a second part of the article of last week. This time we are going to process on the fly a 30 million lines remote file, summing the numbers of each line. (是也乎: 简单说, 就是切切切切切切切…切到合适的嗯哼 ) 📆🐍 社区 Even more from around the Elixir community ...

2019-03-28 · 2 min · 739 words · ZoomQuiet

Elixir Weekly #142

原文: ElixirWeekly - Elixir Community Newsletter, one email every Thursday. Visual Programming with Elixir: Learning to Write Binary Parsers by @elixirstatus 这周不老药 This week in Elixir Function/Method 查找在 Elixir/Ruby Edison thought GenServer function injections were done through inheritance and discovered the inner workings of defoverridable! (是也乎: 这还用比较嘛? 海量 end 堆起来比括号要恶心多了… ) 使用Elixir进行可视化编程:学习编写二进制解析器 Kyle writes about what makes Elixir an unexpected front-runner for learning and prototyping binary protocols. Teamweek正在寻找远程Elixir后端开发人员 It’s a fully remote job and 100% Elixir even though the title says Ruby as well. According to Teamweek, it’s simply easier to find Ruby devs that want to learn Elixir ;-) (是也乎: 倾向找到在学 Elixir 的 Rubista .. ) More Readable Repos with the Ecto Filter Pattern Tyler writes about a great pattern for Ecto query composition he’s come across at work. 构建小型分布式 Elixir 应用程序 Keeping state consistency while running an Elixir application on many servers. (是也乎: 日常技巧… +——————–+ | APP SUPERVISOR | +———+———-+ | | +———v———-+ +———–+ +———–+ | WORKER SUPERVISOR +———> WORKERS | + <——–> DATABASE | +——————–+ +———–+ | | +———–+ +————+ | +————-+ ) TIL Ecto 约束 vs. 验证 ElixirSchool shows us how Ecto can put validations and constraints onto specific fields to ensure data integrity. 📆🐍 社区 Even more from around the Elixir community ...

2019-03-28 · 2 min · 603 words · ZoomQuiet

Issue 361

原文: PyCoder’s Weekly - Issue #361 Python 中的线程介绍 REAL PYTHON In this intermediate-level tutorial, you’ll learn how to use threading in your Python programs. You’ll see how to create threads, how to coordinate and synchronize them, and how to handle common problems that arise in threading. (是也乎: 真蟒, 系列插图, 真香… ) Python 到底是 Pass-By-Reference 或 Pass-By-Value? (2014) ROBERT HEATON A great explanation of Python’s argument-passing semantics. (是也乎: 参数传递的一次嗯哼… 手绘万岁… ) ...

2019-03-28 · 3 min · 1292 words · ZoomQuiet

Issue 360

原文: PyCoder’s Weekly - Issue #360 如何使用 wxPython 构建 Python GUI 应用 REAL PYTHON In this step-by-step tutorial, you’ll learn how to create a cross-platform graphical user interface (GUI) using Python and the wxPython toolkit. A graphical user interface is an application that has buttons, windows, and lots of other widgets that the user can use to interact with your application. 简化您的 Python 开发环境 MASON EGGER • Shared by Mason Egger How three tools (pyenv, pipx, pipenv) make for smooth, isolated, reproducible Python developer and production environments. (是也乎: 这,是非常重要的常用嗯哼哪… 只是, 一点儿也不简单..因为 Python 中一直就没有一个合理的工具一致性解决所有阶段的开发环境问题: 本地开发时的版本和模块依赖管理 测试时高速部署依赖模块 运行时自动化同步版本和依赖模块版本 Docker 是一把将所有阶段的环境问题用虚拟机解决了, 只是带来空间无法控制, 以及必须理解并忍受越来越多的专用工具; 所以, 先用已有工具组合为一个合理可理解的工具箱来完成是好的: pyenv 进行本地/测试/生产 的运行时版本和模块依赖树隔离 在 pyenv 之下.. conda 负责部分大型编译型模块的预编译管理 pipenv 进行模块的依赖/版本管理 嗯哼, 就是缺少一环: 可以高速冻结本地模块依赖树, 并能自动化同步模块树镜像到任意指定主机上; 以便从本地安装模块,而不依赖可怜的墙外网速… 再次感叹: dh-virtualenv, 已经解决了这一环的问题… ...

2019-03-21 · 4 min · 1940 words · ZoomQuiet