並び順

ブックマーク数

期間指定

  • から
  • まで

241 - 280 件 / 471件

新着順 人気順

setterの検索結果241 - 280 件 / 471件

  • SolidJSに入門してみた | DevelopersIO

    こんちには。 データアナリティクス事業本部機械学習チームの中村です。 今回は機械学習ではなくてフロントエンド話で、SolidJSのチュートリアルやってみた記事を書いてみたいと思います。 ちょっと前にフロントエンドを少しやっていたのですが、久しぶりに余暇を使って何か触りたいなと思い、SolidJSというものが目に入ったのがきっかけです。 なお本記事は以下のチュートリアルをやってみて、ココは結構Reactと違うなとか、個人的にハマった部分などフォーカスしています。 詳しく知りたい方はぜひチュートリアルをやってみてください! 環境セットアップ お手元で動かしたい場合は、以下でOKです。 $ npx degit solidjs/templates/ts sample-solidjs $ cd sample-solidjs $ npm i $ npm run dev バンドラがViteだからかもしれ

      SolidJSに入門してみた | DevelopersIO
    • Cheat Sheet of Python Mock

      I always wanted to have this. The cool part of me, of course, wanted me to be the one who writes it, the pragmatic part just wanted to have access to a list like this and the hedonic part of me made me ignore the whole topic by telling me to chase after greater pleasures of life, at least greater than this blog post, no matter how magnificent it might eventually become, could ever be. But here I a

        Cheat Sheet of Python Mock
      • Javaでもう一度学び直すオブジェクト指向プログラミングを関数型プログラミングで考え直す 〜第3章〜

        この記事は前回に引き続き、Software Design 2021年3月号に掲載されているJavaでもう一度学び直すオブジェクト指向プログラミングと言う記事を関数型プログラミング言語Elmで考えたらどうなるだろう?と考えてみた記事です。 元雑誌の該当記事の第3章ではJavaのクラスを利用した設計は自由度が高すぎるため、手続き的な手法で書かれたアンチパターンを避け、より良いオブジェクト指向の設計を目指しましょうと言う内容でした(ざっくりですぎて、すみません)。 結論から述べると、この章の内容だけに限って言えば、関数型プログラミング言語を用いた方がアンチパターンに陥りにくい設計になるかつ、例として書かれているコードが実行時エラーを起こしうる危険なコードも含んでいたため、より安全な言語に倒した方がいいのでは無いか?と言う印象でした。 今回のコード全体です。 優れたオブジェクト指向の設計方法とは

          Javaでもう一度学び直すオブジェクト指向プログラミングを関数型プログラミングで考え直す 〜第3章〜
        • Kotlinを3ヶ月書いて感じたJavaとの違い - Uzabase for Engineers

          はじめに SPEEDA PDT歴3ヶ月の相川です 今回はJavaを2年くらい書いていた私が、3ヶ月間で感じたKotlinの特徴を列挙していこうと思います はじめに Kotlinの特徴 型推論について データクラスについて nullable 検査例外の話 returnを明示的に書かなくても良い 拡張関数と拡張プロパティ 拡張関数 拡張プロパティ リスト操作の評価について coroutineの話 まとめ Kotlinの特徴 型推論 データクラス nullable 検査例外の話 returnを明示的に書かなくても良い 拡張関数 リスト操作の評価について kotlin corutine 型推論について Kotlinでは変数を定義する際に、varもしくはvalを使います その際に、型推論が採用されているおかげで、Javaのように型を宣言しなくても良くなります ただ、Java10から型推論は使えるよう

            Kotlinを3ヶ月書いて感じたJavaとの違い - Uzabase for Engineers
          • Gevent チュートリアル

            はじめに このチュートリアルはある程度の Python の知識を前提としていますが、 それ以上の知識は前提としていません。 並列プログラミングの知識も必要ありません。 このチュートリアルの目的は、 gevent を扱う道具を提供し、 読者がすでに持っている一般的な並列プログラミングの問題を手なづけて 非同期プログラムを書き始められるように手助けすることです。 寄稿者 時系列順の寄稿者: Stephen Diehl Jérémy Bethmont sww Bruno Bigras David Ripton Travis Cline Boris Feld youngsterxyf Eddie Hebert Alexis Metaireau Daniel Velkov そして Denis Bilenko に、 gevent の開発とこのチュートリアルを作る上での 指導について感謝します。 この共

            • ドラゴンボールで学ぶオブジェクト指向

              はじめに こんにちは!たかっちと申します。 今回はドラゴンボールからオブジェクト指向について理解しようという 記事を書こうと思います。 今回記事を書こうと思ったきっかけですが、組み込みエンジニアを やっている同僚がJavaをやりだしたのを機に オブジェクト指向とはなんぞや?というところを 大好きなドラゴンボール(以下DBで略します)で初学者向けに ざっくり理解しようではないか!というのがきっかけです オブジェクト指向ってなあに? オブジェクト指向(OOP:Object Oriented Programming)とは、ソフトウェア開発の考え方のひとつで「処理を部品化して、部品を組み合わせることで1つのプログラムを作る考え方」のことを指します。 人がシステム開発を効率的に行うために、多くの言語で取り入れられている概念です。 プログラミング言語としては、Java、C++が有名ですね。 オブジェク

                ドラゴンボールで学ぶオブジェクト指向
              • useSignal() is the Future of Web Frameworks

                The key difference between Signals and State is that Signals return a getter and a setter, whereas non-reactive systems return a value (and a setter). Note: some reactive systems return a getter/setter together, and some as two separate references, but the idea is the same. The issue is that the word State conflates two separate concepts. StateReference: The state-reference is a reference to the s

                  useSignal() is the Future of Web Frameworks
                • Busting Android performance myths

                  Over the years, several myths have emerged about performance on Android. While some myths can be entertaining or amusing, being sent in the wrong direction when looking to create performant Android apps is no fun. In this blog post, in the spirit of MythBusters, we’re going to test these myths. For our myth-busting, we use real-world examples and tools that you can use. We focus on dominant use pa

                    Busting Android performance myths
                  • 【感想】『リファクタリング 既存のコードを安全に改善する (第2版)』:20年を経て生まれ変わる名著 - Rのつく財団入り口

                    伝説的名著の2版、題材はJavaScriptへ! (Pythonじゃなかったぞい) 本の感想エントリです。外部から動かした際の動きを変えずにプログラムの内部構造を改善し、メンテしやすさや拡張しやすさ、コードを書いた人以外からの理解しやすさや扱いやすさを改善していく手法である「リファクタリング」。 よくソフトウェア工学や開発の現場で出てくる単語ですが、このリファクタリングの教科書と言えばタイトルがそのまんまの『リファクタリング』。英語版は1999年刊行、腕に覚えのあるITエンジニアの方なら2000年代~2010年代にかけて読んでいる人の多い、あのマーチン・ファウラー大先生の有名な本でした。この頃世に出たオブジェクト指向やデザインパターン、開発手法などの本と同様、言語の題材はJavaとなっています。 その2版が計画されている、しかも今度は言語がJavaScript……というニュースが2018年

                      【感想】『リファクタリング 既存のコードを安全に改善する (第2版)』:20年を経て生まれ変わる名著 - Rのつく財団入り口
                    • 既存のgemにRBSで型定義を書く - kymmt

                      RBSの練習としてhatenablogというgemの型定義をRBSで書いた。 https://github.com/kymmt90/hatenablog/blob/v0.8.0/sig/hatenablog.rbs まだ該当gemのsigディレクトリに置いているだけだが、やったことを書いておく。 作業の流れ Ruby 3.0をインストールするなどしてrbs、typeprofは使える状態になっているとする。 TypeProfで型定義ファイルの雛形を生成する Steepを設定する rbs collectionでサードパーティgemの型定義を導入する steep checkを実行してエラーを確認する 型定義やコード本体を修正し、エラーを解消する CIでSteepを実行する ディレクトリ構造 次のようなディレクトリ構造とした。 . ├── Steepfile ├── lib │   └── (ge

                        既存のgemにRBSで型定義を書く - kymmt
                      • Type Parameters Proposal

                        Ian Lance Taylor Robert Griesemer August 20, 2021 StatusThis is the design for adding generic programming using type parameters to the Go language. This design has been proposed and accepted as a future language change. We currently expect that this change will be available in the Go 1.18 release in early 2022. AbstractWe suggest extending the Go language to add optional type parameters to type an

                        • React Queryを用いた開発事例の紹介 | Fintan

                          はじめに 本ドキュメントは、 React Queryを用いた開発事例の紹介です。 React Queryは、Reactで非同期データをフェッチ、キャッシング、更新するためのフックを提供するライブラリです。 React Queryを用いることで、効率的なバックエンド連携が実現できます。 本ドキュメントでは、このライブラリをどのように開発に適用したかを、ライブラリの機能説明を交えながら紹介します。 また、React Queryの特徴を活かしたシステム改善案についても紹介します。 想定読者 バックエンドと連携するシングルページアプリケーションをReactで開発するエンジニア。 参考文献・URL https://github.com/tannerlinsley/react-query 背景 昨今、フロントエンドをシングルページアプリケーション(以下、SPA)として構築するケースが増えてきました。

                            React Queryを用いた開発事例の紹介 | Fintan
                          • プロダクトにKotlinを導入して1年弱経ったので振り返る - MicroAd Developers Blog

                            アプリケーションエンジニアの宮田です。 自分の所属しているチームでは2019年10月から、既存のJava8で書かれたSpringBootアプリケーションへKotlinの導入を始めました。 今回のブログでは、Kotlinを導入して良かったこと、導入に当たって直面した課題、1年弱やった感想についてまとめます。 Kotlinを導入して良かったこと 安心感を持ってコードを書ける 個人的には「特に意識しなくてもnull安全・immutableなコードが簡潔に書けるようサポートが行き届いていて、その中でコードを書ける」というのがKotlinを導入して最も良かったことです。 やろうと思えばJavaでもKotlinと同じくらい堅牢なコードは書けますが、そのために必要とされる知識や努力は大きく、コードも煩雑になります。 また、「コード全体が基本的に安全な方向に作られている」という安心感はJavaに無いもので

                              プロダクトにKotlinを導入して1年弱経ったので振り返る - MicroAd Developers Blog
                            • 浅草キッド | Netflix (ネットフリックス) 公式サイト

                              '); doc.close(); } if (!doc) throw Error('base not supported'); var baseTag = doc.createElement('base'); baseTag.href = base; doc.getElementsByTagName('head')[0].appendChild(baseTag); var anchor = doc.createElement('a'); anchor.href = url; return anchor.href; } finally { if (iframe) iframe.parentNode.removeChild(iframe); } }()); } // An inner object implementing URLUtils (either a native URL // ob

                                浅草キッド | Netflix (ネットフリックス) 公式サイト
                              • Release Notes for Safari Technology Preview 114

                                Safari Technology Preview Release 114 is now available for download for macOS Big Sur and macOS Catalina. If you already have Safari Technology Preview installed, you can update in the Software Update pane of System Preferences on macOS. This release covers WebKit revisions 265893-267325. Web Inspector Elements Tab Changed to grey out properties that aren’t used or don’t apply (r266066) Changed to

                                • Solid.js feels like what I always wanted React to be

                                  Edit: thanks all for checking out this post! If you think Solid looks as promising as I do, please consider visiting the Solid.js GitHub repo and giving them a “Star” for their great work. I started working with React professionally about three years ago. This was, coincidentally, right around when React Hooks came out. I was working in a codebase with a lot of class components, which always felt

                                    Solid.js feels like what I always wanted React to be
                                  • Introducing the Memory Inspector  |  Blog  |  Chrome for Developers

                                    This article introduces the Memory Inspector that has landed in Chrome 91. It allows you to inspect your ArrayBuffer, TypedArray, DataView, and Wasm Memory. Introduction Ever wanted to make sense of the data in your ArrayBuffer? Prior to the Memory Inspector, DevTools only allowed for limited insight into ArrayBuffers. The inspection from the Scope view during a debugging session was limited to vi

                                    • 2023-01-24のJS: Bun v0.5、Remix v1.11.0、メモリリークの調査

                                      JSer.info #628 - Bun v0.5がリリースされました。 Bun v0.5 | Bun Blog package.jsonのworkspacesを使ったインストールをサポートしています。 Node.jsとの互換性としてnode:dns、node:tls、node:net、node:readlineのサポートが追加されています。 また、モジュール解決時の識別子の優先度の変更なども含まれています。 Remix v1.11.0がリリースされました。 Release v1.11.0 · remix-run/remix deferを使ってレスポンス待ちを減らせるように、@remix-run/css-bundleでのCSSファイルのロード、CSS Modules、Vanilla Extractのサポートが追加されています。 また、Remix v2で導入予定のFlat Routesをop

                                        2023-01-24のJS: Bun v0.5、Remix v1.11.0、メモリリークの調査
                                      • 【日本語版】All we know about Vue 3's Vapor Mode - Qiita

                                        初めに 本記事は All we know about Vue 3's Vapor Mode の日本語翻訳版です。 このブログは現時点で出回っている Vapor Mode についてのリソースでおそらく最も体系的にまとめられているもので、主に Evan You 氏の講演やインタビューをもとに書かれています。 このブログを書いてくださったのは :icarus.gk 氏で、彼はいつも Vue のアップデートのまとめや、機能の紹介に関して素晴らしい発信をしています。 日本語翻訳を公開する件について :icarus.gk 氏 は快く了承してくださいました。 この場を借りて感謝したいと思います。 また、コンテンツの最後に幾つかの注釈を加えました。 こちらは元のブログにはないものであり、筆者 (@ubugeeei) が追記しているという点に注意してください。 Vapor Mode とは? 🧐 Vapor

                                          【日本語版】All we know about Vue 3's Vapor Mode - Qiita
                                        • Dependency injection in Android  |  Android Developers

                                          Dependency injection in Android Stay organized with collections Save and categorize content based on your preferences. Dependency injection (DI) is a technique widely used in programming and well suited to Android development. By following the principles of DI, you lay the groundwork for good app architecture. Implementing dependency injection provides you with the following advantages: Reusabilit

                                            Dependency injection in Android  |  Android Developers
                                          • Netflix Tudum - Go behind the streams

                                            '); doc.close(); } if (!doc) throw Error('base not supported'); var baseTag = doc.createElement('base'); baseTag.href = base; doc.getElementsByTagName('head')[0].appendChild(baseTag); var anchor = doc.createElement('a'); anchor.href = url; return anchor.href; } finally { if (iframe) iframe.parentNode.removeChild(iframe); } }()); } // An inner object implementing URLUtils (either a native URL // ob

                                              Netflix Tudum - Go behind the streams
                                            • 【Spring Data JPA】自動実装されるメソッドの命名ルール - Qiita

                                              Spring Data JPAには、Repositoryインターフェースに宣言されたメソッドを、その名前からクエリを生成して自動的に生成してくれるお便利機能があります。どんな命名規則があるのか分からなかったのでメモ。 基本的にはマニュアルの要約です。 環境 Java ・・・ jdk1.8 Spring Boot ・・・ 1.3.5-RELEASE DB ・・・ MySQL 5.7 構文 以下の3つの要素を規則に従って組み合わせたメソッド名をRepositoryインターフェースに宣言することで、自動実装が利用可能になります。 プレフィックス(find...By read...By query...By count...By get...By) キーワード フィールド名 以下のエンティティを例に使います。 @Entity public class Employee implements Ser

                                                【Spring Data JPA】自動実装されるメソッドの命名ルール - Qiita
                                              • Why solve a problem twice? Design patterns let you apply existing solutions to your code - Stack Overflow

                                                The most satisfying problems in software engineering are those that no one has solved before. Cracking a unique problem is something that you can use in job interviews and talk about in conferences. But the reality is that the majority of challenges you face will have already been solved. You can use those solutions to better your own software. Software design patterns are typical solutions for th

                                                  Why solve a problem twice? Design patterns let you apply existing solutions to your code - Stack Overflow
                                                • Vue Test UtilsでStub(スタブ), axiosのMock(モック), ShallowMountを理解

                                                  本文書はJestとVue Test Utilを利用したVue.jsでのテストに関する2回目の記事で2回目となる今回はテスト入門者にとって少しわかりずらいStub(スタブ)やMock(モック)、Shallow Mountに注目して説明を行っています。 Stub, ShallowMountとMountの違いを説明した後にVue.jsのHTTPリクエストで頻繁に利用されるaxiosのMock(モック)の方法についても説明を行っています。コンポーネントの単体テストでは、axiosライブラリやfetch関数を利用した外部へのアクセスを伴う機能を実装している場合モックを利用することで外部へのアクセスを行うことなくコンポーネントのテストを実施することができます。 Vueでのテストを実施したまたは学習した経験がない人であれば先に前回公開した”【基本編】Jestを利用してVue コンポーネントをテストする方

                                                    Vue Test UtilsでStub(スタブ), axiosのMock(モック), ShallowMountを理解
                                                  • 陰謀論のオシゴト | Netflix (ネットフリックス) 公式サイト

                                                    '); doc.close(); } if (!doc) throw Error('base not supported'); var baseTag = doc.createElement('base'); baseTag.href = base; doc.getElementsByTagName('head')[0].appendChild(baseTag); var anchor = doc.createElement('a'); anchor.href = url; return anchor.href; } finally { if (iframe) iframe.parentNode.removeChild(iframe); } }()); } // An inner object implementing URLUtils (either a native URL // ob

                                                      陰謀論のオシゴト | Netflix (ネットフリックス) 公式サイト
                                                    • 腑に落ちるまでProperty wrappers | DevelopersIO

                                                      SwiftUI を一定期間触り続けていたのですが、SwiftUI とも関係が深い Property wrappers のことをよくわかってないまま使っているのにそろそろ耐えられなくなってきたので、プロポーザルやドキュメントを調べて他の人の実装を読んで、自分でも Property wrappers を使って玩具を実装していると少しずつ頭が整理されてきたので記事にしようと思います。 わからないもののインターフェースを覚えて課題を解決するためにうまく扱えるのは大切なスキルだと思います。が、自分の興味のある領域ぐらいは腹落ちしているレベルで理解しておきたいのが正直な気持ちです。 SwiftUI を一定期間触り続けていたのですが、SwiftUI とも関係が深い Property wrappers のことをよくわかってないまま使っているのにそろそろ耐えられなくなってきたので、プロポーザルやドキュメント

                                                        腑に落ちるまでProperty wrappers | DevelopersIO
                                                      • Bad ReactJs practices to avoid

                                                        Juraj Pavlović for Bornfight Posted on Nov 15, 2021 • Updated on Nov 22, 2021 • Originally published at bornfight.com There are plenty of articles and blogs that contain useful information on how to do things the right way. Best practices, good design patterns, clean code style, proper state usage, etc... Therefore I've decided to take things the opposite way and look for how not to do things! Thi

                                                          Bad ReactJs practices to avoid
                                                        • Autoloading in Rails 7, get ready!

                                                          The forthcoming Rails 7 represents a milestone for autoloading. There are two important changes coming: Zeitwerk has been the default autoloader for more than two years. Rails 6.0 and Rails 6.1 supported both zeitwerk and classic modes to help projects transition. This period ends with Rails 7: classic mode won’t be available anymore. Initializers can autoload reloadable constants if wrapped in to

                                                            Autoloading in Rails 7, get ready!
                                                          • Announcing .NET Community Toolkit 8.0! MVVM, Diagnostics, Performance, and more! - .NET Blog

                                                            Announcing .NET Community Toolkit 8.0! MVVM, Diagnostics, Performance, and more! We’re happy to announce the official launch of the new .NET Community Toolkit, which is now live on NuGet with version 8.0.0! This is a major release including a ton of new features, improvements, optimizations, bug fixes and many refactorings to also reflect the new project structure and organization, which this blog

                                                              Announcing .NET Community Toolkit 8.0! MVVM, Diagnostics, Performance, and more! - .NET Blog
                                                            • Spring Bootでマルチデータソースのやり方 - Gobble up pudding

                                                              以前このブログで紹介したMaven + Eclipseでマルチモジュールプロジェクトを作成するのなかでサンプルコードで示したものの特にマルチデータソースのやり方についての解説です。 この記事に書いてある通り、PostgreSQLとMongoDBを組み合わせる場合を例として書いてあります。 完成版のソースコードはこちらです。 ミドルウェア バージョン Spring Boot 2 Java 1.8 Apache Maven 3 細かいバージョンはGitHubを参照してください。 Spring-Data-JPAとSpring-Data-MongoDBを利用した場合のやり方を解説します。 構成の概要 プロジェクト/モジュール/パッケージは次のようになっています。 2モジュールありmulti-module-batchはサンプルを動かす利用側コード multi-module-commonはデータアクセ

                                                                Spring Bootでマルチデータソースのやり方 - Gobble up pudding
                                                              • 流転の地球 | Netflix (ネットフリックス) 公式サイト

                                                                '); doc.close(); } if (!doc) throw Error('base not supported'); var baseTag = doc.createElement('base'); baseTag.href = base; doc.getElementsByTagName('head')[0].appendChild(baseTag); var anchor = doc.createElement('a'); anchor.href = url; return anchor.href; } finally { if (iframe) iframe.parentNode.removeChild(iframe); } }()); } // An inner object implementing URLUtils (either a native URL // ob

                                                                  流転の地球 | Netflix (ネットフリックス) 公式サイト
                                                                • ページ遷移時の「このサイトを離れますか?」を意地でも表示しない方法 - Qiita

                                                                  フォームの入力値を編集したときなどに表示される「このサイトを離れますか?」というポップアップを非表示にする方法です。 色々と調べましたが、Object.definePropertyの setter で検知して値を上書きすると確実でした。 Object.defineProperty(window, 'onbeforeunload', { set(newValue) { if (typeof newValue === 'function') window.onbeforeunload = null; } }); ちなみに if (typeof newValue === 'function') 等のチェックがないと変更を検知し続けて無限ループになり、スタックが大変なことになるで気をつけましょう。 また、もし他に良い方法をご存知の方がいたらコメントで教えてください🙏 参考 Object.defi

                                                                    ページ遷移時の「このサイトを離れますか?」を意地でも表示しない方法 - Qiita
                                                                  • Equality comparisons and sameness - JavaScript | MDN

                                                                    JavaScript Tutorials Complete beginners JavaScript basics JavaScript first steps JavaScript building blocks Introducing JavaScript objects JavaScript Guide Introduction Grammar and types Control flow and error handling Loops and iteration Functions Expressions and operators Numbers and dates Text formatting Regular expressions Indexed collections Keyed collections Working with objects Using classe

                                                                      Equality comparisons and sameness - JavaScript | MDN
                                                                    • Reactive Programming with JavaScript - Qiita

                                                                      はじめに JavaScriptを触るなかで関数型リアクティブプログラミング(FRP)について知り、面白そうと調べましたが考え方のベースとなる部分を理解することに苦労したので記録として残します。 What is Reactive? アプリケーションは多くのモジュールによって構成されています。多くの場合、そのモジュール達はデータによって繋がっています。あるモジュールの値が更新されると、他のモジュールの値も更新されるようなシーンです。 例としてAmazonのようなオンラインショッピングサービスを提供するアプリケーションを挙げ、アプリケーション内の『カート』を担当するモジュールと、『請求書』を担当するモジュールの2つの関係に注目します。例えばユーザーがカートに商品を追加したとき、請求書は商品の金額に応じて自動で更新されます。つまり図の矢印はデータの流れを表していて、カートのデータが更新されると請求

                                                                        Reactive Programming with JavaScript - Qiita
                                                                      • Bean Validationで簡単入力チェック! - Qiita

                                                                        1. はじめに 今回はBean Validationを利用した入力チェックの方法について説明したいと思います。 Bean Validationの使い方 入力チェックの対象クラスにチェックに応じたアノテーションを付与する チェック対象となるインスタンスを生成する Validatorのvalidateメソッドにチェック対象のインスタンスを指定し、入力チェックを実行する 2. ライブラリの用意 必要となるライブラリを依存関係に追加します。 hibernate-validatorのメッセージ解決で必要となるためjavax.elも一緒に追加しています。 なお、Bean Validationのライブラリ(groupId:javax.validation、artifactId:validation-api)を記述していませんが、依存関係があるため自動で依存関係に追加されます。 <dependency>

                                                                          Bean Validationで簡単入力チェック! - Qiita
                                                                        • 新聞記者/The Journalist | Netflix (ネットフリックス) 公式サイト

                                                                          '); doc.close(); } if (!doc) throw Error('base not supported'); var baseTag = doc.createElement('base'); baseTag.href = base; doc.getElementsByTagName('head')[0].appendChild(baseTag); var anchor = doc.createElement('a'); anchor.href = url; return anchor.href; } finally { if (iframe) iframe.parentNode.removeChild(iframe); } }()); } // An inner object implementing URLUtils (either a native URL // ob

                                                                            新聞記者/The Journalist | Netflix (ネットフリックス) 公式サイト
                                                                          • Announcing the optics library

                                                                            We are delighted to announce the first Hackage release of optics, a Haskell library for defining and using lenses, traversals, prisms and other optic kinds. The optics library is broadly similar in functionality to the well-established lens library, but uses an abstract interface rather than exposing the underlying implementation of each optic kind. It aims to be easier to understand than lens, wi

                                                                            • PLUTO | Netflix (ネットフリックス) 公式サイト

                                                                              '); doc.close(); } if (!doc) throw Error('base not supported'); var baseTag = doc.createElement('base'); baseTag.href = base; doc.getElementsByTagName('head')[0].appendChild(baseTag); var anchor = doc.createElement('a'); anchor.href = url; return anchor.href; } finally { if (iframe) iframe.parentNode.removeChild(iframe); } }()); } // An inner object implementing URLUtils (either a native URL // ob

                                                                                PLUTO | Netflix (ネットフリックス) 公式サイト
                                                                              • TypeScript v4.3.0-beta 変更点を網羅する

                                                                                おーみーです。2020/04/01[1][2] に TypeScript 4.3 Beta が公開されました。「Announcing TypeScript 4.3 Beta」の内容を中心に新機能を紹介していきます。 Announcing TypeScript 4.3 Beta TypeScript 4.3 Iteration Plan TypeScript Roadmap: January - June 2021 npm i typescript@beta で導入できます。バージョンは 4.3.0-beta です。TypeScript Playground でも試すことができます。 Beta での変更点まとめ 型引数が制御フロー解析で絞り込まれるように (Improve Narrowing of Generic Types in Control Flow Analysis) getter

                                                                                  TypeScript v4.3.0-beta 変更点を網羅する
                                                                                • Google TypeScript Style Guide

                                                                                  // Good: choose between two options as appropriate (see below). import * as ng from '@angular/core'; import {Foo} from './foo'; // Only when needed: default imports. import Button from 'Button'; // Sometimes needed to import libraries for their side effects: import 'jasmine'; import '@polymer/paper-button'; Import paths TypeScript code must use paths to import other TypeScript code. Paths may be r