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

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

アプリで開く

はてなブックマーク

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

はてなブックマーク

トップへ戻る

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

    WWDC25

『sunaot’s gists · GitHub』

  • 人気
  • 新着
  • すべて
  • テストを書くか書かないかの判断の話

    285 users

    gist.github.com/sunaot

    writing_unit_test.md ユニットテストでテストを書くか書かないかの判断の話 お題 メソッドの出力の結果が、true か false のどちらでも返ってくる可能性がある場合、assert 文を書く時は true の場合だけで良いのだろうか テストとは まず、基本の考えとしてなぜテストをするのか?というのがあります。 テストとは、エラーをみつけるつもりでプログラムを実行する過程である。(via ソフトウェアテストの技法 [Glenford J. Myers]) という言葉のとおり、最小の手間でプログラムのエラーを見つけ出そうとする試みがテストです。裏を返せば、エラーが見つかる可能性が低いのにすべてのことを試すのはテストではありません。 判断するときの論点 いくつかこれを判断するときの論点があります (Boolean に限らず、「そのテストは必要か?」と考えるときの観点ともいえ

    • テクノロジー
    • 2015/11/12 00:04
    • テスト
    • TDD
    • ユニットテスト
    • test
    • programming
    • あとで読む
    • プログラミング
    • testing
    • 設計
    • 考え方
    • さらっと読んで Ruby がわかった気になれるプログラミング言語 Ruby のかんたんな紹介

      16 users

      gist.github.com/sunaot

      hello_ruby.md Ruby+Rails を始めるのにこの辺をおさえておくといいのでは。 というのを書いていきます。 リソース Ruby 初めての Ruby 書籍 リファレンスマニュアル http://docs.ruby-lang.org/ja/ http://docs.ruby-lang.org/ja/search/ Rails リファレンスマニュアル RailsGuides Rails Tutoiral Rails3 レシピ 書籍 初めての Ruby を 3 分で。 インストール rbenv+ruby-build でインストールがおすすめ https://github.com/sstephenson/rbenv#installation REPL $ irb とすると REPL が開くので、試してみるのが早いはず。 配列とハッシュ 配列 array = [ 'this', 'i

      • テクノロジー
      • 2014/10/15 15:14
      • ruby
      • tutorial
      • Rails
      • describe_statesman.md

        3 users

        gist.github.com/sunaot

        You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

        • テクノロジー
        • 2014/08/07 20:07
        • ruby
        • class << self によるクラスメソッドの定義のイディオムの説明とその背景にある特異クラスのかんたんな解説

          52 users

          gist.github.com/sunaot

          You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

          • テクノロジー
          • 2014/07/07 18:56
          • ruby
          • class
          • programming
          • 言語
          • 特異クラス
          • コーディングガイドライン

            4 users

            gist.github.com/sunaot

            You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

            • 世の中
            • 2014/05/28 22:23
            • DB 設計勉強会 / タワーズクエスト社 和田省二さんを先生にむかえた勉強会のメモ。文責は sunaot です。

              18 users

              gist.github.com/sunaot

              You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

              • 暮らし
              • 2014/02/04 14:24
              • db
              • あとで
              • 例外設計の話

                360 users

                gist.github.com/sunaot

                You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                • テクノロジー
                • 2013/08/02 16:55
                • 例外処理
                • 例外
                • 設計
                • programming
                • exception
                • プログラミング
                • .NET
                • design
                • ガイドライン
                • Ruby
                • バグを生まないプログラミングのために

                  3 users

                  gist.github.com/sunaot

                  You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                  • テクノロジー
                  • 2013/06/26 12:41
                  • プログラミング
                  • あとで読む
                  • 条件分岐とのつきあい方

                    21 users

                    gist.github.com/sunaot

                    You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                    • テクノロジー
                    • 2013/05/17 12:24
                    • gist
                    • リファクタリング
                    • programming
                    • Algorithm
                    • tech
                    • MVC な WAF でテストを書くときの設計方針

                      4 users

                      gist.github.com/sunaot

                      You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                      • テクノロジー
                      • 2013/04/17 22:35
                      • test
                      • 書いたもの

                        63 users

                        gist.github.com/sunaot

                        You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                        • テクノロジー
                        • 2013/04/16 14:30
                        • programming
                        • プログラミング
                        • 教育
                        • study
                        • あとで読む
                        • 読み物
                        • *programming

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

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

                        『sunaot’s gists · GitHub』の新着エントリーを見る

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

                        j次のブックマーク

                        k前のブックマーク

                        lあとで読む

                        eコメント一覧を開く

                        oページを開く

                        はてなブックマーク

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

                        公式Twitter

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

                        はてなのサービス

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