Elixir Weekly #144
原文: ElixirWeekly - Elixir Community Newsletter, one email every Thursday. Every Thursday: No frills, no click-through, no spam. 当周 不老药 This week in Elixir Phoenix 的 Params 模块 The Params modules pattern can be used in Phoenix to validate and massage a controller action’s params into data that can be passed to contexts. (是也乎: 所谓中间件模块 ) 使用 GenServer 进行夜间任务 Eric set up a nightly process that uses OTP primitives to run nightly tasks for his games. Nice! (是也乎: 只是为了游戏刷分? ) ExDoc v0.20 Wojtek wrote about keyboard shortcuts, autocompletion, full-text search, and other stuff in the latest version of ExDoc. Micro: 读取 elixir 中的 cmd pipes Regis wrote a blog post about reading pipes from the command line in Elixir CLI tools. 清理 Phoenix 控制器操作 Damon writes about a pattern he came across that helps when you need to pass a lot of variables to the view / template. (是也乎: 在 Elixir 中, 多少算大量? ) Elixir 协议,它们如何工作? erlang 的观点 Mariano gives “the erlang perspective” on protocols in Elixir. 📆🐍 社区 Even more from around the Elixir community ...