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

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

アプリで開く

はてなブックマーク

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

はてなブックマーク

トップへ戻る

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

    ChatGPT

『thepugautomatic.com』

  • 人気
  • 新着
  • すべて
  • Struct inheritance is overused

    3 users

    thepugautomatic.com

    Struct inheritance is overusedWritten August 8, 2013. Tagged Ruby. Too many people inherit from Struct.new(:some, :attributes) as a shorthand without understanding the implications. Take this for example: class Greeter < Struct.new(:person) def greet puts "Hello, #{person.name}!" end endSure, it's convenient. It saves you writing an initializer. But that's not all it does. Struct arguments are not

    • テクノロジー
    • 2016/09/12 15:12
    • ruby
    • Understanding Elixir macros

      3 users

      thepugautomatic.com

      Understanding Elixir macrosWritten October 31, 2015. Tagged Elixir, Macros. Elixir macros are conceptually quite simple, though they can be daunting when you're starting out. It took me plenty of flailing about to get a clear mental model of how they work, and plenty of experimentation. I thought I'd write up some of my insights, in case they help others get there sooner. This is not a "write your

      • テクノロジー
      • 2015/11/02 02:12
      • What I dislike about Draper

        5 users

        thepugautomatic.com

        What I dislike about DraperWritten March 1, 2014. Tagged Ruby on Rails, Presenters. My team used Draper a few years back ago and its design inspired us to make poor decisions that we've come to regret. If you want presenters in Rails (or "view models", or "decorators" as Draper calls them), just use a plain old Ruby object. Pass in the view context when you need it. Don't decorate. Don't delegate

        • テクノロジー
        • 2014/09/17 17:29
        • rails
        • The risks of feature branches and pre-merge code review

          3 users

          thepugautomatic.com

          The risks of feature branches and pre-merge code reviewWritten February 12, 2014. Tagged Git, Code review, Continuous Delivery. Our team has been doing only spontaneous code review for a good while – on commits in the master branch that happen to pique one's interest. This week, we started systematically reviewing all non-trivial features, as an experiment, but this is still after it's pushed to m

          • テクノロジー
          • 2014/02/24 21:51
          • review
          • development
          • programming
          • Rails STI and form_for

            9 users

            thepugautomatic.com

            Rails STI and form_forWritten August 14, 2012. Tagged Ruby on Rails, STI. Rails' form_for conveniently uses "record identification" to figure out the correct URL based on the model: = form_for([:admin, @item]) do |f| = f.text_field :nameIt's also used to figure out the HTTP verb, the field name prefixes, HTML classes and HTML id. So this form would POST to admin_items_path for a new record, or PUT

            • テクノロジー
            • 2013/07/05 12:24
            • rails
            • *programming
            • ifttt
            • ruby
            • Rails i18n tips

              3 users

              thepugautomatic.com

              Rails i18n tipsWritten July 22, 2012. Tagged Ruby on Rails, i18n, Tips. These are some tips based on my experiences of working with Rails i18n, extracted from my styleguide. Avoid translated view filesIf you ever need to work with external translators, it's a bit of a pain sending both your YML files and a bunch of views like index.en.html.erb. For one thing, you need some code to find all those f

              • テクノロジー
              • 2013/05/17 19:25
              • I18n
              • rails
              • tips

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

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

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

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

              j次のブックマーク

              k前のブックマーク

              lあとで読む

              eコメント一覧を開く

              oページを開く

              はてなブックマーク

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

              公式Twitter

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

              はてなのサービス

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