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
Firefox 45 以降、Worker 内の performance.now メソッドは、最新の High Resolution Time 仕様に従い、親ウィンドウや親 Worker から継承された ナビゲーション開始時刻 ではなく、その Worker の作成時刻からの DOMHighResTimeStamp を返します。従来のようにメインウィンドウコンテキストに基づくタイムスタンプを得るには、新しい Performance.translateTime メソッドを使ってください。 更新: 仕様がまだ不安定らしいことから、この変更は Firefox 45 Beta サイクル中に 取り消されました。
High-Resolution Time Introduction All of the metrics that participate in the Performance Timeline are able to provides timing data in sub-millisecond resolution, i.e. in DOMHighResTimeStamp, which is defined by the High Resolution Time specification [[HR-TIME-2]]. Monotonic Clock In early stages of design, our Timing APIs were defined in terms of wall-clock epoch times. Unfortunately, such times o
Webのタイポグラフィについて少しでも調べたことがあるなら、 Vertical Rhythm という言葉を耳にしたことがあるのではないでしょうか。タイポグラフィを用いて仕事をする場合、最も重要な手法の1つです。このことについて知って以来、私は自分のサイト全てにVertical Rhythmを使っています。 ある日、Vertical Rhythmの重要性について自分が全く理解していないことに突然気付き、愕然としました。そしてその後すぐに2つの疑問が湧き上がってきました。「なぜVertical Rhythmを使うとサイトのデザインが向上するのか? 」「自分のデザインを良くするために、Vertical Rhythmから何を学べばいいのだろうか? 」。 私はこの疑問を解明しようと決めました。その考察を綴ります。 記事の最初にあたって認識を共通にするため、まずはコンテキストについて説明します。 Ve
I love the idea of Redux. Managing state in an application is critical! There is nothing like “the state of a web application”. Let’s go back a few years when there were none of these “javascript applications”. The query string did a quite good job in shipping the document (aka web application) with a predictable state. If we change application state we do this by following a hyperlink :cool:. Som
2年半くらい画像システムを担当していたのですが、3月イッパイで異動することになりましたokzkです。 異動記念ということで、とりとめもなくエンジニアブログを書いてみます。長いです。よろしくお願いいたします。 画像システムのこれまでのストレージ事情最初にアメブロ(以下、単にブログ)のユーザ投稿画像関連でのストレージの歴史をアレコレをまとめてみようと思います。なお、以下swiftと書いたらOpenStack Swiftのことです。流行のプログラミング言語のことではありません。 はるか昔の状況昔は単純にWebDAVを複数台並べ、イッパイになったら更に次の世代のWebDAVを追加する、というような構成で、参照時に画像URLパスに含まれる年月ベースで適切な世代のWebDAVにルーティングしていました。 (参考:画像URLのパスの例) /user_images/20160401/00/shibuya/
Tweet Usually minor updates on iOS don’t bring news to Safari and web developers. That’s not the case on iOS 9.3: new APIs, support for Responsive Images, a new weird viewport attribute and new devices in the market make us check what’s new. Overview Changes with iOS 9.3 for web developers and designers: iPhone SE is equal to iPhone 5(s) iPad Pro 9.7″ is equal to iPad Mini / Air but with 3D Touch
CSS Modules Inline Styles CSS in JS Let’s start at the beginning… Documents — vs. — Web Apps Global scope — vs — Maintenance OOCSS SMACSS BEM SUIT .Block__Element--Modifier { ... } <div class="page my-page"> <header class="header"> <h1 class="heading header__heading">...</h1> </header> <article class="post"> <header class="post__header"> <h1 class="heading post__heading">Hello World</h1> </header>
Highlights This is a summary of the major changes you need to know about for this version of ESLint. Node.js without OpenSSL Compatibility Previously, the --cache feature was using the Node.js crypto module to calculate hashes of files to determine which files had changed. Because of this, ESLint wouldn’t work on Node.js compiled without OpenSSL. We changed the --cache feature to use a third-party
SourceEveryone involved here has my sympathy. The situation sucks for everyone, not least Azer (who owes none of you ingrates a damn thing!). But reading the GitHub thread should leave you thoroughly exasperated, because this problem is very easily solved. Bundle your code, even if it’s not for the browserJust to recap: left-pad was unpublishedBabel uses fixed versions of its dependencies, one of
The npm blog has been discontinued. Updates from the npm team are now published on the GitHub Blog and the GitHub Changelog. Disclaimer: we had been told this vulnerability would be disclosed on Monday, not Friday, so this post is a little rushed and may be edited later. As disclosed to us in January and formally discussed in CERT vulnerability note VU#319816, it is possible for a maliciously-writ
2016年3月21日、ng-japan 2016に参加しました。とても有用な情報が獲得できたのですが、資料などのURLが散らばってたのでまとめました。 全体のTogetter http://togetter.com/li/952725 ng-japan 2016 - C+D Room (主にAngular2関連のセッション) Yotube https://www.youtube.com/watch?v=4QVMhM75XK8 Angular 2の失敗しない始め方 / 稲富 駿 資料 - http://laco0416.github.io/slides/a-way-for-happy-angular-days/#/ Togetter - http://togetter.com/li/953341 Angular2実践入門 / 白石 俊平 資料 - http://www.slideshare.
This blog post gives tips for error handling in asynchronous, Promise-based functions. Operational errors vs. programmer errors # In programs, there are two kinds of errors: Operational errors happen when a correct program encounters an exceptional situation that requires deviating from the “normal” algorithm. For example, a storage device may run out of memory while the program is writing data t
What was wrong with "def CreateGapLease(self, lease_path='/leases/gap'):"? Immutable types like strings aren't a risk in default args. My version probably runs slightly faster and will produce much better automatically-extracted docs. The related trap, which you might have been trying to avoid, looks like this: def func(x=[]): . x.append(5) . return x (Except without the silly dots to workaround b
Emulators written in JavaScript A list of emulators written in the JavaScript programming language. This list started as a compilation of JavaScript emulators posted to Echo JS over the years. If you know about any missing emulators, please consider adding them to the collection: the source for this page is available on GitHub. Thank you in advance. Acorn Atom Tiny Emu - by Andre Weissflog (source
This article was peer reviewed by Mark Brown and MarcTowler. Thanks to all of SitePoint’s peer reviewers for making SitePoint content the best it can be! One of the biggest stumbling blocks when writing unit tests is what to do when you have code that’s non-trivial. In real life projects, code often does all kinds of things that make testing hard. Ajax requests, timers, dates, accessing other brow
The type system is like training wheels. It keeps you from falling, at the price of slowing you down and limiting flexibility.This article is now available in Japanese and Chinese. Last summer we had to convert a huge code base (18,000+ lines of code) from JavaScript to TypeScript. I learned a lot about the strengths and weaknesses of each, and when it makes sense to use one over the other. When i
ハウス・オブ・カードで寝不足の小飼です。 どうなるんですか、あのアレは... さて、最近個人的にGolangでアプリケーションを作ったり、Haskellを勉強したりしています。 いずれも静的型付けにより、実行前に型エラーを検出可能な言語です。 私は普段、動的型付け言語であるJavaScriptを主に書いていますので、初めこそビルド時のエラーにヤキモキしたりしましたが、慣れてくると非常に快適に感じるようになりました。 実行時に検出されるつまらない間違いや、間違った型が渡ってきた時の防御コード(if typeof variable !== 'string' console.warn('型が違う')のようなコード)が不要になること以外に、アプリケーション固有のデータ構造を型として宣言することで、何をするかよりも何であるかに注目した読みやすいコードを書くことが可能になるからです。 React.js
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く