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

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

アプリで開く

はてなブックマーク

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

はてなブックマーク

トップへ戻る

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

    猛暑に注意を

『Miško Hevery』

  • 人気
  • 新着
  • すべて
  • Circular Dependency in constructors and Dependency Injection

    3 users

    misko.hevery.com

    by Miško Hevery So you discovered dependency injection and GUICE and you are happily refactoring and writing new tests for you code until you come across this circular reference. class A { final B b; A(B b){ this.b = b; } } class B { final A a; B(){ this.a = new A(this); } } +---------+ +---------+ | A |<-----| B | | | | | | |----->| | +---------+ +---------+ Hm, dependency injection says that you

    • テクノロジー
    • 2011/12/13 21:52
    • di
    • php
    • Dependency-Injection and JavaScript closures

      4 users

      misko.hevery.com

      As you can tell I am a big fan of DI, but I kept hearing that DI is not needed with dynamic languages, so after using JS for many months I am happy to say that DI is important there as well. In other words dependency managment and controll matters. But it is different. Say you have a class for greeting with DI. class Greeter { String greeting; Greeter(String greeting) { this.greeting = greeting; }

      • テクノロジー
      • 2010/05/30 16:41
      • di
      • javascript
      • あとで読む
      • Miško Hevery

        4 users

        misko.hevery.com

        Like most other developers, when I first came across the Flex data-binding, I thought of it as an interesting feature, but haven’t realized the true implications of it until much later. Data-binding in Flex has revolutionized the way I think about building UIs. To understand why data-binding is so revolutionary, let’s look at standard Model-View-Controller setup for building UIs. Let’s start off w

        • テクノロジー
        • 2009/12/05 13:44
        • test
        • javascript
        • Configure your IDE to run your tests automatically

          3 users

          misko.hevery.com

          When I develop code I write test first and always run my tests. But it can get rather tedious to run the tests manually every so often. Here is a common scenario. Your tests are green and you start doing whole bunch of refactorings which you think are trivial and safe. When you are done you run the tests and it is broken. The problem is that you did ten little things and you don’t know which of th

          • テクノロジー
          • 2009/10/09 10:01
          • eclipse
          • test
          • Clean Code Talks – Dependency Injection

            3 users

            misko.hevery.com

            by Miško Hevery Google Tech Talks November 6, 2008 ABSTRACT Clean Code Talk Series Topic: Don’t Look For Things! Speaker: Miško Hevery Video Slides I really love your blog which is a door to a new and exciting world for me. I still have blure points about the performance (app) and productivity (men) impacts. Which kind of project should be developped like this? Is it a conceptual or practical solu

            • テクノロジー
            • 2009/07/06 20:43
            • testing
            • presentation
            • test
            • プログラミング
            • The Problem With Active Record

              4 users

              misko.hevery.com

              By John Januszczak The Active Record pattern has gained a lot of attention lately, particularly because of it’s use in the wildly popular Ruby On Rails (“RoR’) framework. Other frameworks which employ the Active Record pattern include the Castle Project, which aims to simplify the creation of enterprise and web applications for .NET developers. If you are new to the Active Record design pattern, i

              • 学び
              • 2009/05/08 21:10
              • testability
              • design
              • Flaw: Constructor does Real Work

                3 users

                misko.hevery.com

                Work in the constructor such as: creating/initializing collaborators, communicating with other services, and logic to set up its own state removes seams needed for testing, forcing subclasses/mocks to inherit unwanted behavior.  Too much work in the constructor prevents instantiation or altering collaborators in the test. new keyword in a constructor or at field declaration Static method calls in

                • テクノロジー
                • 2009/03/25 19:20
                • Programming
                • testing
                • Static Methods are Death to Testability

                  9 users

                  misko.hevery.com

                  by Miško Hevery Recently many of you, after reading Guide to Testability, wrote to telling me there is nothing wrong with static methods. After all what can be easier to test than Math.abs()! And Math.abs() is static method! If abs() was on instance method, one would have to instantiate the object first, and that may prove to be a problem. (See how to think about the new operator, and class does r

                  • テクノロジー
                  • 2008/12/16 00:09
                  • TDD
                  • プログラミング
                  • テスト
                  • 興味深い
                  • memo
                  • 読み物
                  • Singletons are Pathological Liars

                    3 users

                    misko.hevery.com

                    by Miško Hevery So you join a new project, which has an extensive mature code base. Your new lead asks you to implement a new feature, and, as a good developer, you start by writing a test. But since you are new to the project, you do a lot of exploratory “What happens if I execute this method” tests. You start by writing this: testCreditCardCharge() { CreditCard c = new CreditCard( "1234 5678 901

                    • 学び
                    • 2008/12/04 20:54
                    • java
                    • design
                    • How to Think About the “new” Operator with Respect to Unit Testing

                      3 users

                      misko.hevery.com

                      How to Think About the “new” Operator with Respect to Unit Testing By Miško Hevery Unit Testing as the name implies asks you to test a Class (Unit) in isolation. If your code mixes Object Construction with Logic you will never be able to achieve isolation. In order to unit-test you need to separate object graph construction from the application logic into two different classes The end goal is to h

                      • テクノロジー
                      • 2008/12/03 01:48
                      • testing
                      • プログラミング
                      • programming
                      • Guide: Writing Testable Code

                        30 users

                        misko.hevery.com

                        To keep our code at Google in the best possible shape we provided our software engineers with these constant reminders. Now, we are happy to share them with the world. Many thanks to these folks for inspiration and hours of hard work getting this guide done: Jonathan Wolter Russ Ruffer Miško Hevery Also thanks to Blaine R Southam who has turned it into a pdf book. Flaw #1: Constructor does Real Wo

                        • 暮らし
                        • 2008/11/27 22:11
                        • programming
                        • test
                        • テスト
                        • Testing
                        • プログラミング
                        • あとで読む

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

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

                        『Miško Hevery』の新着エントリーを見る

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

                        j次のブックマーク

                        k前のブックマーク

                        lあとで読む

                        eコメント一覧を開く

                        oページを開く

                        はてなブックマーク

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

                        公式Twitter

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

                        はてなのサービス

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