タグ

2018年3月26日のブックマーク (3件)

  • Font Size Idea: Px At The Root, Rem For Components, Em For Text Elements | CSS-Tricks

    Font Size Idea: px at the Root, rem for Components, em for Text Elements Me, for the last year or so: “rem‘s are so cool! I’m gonna size everything with them, that way I can adjust the font-size on the root element and everything will scale with it!” It was a nice dream. And it wasn’t a disaster. That’s what I’m doing right now here on CSS-Tricks and this is how it plays out in a very simple scena

    Font Size Idea: Px At The Root, Rem For Components, Em For Text Elements | CSS-Tricks
    ggkuron
    ggkuron 2018/03/26
  • You Probably Have Too Much Motivation - Scott H Young

    The classic view of self-improvement is that most people suffer from a motivational deficit. If they could just get that right bit of inspiration, they would summon up the courage to finally take action, start that business, get into a good relationship, run a marathon and give up junk food. I happen to think that the opposite is probably true in quite a few cases: people struggle not from having

    You Probably Have Too Much Motivation - Scott H Young
    ggkuron
    ggkuron 2018/03/26
  • 分散ロックという名の過ち - Software Transactional Memo

     TL;DR; 「分散ロック」が分散システムの設計図に登場した時 だいたいその設計は間違っていて当に必要なものはトランザクションだ 並行システムを実装する際にロックを用いるのはとても自然なことだ。 僕も普段はロックフリー系のアルゴリズムに詳しいと言われがちだが知識量でいったら実はロック系の方が多く蓄えているかも知れない。 分散システムは並行システムであることが多いので、その中にロックが登場するのはとても自然な発想である。 よく「分散」「並行」「並列」の言葉の定義がごっちゃになっているケースがあり、この記事の主題にしたいわけではないので深くは言及しないが、分散システムは環境などの要因で突如として参加者が音信不通になったり復活したりする点で並行システムと大きく異なる。 並行システムと同じノリで分散システムを設計しようとした際に陥る頻出の過ちが「分散ロック」である。そのアイデアはとても簡単で

    分散ロックという名の過ち - Software Transactional Memo