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

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

アプリで開く

はてなブックマーク

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

はてなブックマーク

トップへ戻る

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

    参議院選挙2025

『Perfection Kills』

  • 人気
  • 新着
  • すべて
  • Javascript quiz. ES6 edition. — Perfection Kills

    11 users

    perfectionkills.com

    Javascript quiz. ES6 edition. Remember that crazy Javascript quiz from 6 years ago? Craving to solve another set of mind-bending snippets no sensible developer would ever use in their code? Looking for a new installment of the most ridiculous Javascript interview questions? Look no further! The "ECMAScript Two Thousand Fifteen" installment of good old Javascript Quiz is finally here. The rules are

    • テクノロジー
    • 2015/11/05 02:43
    • es6
    • javascript
    • js
    • The poor, misunderstood innerText — Perfection Kills

      9 users

      perfectionkills.com

      The poor, misunderstood innerText Few things are as misunderstood and misused on the web as innerText property. That quirky, non-standard way of element's text retrieval, [introduced by Internet Explorer](https://msdn.microsoft.com/en-us/library/ie/ms533899%28v=vs.85%29.aspx) and later "copied" by both WebKit/Blink and Opera for web-compatibility reasons. It's usually seen in combination with text

      • テクノロジー
      • 2015/04/02 09:55
      • JavaScript
      • State of function decompilation in Javascript — Perfection Kills

        8 users

        perfectionkills.com

        State of function decompilation in Javascript It’s always fun to see something described as “magic” in Javascript world. One such example I came across recently was AngularJS dependency injection mechanism. I’ve never been familiar with the concept, but seeing it in practice looked clever and convenient. Not very magical though. What is it about? In short: defining required “modules” via function

        • テクノロジー
        • 2014/01/15 08:34
        • javascript
        • development
        • Exploring canvas drawing techniques — Perfection Kills

          38 users

          perfectionkills.com

          Exploring canvas drawing techniques Table Of Contents (toggle) Basics Simple pencil Smooth connections Edge smoothing with shadows Storing points Storing points with shadow Edge smoothing with radial gradient Bezier curves Brush, Fur, Pen Fur (rotating strokes) Pen (variable segment width) Pen #2 (multiple strokes) Thick brush Sliced strokes Sliced strokes with opacity Multiple lines Multiple line

          • テクノロジー
          • 2013/12/04 12:31
          • canvas
          • javascript
          • HTML5
          • drawing
          • tips
          • Profiling CSS for fun and profit — Perfection Kills

            25 users

            perfectionkills.com

            I’ve been recently working on optimizing performance of a so-called one-page web app. The application was highly dynamic, interactive, and was heavily stuffed with new CSS3 goodness. I’m not talking just border-radius and gradients. It was a full stack of shadows, gradients, transforms, sprinkled with transitions, smooth half-transparent colors, clever pseudo-element -based CSS tricks, and experim

            • テクノロジー
            • 2012/01/05 07:54
            • css
            • performance
            • css3
            • english
            • javascript
            • programming
            • Perfection kills » Extending built-in native objects. Evil or not?

              3 users

              perfectionkills.com

              Few days ago, Nick Morgan asked my opinion on extending native objects. The question came up when trying to answer — “why doesn’t underscore.js extend built-ins”? Why doesn’t it define all those Array methods — like map, forEach, every — on Array.prototype. Why does it put them under _ “namespace” — _.each, _.map, _.every, etc. Is it because extending built-in natives is evil? Or is it not? The th

              • 世の中
              • 2011/08/09 06:18
              • javascript
              • Refactoring Javascript with kratko.js — Perfection Kills

                10 users

                perfectionkills.com

                Understanding the concept of code refactoring is one of the best things you can do to become a better programmer [1]. It all started a couple of weeks ago when I — once again — looked at the growing, stinky mess that my code has become. It’s a few thousand LOC app with various interactive widgets and controls all on one page. Even though a lot of functionality was encapsulated in these separately-

                • テクノロジー
                • 2011/06/14 02:47
                • refactoring
                • javascript
                • library
                • JS
                • tools
                • *あとで
                • Perfection Kills

                  5 users

                  perfectionkills.com

                  Javascript quiz. ES6 edition. 4 November 2015 933 words The poor, misunderstood innerText 1 April 2015 3706 words Know thy reference 11 December 2014 2758 words Refactoring single page app 1 September 2014 4520 words HTML minifier revisited 28 July 2014 1443 words JSCritic 27 March 2014 1346 words State of function decompilation in Javascript 14 January 2014 1832 words Moving from Wordpress to Git

                  • テクノロジー
                  • 2011/01/16 23:46
                  • javascript
                  • example
                  • Tips
                  • Global eval. What are the options? — Perfection Kills

                    22 users

                    perfectionkills.com

                    How eval works Eval’ing in global scope Indirect eval call. Theory. Indirect eval call examples. Indirect eval call. In practice. window.execScript window.eval eval context in webkit new Function setTimeout Script insertion The problem with `window.execScript || eval` Feature testing -based approach Global eval in libraries Summary David Flanagan recently wrote about global eval() in Javascript, p

                    • テクノロジー
                    • 2010/12/16 20:07
                    • JavaScript
                    • プログラミング
                    • あとで読む
                    • instanceof considered harmful or how to write a robust isArray — Perfection Kills

                      10 users

                      perfectionkills.com

                      `instanceof` considered harmful (or how to write a robust `isArray`) Checking types in Javascript is well known as a pretty unreliable process. Good old typeof operator is often useless when it comes to certain types of values: typeof null; // "object" typeof []; // "object" People often expect to see something like “null” in the former check and something like “array” in the latter one. Fortunate

                      • テクノロジー
                      • 2010/10/22 11:57
                      • javascript
                      • ecmascript
                      • How ECMAScript 5 still does not allow to subclass array — Perfection Kills

                        15 users

                        perfectionkills.com

                        Why subclass an array? Naive approach Problems with naive approach Special nature of arrays Function objects and [[Construct]] The importance of array special behavior Existing solutions ECMAScript 5 accessors to the rescue [[Class]] limitations Does [[Class]] matter? Wrappers. Direct property injection. Wrappers. Prototype chain injection. Summary Subclassing an array in Javascript has never been

                        • テクノロジー
                        • 2010/07/17 20:02
                        • JavaScript
                        • development
                        • *あとで
                        • tips
                        • *あとで読む
                        • Detecting event support without browser sniffing — Perfection Kills

                          3 users

                          perfectionkills.com

                          One of the pain points of feature testing in client-side scripting is that for event support. DOM doesn’t really specify any means to detect exactly which events browser understands and can work with. If you’d like to know if a browser supports, say, “dblclick” event, you’re pretty much out of luck. This is probably the reason why so many scripts on the web employ unreliable browser sniffing in su

                          • テクノロジー
                          • 2010/07/08 10:57
                          • event
                          • JavaScript
                          • tips
                          • browser
                          • JScript and DOM changes in IE9 preview 3 — Perfection Kills

                            8 users

                            perfectionkills.com

                            3rd preview of IE9 was released yesterday, with some amazing additions, like canvas element and an extensive ES5 support. I’ve been digging through it a little, to see what has changed and what hasn’t — mainly looking at JScript and DOM. I posted some of the findings on twitter, but want to also list them here, as it’s not very convenient to share code snippets in 140 characters. Referencing it al

                            • テクノロジー
                            • 2010/06/29 09:20
                            • ie9
                            • javascript
                            • firefox
                            • What's wrong with extending the DOM — Perfection Kills

                              15 users

                              perfectionkills.com

                              I was recently surprised to find out how little the topic of DOM extensions is covered on the web. What’s disturbing is that downsides of this seemingly useful practice don’t seem to be well known, except in certain secluded circles. The lack of information could well explain why there are scripts and libraries built today that still fall into this trap. I’d like to explain why extending DOM is ge

                              • テクノロジー
                              • 2010/04/06 12:05
                              • javascript
                              • DOM
                              • html
                              • Javascript quiz — Perfection Kills

                                90 users

                                perfectionkills.com

                                I was recently reminded about Dmitry Baranovsky's Javascript test, when N. Zakas answered and explained it in a blog post. First time I saw those questions explained was by Richard Cornford in comp.lang.javascript, although not as thoroughly as by Nicholas. I decided to come up with my own little quiz. I wanted to keep question not very obscure, practical, yet challenging. They would also cover wi

                                • 暮らし
                                • 2010/02/09 16:30
                                • javascript
                                • quiz
                                • プログラミング
                                • ECMAScript
                                • あとで読む
                                • ネタ
                                • Understanding delete — Perfection Kills

                                  15 users

                                  perfectionkills.com

                                  Theory Type of code Execution context Activation object / Variable object Property attributes Built-ins and DontDelete Undeclared assignments Firebug confusion Deleting variables via eval Browsers compliance Gecko DontDelete bug IE bugs Misconceptions `delete` and host objects ES5 strict mode Summary A couple of weeks ago, I had a chance to glance through Stoyan Stefanov’s Object-Oriented Javascri

                                  • テクノロジー
                                  • 2010/01/12 02:13
                                  • javascript
                                  • Programming
                                  • 勉強
                                  • あとで読む
                                  • Perfection kills » Optimizing HTML

                                    10 users

                                    perfectionkills.com

                                    Why clean markup? Markup smells Additional optimizations Agressive optimizations When things go wrong Antipatterns Tools Future considerations Why clean markup? Client-side optimization is getting a lot of attention lately, but some of its basic aspects seem to go unnoticed. If you look carefully at pages on the web (even those that are supposed to be highly optimized), it’s easy to spot a good am

                                    • テクノロジー
                                    • 2010/01/05 10:25
                                    • HTML
                                    • optimize
                                    • optimization
                                    • JavaScript

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

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

                                    『Perfection Kills』の新着エントリーを見る

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

                                    j次のブックマーク

                                    k前のブックマーク

                                    lあとで読む

                                    eコメント一覧を開く

                                    oページを開く

                                    はてなブックマーク

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

                                    公式Twitter

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

                                    はてなのサービス

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