タグ

2016年4月6日のブックマーク (2件)

  • testdouble.js vs. sinon.js

    Sadly, the vast majority of developers don’t know or care to learn the nuanced differences between spies, stubs, fakes, mocks; or what a “partial” test double is and why they’re usually a bad idea. As a result, it’s not helpful when this jargon leaks into the API of test double libraries. In testdouble.js, there is a single type of test double function, designed to stand-in for any real function y

    testdouble.js vs. sinon.js
    kuy
    kuy 2016/04/06
    簡潔に書けるのはいいなぁ。何か小さなプロジェクトで試してみたい。
  • なぜタイポグラフィにおいてVertical Rhythm(バーティカルリズム)は重要な手法なのか? | POSTD

    Webのタイポグラフィについて少しでも調べたことがあるなら、 Vertical Rhythm という言葉を耳にしたことがあるのではないでしょうか。タイポグラフィを用いて仕事をする場合、最も重要な手法の1つです。このことについて知って以来、私は自分のサイト全てにVertical Rhythmを使っています。 ある日、Vertical Rhythmの重要性について自分が全く理解していないことに突然気付き、愕然としました。そしてその後すぐに2つの疑問が湧き上がってきました。「なぜVertical Rhythmを使うとサイトのデザインが向上するのか? 」「自分のデザインを良くするために、Vertical Rhythmから何を学べばいいのだろうか? 」。 私はこの疑問を解明しようと決めました。その考察を綴ります。 記事の最初にあたって認識を共通にするため、まずはコンテキストについて説明します。 Ve

    なぜタイポグラフィにおいてVertical Rhythm(バーティカルリズム)は重要な手法なのか? | POSTD
    kuy
    kuy 2016/04/06