タグ

2019年11月12日のブックマーク (2件)

  • Get started with Web Bundles  |  Web Platform  |  Chrome for Developers

    Bundling a full website as a single file and making it shareable opens up new use cases for the web. Imagine a world where you can: Create your own content and distribute it in all sorts of ways without being restricted to the network Share a web app or piece of web content with your friends via Bluetooth or Wi-Fi Direct Carry your site on your own USB or even host it on your own local network The

    Shisama
    Shisama 2019/11/12
    Webサイトを.wbn拡張子の単一のバイナリファイルにバンドルすることでオフラインでも直接端末同士で共有することが可能となるBundled HTTP Exchangeについて。Goでのバンドル方法と試用方法も書かれてる
  • githubで最もやべー関数を発掘する - Qiita

    はじめに 先日、職場で「自分が 改修したor 書いちゃった いちばんやべー関数」ネタで盛り上がりました。 みんないろいろ話してくれましたが、やっぱり僕の書いた「コマンドパターンのメインループ関数(1500行)」の圧勝でした。 なんであんなコード書いたんだろ。 そこで、今日は僕の傷ついたプライド癒すべくgithubから「世界でいちばんやべー関数」を発掘します。 つまり、「俺が書いた関数よりやべー関数に会いに行く」 結論 マジでやべー関数は次の2つ 「opencvリポジトリのcv::agast_cornerScore<AgastFeatureDetector::AGAST_7_12s>関数」(複雑度1868) 「SuiteCRMリポジトリのOpenTag関数」(複雑度1509) 言語毎の傾向に着目すると... javascriptにはやべー関数が多い python/java/swift/rub

    githubで最もやべー関数を発掘する - Qiita
    Shisama
    Shisama 2019/11/12
    GitHub内の循環的複雑度が高い関数の抽出について。nodejs/node内の関数もTop10にあったので見たら全部v8のコードだった。nodeはv8のコードそのまま取り込んでいるだけなのに、v8のリポジトリが引っかからないのはなんでだろう