はてなブックマークアプリ

サクサク読めて、
アプリ限定の機能も多数!

アプリで開く

はてなブックマーク

  • はてなブックマークって?
  • アプリ・拡張の紹介
  • ユーザー登録
  • ログイン
  • Hatena

はてなブックマーク

トップへ戻る

  • 総合
    • 人気
    • 新着
    • IT
    • 最新ガジェット
    • 自然科学
    • 経済・金融
    • おもしろ
    • マンガ
    • ゲーム
    • はてなブログ(総合)
  • 一般
    • 人気
    • 新着
    • 社会ニュース
    • 地域
    • 国際
    • 天気
    • グルメ
    • 映画・音楽
    • スポーツ
    • はてな匿名ダイアリー
    • はてなブログ(一般)
  • 世の中
    • 人気
    • 新着
    • 新型コロナウイルス
    • 働き方
    • 生き方
    • 地域
    • 医療・ヘルス
    • 教育
    • はてな匿名ダイアリー
    • はてなブログ(世の中)
  • 政治と経済
    • 人気
    • 新着
    • 政治
    • 経済・金融
    • 企業
    • 仕事・就職
    • マーケット
    • 国際
    • はてなブログ(政治と経済)
  • 暮らし
    • 人気
    • 新着
    • カルチャー・ライフスタイル
    • ファッション
    • 運動・エクササイズ
    • 結婚・子育て
    • 住まい
    • グルメ
    • 相続
    • はてなブログ(暮らし)
    • 掃除・整理整頓
    • 雑貨
    • 買ってよかったもの
    • 旅行
    • アウトドア
    • 趣味
  • 学び
    • 人気
    • 新着
    • 人文科学
    • 社会科学
    • 自然科学
    • 語学
    • ビジネス・経営学
    • デザイン
    • 法律
    • 本・書評
    • 将棋・囲碁
    • はてなブログ(学び)
  • テクノロジー
    • 人気
    • 新着
    • IT
    • セキュリティ技術
    • はてなブログ(テクノロジー)
    • AI・機械学習
    • プログラミング
    • エンジニア
  • おもしろ
    • 人気
    • 新着
    • まとめ
    • ネタ
    • おもしろ
    • これはすごい
    • かわいい
    • 雑学
    • 癒やし
    • はてなブログ(おもしろ)
  • エンタメ
    • 人気
    • 新着
    • スポーツ
    • 映画
    • 音楽
    • アイドル
    • 芸能
    • お笑い
    • サッカー
    • 話題の動画
    • はてなブログ(エンタメ)
  • アニメとゲーム
    • 人気
    • 新着
    • マンガ
    • Webマンガ
    • ゲーム
    • 任天堂
    • PlayStation
    • アニメ
    • バーチャルYouTuber
    • オタクカルチャー
    • はてなブログ(アニメとゲーム)
    • はてなブログ(ゲーム)
  • おすすめ

    iPhone 17

