rastam on rails

東京在住のマレーシア人 Rubyist

Ruby Weekly #389: 日本語サマリー

職場の Slack の #ruby 窓で Ruby Weekly メルマガが毎週配信されます。その中から面白そうなものをピックアップして、日本語で簡単なサマリーを書くようにしています。そのサマリーをここでまとまさせていただきます。くだけた日本語で失礼いたします。

http://rubyweekly.com/issues/389rubyweekly.com

Highlights

Timeasure: A New Transparent In-Production Profiler

メソッドレベルのプロファイリング用 gem Timeasure を実装した経緯。

  • NewRelic より柔軟なインタフェース提供
  • ruby-prof gem より軽くて本番環境でも使える

An Epic Collection of Ruby One Liners

ruby CLI コマンドのワンライナー集。

How Ruby 2.5 Prints Backtraces and Error Messages

Ruby 2.5 のバックトレース出力順のデモ。

Rack::Reducer: Map URL Params to Functions That Filter Data

絞り込み条件用 URL 引数を scope などにマッピングしてくれる gem。

Using Genetic Algorithms in Ruby

Ruby遺伝的アルゴリズム実装。

News

Ruby Up From 12th to 9th in the Latest TIOBE Index

プログラミング言語人気ランキング TIOBE で Ruby が 12 位から 9 位に上昇。

12 Ruby Conferences You Should Attend in Spring 2018

今年前半の Ruby カンファレンスまとめ。

Tutorial

Ruby Memory Usage Vocabulary Explained

Ruby のメモリ関連用語解説。

Implementing a Basic Debug Mode for Your Ruby CLI

Ruby CLI アプリのデバッグモード実装。

Solving CAPTCHAs with TensorFlow and Ruby

TensorFlow ライブラリの機械学習CAPTCHA を突破した話。

Considerations When Upgrading a Rails App from 4.2 to 5.0

Rails 4.2→5.0 バージョンアップ時の懸念点まとめ。

Opinion

Why Ryan Bigg Likes Hanami

Ryan Bigg 先生が Hanami を試した感想。

  • Repository パターンのおかげで、モデル層関心の分離ができるのが良い
  • Action 別クラスのおかげで、コントローラ層関心の分離ができるのが良い(params の validation とか)
  • View クラスのおかげで、ヘルパーがグローバルで公開されないのが良い

Tools

Licensed: Cache and Verify the Licenses of Dependencies

依存している gem のライセンス管理用 gem。

Server Timing Response Headers for Rails

Rails サーバ側パフォーマンス計測データをレスポンスのヘッダーに埋め込み、Chrome コンソールで確認できるようにしてくれる gem。

Code

semantic_logger: A 'Next Generation' Logging System

スループット・低レイテンシーのログ処理用 gem。NewRelic、Sentry、HoneyBadger、ElasticSearch などのログ出力先に対応。

Invisible Captcha: Unobtrusive Spam Protection for Rails

honeypot 型 captcha 用 gem。非表示チェックボックスでボット排除。

Flipper: Fast and Simple 'Feature Flipping' for Ruby

フィーチャフラグ定番 gem の最新リリース。