『brandonhilkert.com』

  • 人気
  • 新着
  • すべて
  • Reducing Sidekiq Memory Usage with Jemalloc | Brandon Hilkert

    4 users

    brandonhilkert.com

    Ruby and Rails don’t have a reputation of being memory-friendly. This comes with a trade-off of being a higher level language that tends to be more developer-friendly. For me, it works. I’m content knowing I might have to pay more to scale a large application knowing I can write it in a language I enjoy. Turns out…Ruby’s not the memory hog I’d previously thought. After some research and experiment

    • テクノロジー
    • 2018/05/05 14:39
    • Rails
    • Ruby
    • Monitoring Sidekiq using AWS Lambda and CloudWatch | Brandon Hilkert

      5 users

      brandonhilkert.com

      A few articles ago, I wrote about how to monitor Sidekiq retries using AWS Lambda. Retries are often the first indication of an issue if your application does a lot of background work. As Bark continues to grow, we became interested in how the number of jobs enqueued and retrying trended over time. Using AWS Lambda to post this data to CloudWatch, we were able to visualize this data over time. The

      • テクノロジー
      • 2017/03/31 17:47
      • Monitoring Sidekiq Using AWS Lambda and Slack | Brandon Hilkert

        5 users

        brandonhilkert.com

        It’s no mystery I’m a Sidekiq fan – my background job processing library of choice for any non-trivial applications. My favorite feature of Sidekiq has to be retries. By default, failed jobs will retry 25 times over the course of 21 days. As a remote company, we use Slack to stay in touch with everyone AND to manage/monitor our infrastructure (hello #chatops). We can deploy from Slack (we don’t ge

        • テクノロジー
        • 2016/10/28 21:20
        • ruby
        • あとで読む
        • Sidekiq As A Microservice Message Queue | Brandon Hilkert

          3 users

          brandonhilkert.com

          In the recent series on transitioning to microservices, I detailed a path to move a large legacy Rails monolith to a cluster of a dozen microservices. But not everyone starts out with a legacy monolith. In fact, given Rails popularity amongst startups, it’s likely most Rails applications don’t live to see 4+ years in production. So what if we don’t have a huge monolith on our hands? Are microservi

          • テクノロジー
          • 2015/12/03 02:31
          • A Ruby Refactor: Dependency Injection Options | Brandon Hilkert

            6 users

            brandonhilkert.com

            I recently wrote some code to interface with Stripe’s webhooks. After looking at the code and tests, I decided I needed to do something to make it easier to test all pricing tiers— something I wasn’t able to easily do from the start. Dependency injection was a necessary piece of that puzzle. I’ve always been curious about the various forms of dependency injection and the effects each would have on

            • テクノロジー
            • 2014/12/18 00:28
            • Ruby
            • Rails Active Record Validation Contexts with Inheritance | Brandon Hilkert

              4 users

              brandonhilkert.com

              If you’ve used validates in a Rails Active Record model, you know they work great – at least until the first bit of complexity arises. At that point, they can quickly morph in to a ball of conditional spaghetti convoluting the initial reason the validation was added in the first place. I recently had an experience using has_secure_password where I wanted control the length of the user-supplied pas

              • テクノロジー
              • 2014/11/20 12:33
              • Rails
              • Programming
              • Relative Timestamps in Rails | Brandon Hilkert

                3 users

                brandonhilkert.com

                Facebook’s news feed popularized the relative timestamp format of “X hours ago”. For good reason too…why print an absolute timestamp so that people have to do the relative calculation in their head? It’s one less step for the user, and to be fair, pretty easy to implement. Rails helpers to the rescue Rails has a view helper aptly named time_ago_in_words. If you use the created_at attribute from a

                • テクノロジー
                • 2014/09/27 11:07
                • rails
                • ruby
                • javascript
                • Using Rails 4.1 Secrets for Configuration | Brandon Hilkert

                  4 users

                  brandonhilkert.com

                  I previously wrote about how I handle environment configuration in Rails. Along with solutions like the dotenv gem, it relies on entirely on environment variables. One of the highlighted features of Rails 4.1 was the config/secrets.yml file. By default, this file contains the secret_key_base and defers to the ENV variable of the same name in the production environment. Even though secret_key_base

                  • テクノロジー
                  • 2014/06/13 08:31
                  • Rails
                  • 7 Reasons I'm Sticking With Minitest and Fixtures in Rails | Brandon Hilkert

                    12 users

                    brandonhilkert.com

                    I’ve been fortunate to spend the last month as the sole developer of greenfield Rails 4.1 app. As someone who’s spent quite a bit of time maintaining existing code, the freedom to establish patterns and choose tools is a highly welcomed change. One of the choices I made was to use Minitest and Rails fixtures. The short is…it’s been great! So great that I’m having trouble imagining myself using any

                    • テクノロジー
                    • 2014/05/30 01:38
                    • minitest
                    • rails
                    • Ruby
                    • New Rails 4.1 travel_to test helper | Brandon Hilkert

                      18 users

                      brandonhilkert.com

                      I’ve recently had the good fortune of working on a greenfield Rails app. The app is heavily dependent on times and recurring events (weekly). Naturally, I dragged in the timecop gem to handle freezing time, so my I could properly assert that certain events took place in the tests. With the release of Rails 4.1, the time stubbing method travel_to was added. This new helper method forces the current

                      • テクノロジー
                      • 2014/05/16 08:55
                      • rails
                      • test
                      • Build a Ruby Gem | Brandon Hilkert

                        8 users

                        brandonhilkert.com

                        Learn to Build a Ruby Gem. Whether you're an expert Rubyist, or just starting out, this book will guide you through the process of creating your own Ruby gem from start to finish. Sound good? Jump straight to the packages. What you'll learn How to Build a Ruby Gem The book will guide you through the process of how to build a Ruby Gem. From bootstrapping the project to releasing to RubyGems.org, yo

                        • テクノロジー
                        • 2014/03/28 06:19
                        • ruby
                        • gem
                        • dev
                        • programming
                        • book
                        • Ruby Gem Configuration Patterns | Brandon Hilkert

                          32 users

                          brandonhilkert.com

                          This is one of the final post leading up the the launch of the Build a Ruby Gem Ebook, which is now available for sale in 3 packages, including 14 chapters of code and over 2 hours of screencasts. The world isn’t black and white (as much as we’d like to believe it is). Just because our gem’s functionality may work for us, doesn’t mean it’ll work for everyone. Fortunately, we can give users the abi

                          • テクノロジー
                          • 2014/03/19 21:45
                          • Ruby
                          • gem
                          • configuration
                          • rspec
                          • culture
                          • api
                          • IT
                          • design
                          • book
                          • Why I Wrote the Sucker Punch Gem | Brandon Hilkert

                            5 users

                            brandonhilkert.com

                            This is one of the final post leading up the the launch of the Build a Ruby Gem Ebook, which is now available for sale in 3 packages, including 14 chapters of code and over 2 hours of screencasts. One of the simplest and most common application of background processing is sending emails outside of a web request. And while background processing is pretty common, most existing Ruby background proces

                            • テクノロジー
                            • 2014/03/17 11:23
                            • ruby
                            • Page Specific Javascript in Rails | Brandon Hilkert

                              4 users

                              brandonhilkert.com

                              UPDATE: I’ve written an updated article on this and the larger topic of organizing Javascript within a Rails project that includes Turbolinks. The asset pipeline has made including javascript in Rails applications a breeze. Without any additional changes, the code included in your app is executed on every page. However, with a combination of CSS class scopes and a jQuery plugin, you can isolate ce

                              • テクノロジー
                              • 2014/03/16 15:36
                              • rails
                              • JavaScript

                              このページはまだ
                              ブックマークされていません

                              このページを最初にブックマークしてみませんか?

                              『brandonhilkert.com』の新着エントリーを見る

                              キーボードショートカット一覧

                              j次のブックマーク

                              k前のブックマーク

                              lあとで読む

                              eコメント一覧を開く

                              oページを開く

                              はてなブックマーク

                              • 総合
                              • 一般
                              • 世の中
                              • 政治と経済
                              • 暮らし
                              • 学び
                              • テクノロジー
                              • エンタメ
                              • アニメとゲーム
                              • おもしろ
                              • アプリ・拡張機能
                              • 開発ブログ
                              • ヘルプ
                              • お問い合わせ
                              • ガイドライン
                              • 利用規約
                              • プライバシーポリシー
                              • 利用者情報の外部送信について
                              • ガイドライン
                              • 利用規約
                              • プライバシーポリシー
                              • 利用者情報の外部送信について

                              公式Twitter

                              • 公式アカウント
                              • ホットエントリー

                              はてなのサービス

                              • はてなブログ
                              • はてなブログPro
                              • 人力検索はてな
                              • はてなブログ タグ
                              • はてなニュース
                              • ソレドコ
                              • App Storeからダウンロード
                              • Google Playで手に入れよう
                              Copyright © 2005-2025 Hatena. All Rights Reserved.
                              設定を変更しましたx