並び順

ブックマーク数

期間指定

  • から
  • まで

1 - 40 件 / 115件

新着順 人気順

Dependencyの検索結果1 - 40 件 / 115件

タグ検索の該当結果が少ないため、タイトル検索結果を表示しています。

Dependencyに関するエントリは115件あります。 githublibrarytypescript などが関連タグです。 人気エントリには 『「DIは必ずしも善ではない」| Dependency injection is not a virtue by DHH』などがあります。
  • 「DIは必ずしも善ではない」| Dependency injection is not a virtue by DHH

    DHHの Dependency injection is not a virtue(2013) という記事は有名ですが、ちゃんとした日本語訳が意外とないようなので、書き出してみて思ったことを要約してみた。[1] Rubyのエンジニアの中には、何も考えずに他のモデルのnewを書いてる人の割合が多いという(コードレビュー時のヒアリングによる)体感があり、また8年前の記事なので経験の浅い人は読んだことがない人もいると思う。該当する方は是非読んでほしい。 全部読む時間が無い人は要約へ. 原文と訳文 In languages less open than Ruby, hard-coded class references can make testing tough. If your Java code has Date date = new Date(); buried in its guts,

      「DIは必ずしも善ではない」| Dependency injection is not a virtue by DHH
    • なぜDependency Injectionなのか? ~関心の分離と疎結合~

      本稿は「アーキテクチャを突き詰める Online Conference」における発表「なぜDependency Injectionなのか? ~関心の分離と疎結合~」の登壇原稿となります。 発表時の動画アーカイブは後日公開されたタイミングでリンクを追加いたします。 また、本稿のサンプルコードとPower PointはGitHubで公開しています。 「CC BY-SA 4.0」で公開していますので、気に入っていただけたら営利目的含め、ライセンスの範囲で自由に利用していただいて問題ありません。 https://github.com/nuitsjp/WhyDependencyInjection というわけで、本稿の目指すゴールはこちら。 今日は、この場にいる皆さんが「なぜDependency Injectionを利用するのか?」ということを、理解いただくのが本日のゴールとなります。 というわけで本

        なぜDependency Injectionなのか? ~関心の分離と疎結合~
      • Istioを使って「Fast, Dependency-Agnostic, Isolated」な開発体験を実現した話 | Wantedly Engineer Blog

        皆さんこんにちは 👋Wantedly DXチームインターンの森本です。 今回は私がインターン課題として取り組んだ、Istioを使って「Fast, Dependency-Agnostic, Isolated」な開発体験を実現した話を紹介します。 DXチームとはデラックスチームではありません。Developer eXperience チームです 😉社内の開発体験を向上させることを目標に頑張っています。詳しくはメンターの大坪さんの記事を御覧ください。 マイクロサービスWantedlyのアプリケーションは異なる役割を持った複数のサービスによって構成されています。これをマイクロサービスアーキテクチャと呼びます。サービスは、RubyでDBにアクセスしユーザー情報を管理するもの、Pythonで機械学習を行うもの、Goで通知を発行するものなど様々です。それぞれのサービスは、モバイルやブラウザおよび他の

          Istioを使って「Fast, Dependency-Agnostic, Isolated」な開発体験を実現した話 | Wantedly Engineer Blog
        • GitHub Actions: Setup-node now supports dependency caching

          July 2, 2021 You can now run Node.js projects faster on GitHub Actions by enabling dependency caching on the setup-node action. setup-node supports caching from both npm and yarn package managers. - uses: actions/setup-node@v2 with: node-version: '14' cache: npm For questions, visit the GitHub Actions community Maintainers now have additional control over when they must approve Actions runs for ne

            GitHub Actions: Setup-node now supports dependency caching
          • GitHub - TomPrograms/stormdb: 🌩️ StormDB is a tiny, lightweight, 0 dependency, easy-to-use JSON-based database for NodeJS, the browser or Electron.

            🌩️ StormDB is a tiny, lightweight, 0 dependency, easy-to-use JSON-based database for NodeJS, the browser or Electron.

              GitHub - TomPrograms/stormdb: 🌩️ StormDB is a tiny, lightweight, 0 dependency, easy-to-use JSON-based database for NodeJS, the browser or Electron.
            • ゼロから理解するDependency Injection - inSmartBank

              Dependency Injection (DI) とは、オブジェクトに必要な依存関係を外から注入する設計パターンです。 本記事ではiOSアプリの実装をテーマに、DIがなぜ必要なのか、さらにはDI Containerとは何を解決するためにあるのかについて具体的な実装例をもとに解説します。 ※ 本記事は iOS Test Night #12 にて発表した内容を書き起こしたものとなっております。 speakerdeck.com Dependency Injection 依存を内部で初期化する書き方 依存性逆転の原則に従った書き方 DI Containerの基本 Daggerに学ぶ依存のライフタイム管理 SwiftUIアプリにおけるDI Containerの実装例 DI Containerの実装 Viewの実装 まとめ Dependency Injection Dependency Inject

                ゼロから理解するDependency Injection - inSmartBank
              • Massive ~2.3k Patch Series Would Improve Linux Build Times 50~80% & Fix "Dependency Hell" - Phoronix

                Show Your Support: This site is primarily supported by advertisements. Ads are what have allowed this site to be maintained on a daily basis for the past 19+ years. We do our best to ensure only clean, relevant ads are shown, when any nasty ads are detected, we work to remove them ASAP. If you would like to view the site without ads while still supporting our work, please consider our ad-free Phor

                  Massive ~2.3k Patch Series Would Improve Linux Build Times 50~80% & Fix "Dependency Hell" - Phoronix
                • Dependency on mimemagic 0.3.x no longer valid · Issue #41750 · rails/rails

                  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

                    Dependency on mimemagic 0.3.x no longer valid · Issue #41750 · rails/rails
                  • Introduction to Dependency Injection 「DI」の整理とそのメリット

                    2022年11月に行われた、Dependency Injectionに関する社内共有会の資料です。 DIという言葉の整理と実用例を紹介しています。

                      Introduction to Dependency Injection 「DI」の整理とそのメリット
                    • JavaScript・TypeScriptのimport・exportの依存関係を可視化するcode-dependencyの紹介 - Qiita

                      追記情報 v0.5.0で.vueの拡張子もサポートするようになりました。 はじめに 現在のJavaScriptはexport、importによるモジュールの切り離しと結合が可能であるため。大きなプロジェクトに成長させることができます。 実装が進むにつれてファイル間の依存が複雑になっていき、実装全体の依存関係を把握するのが難しくなっていきます。これはプロジェクトに対して新しいメンバーが増えたときに、コードリーディングの時間を十分に取る必要があります。また、OSSのライブラリに貢献したいときも同様の状況が生まれるでしょう。特に後者は開発メンバーが近くにいるとも限らず、他国の方である可能性も十分に高いため開発に参加するための準備が必要になります。 このような、全体の依存関係の設計を見直したい場合や、新たに開発に参画する場合により短時間に理解を深めるためのツールを作成したので紹介します。 @cod

                        JavaScript・TypeScriptのimport・exportの依存関係を可視化するcode-dependencyの紹介 - Qiita
                      • GitHub - vercel/nft: Node.js dependency tracing utility

                        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

                          GitHub - vercel/nft: Node.js dependency tracing utility
                        • Gradle の dependency locking について - tokuhirom's blog

                          昔の gradle には dependency locking 機能がなかった。ビルドするタイミングによって、別の依存モジュールが利用されたりしていた。。 最近、gradle に dependency locking 機能がついたので試してみた。 carton.lock とか package-lock.json とか、そういうのと同じようなことができるようになる。 同じレポジトリからビルドしたら同じ jar が生成されるようになる。便利。 dependency locking を利用すると gradle.lockfile というファイルが生成される。 デフォルトだとフェーズ単位でファイルが生成されるから enableFeaturePreview('ONE_LOCKFILE_PER_PROJECT') を settings.gradle に書いて1ファイルにまとめるようにしたほうが良い。gr

                          • GitHub - NicholasLYang/wasup: A zero-dependency, isomorphic library for emitting WebAssembly

                            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

                              GitHub - NicholasLYang/wasup: A zero-dependency, isomorphic library for emitting WebAssembly
                            • GitHub - ysk8hori/delta-typescript-graph-action: This GitHub Action uses Mermaid to visualize in a diagram the files that were changed in a Pull Request and their related dependency files.

                              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

                                GitHub - ysk8hori/delta-typescript-graph-action: This GitHub Action uses Mermaid to visualize in a diagram the files that were changed in a Pull Request and their related dependency files.
                              • GitHub - xataio/screenshot: A zero-dependency browser-native way to take screenshots powered by the native web MediaDevices API.

                                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

                                  GitHub - xataio/screenshot: A zero-dependency browser-native way to take screenshots powered by the native web MediaDevices API.
                                • GitHub - nodejs/corepack: Zero-runtime-dependency package acting as bridge between Node projects and their package managers

                                  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

                                    GitHub - nodejs/corepack: Zero-runtime-dependency package acting as bridge between Node projects and their package managers
                                  • Introducing the new npm Dependency Selector Syntax

                                    August 3, 2022 npm query is a new top-level command as of npm v8.16.0 which accepts a Dependency Selector (as defined in the Dependency Selector Syntax Specification) & returns a filtered JSON Array/NodeList of dependencies from your project. We believe this capability has been a missing piece of the package management ecosystem; With its introduction we hope to unlock the potential for developers

                                      Introducing the new npm Dependency Selector Syntax
                                    • Dependency Confusion: How I Hacked Into Apple, Microsoft and Dozens of Other Companies

                                      Ever since I started learning how to code, I have been fascinated by the level of trust we put in a simple command like this one: pip install package_nameSome programming languages, like Python, come with an easy, more or less official method of installing dependencies for your projects. These installers are usually tied to public code repositories where anyone can freely upload code packages for

                                        Dependency Confusion: How I Hacked Into Apple, Microsoft and Dozens of Other Companies
                                      • GitHub - AsyncBanana/microdiff: A fast, zero dependency object and array comparison library. Significantly faster than most other deep comparison libraries and has full TypeScript support.

                                        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.

                                          GitHub - AsyncBanana/microdiff: A fast, zero dependency object and array comparison library. Significantly faster than most other deep comparison libraries and has full TypeScript support.
                                        • GitHub - glasskube/glasskube: 🧊 The next generation Package Manager for Kubernetes 📦 Featuring a GUI and a CLI. Glasskube packages are dependency aware, GitOps ready and can get automatic updates via a central public package repository.

                                          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

                                            GitHub - glasskube/glasskube: 🧊 The next generation Package Manager for Kubernetes 📦 Featuring a GUI and a CLI. Glasskube packages are dependency aware, GitOps ready and can get automatic updates via a central public package repository.
                                          • Dependency

                                            A webcomic of romance, sarcasm, math, and language. What If? is on YouTube! The first video answers “What if we aimed Hubble at Earth?” Follow the What If? channel to be notified about new videos.

                                              Dependency
                                            • Cloudflare Workers で Dependency Injection

                                              NOT A HOTEL ではガッツリ Cloudflare Workers の上でアプリケーションを動かしています。 本格的にアプリケーションを開発しようとすると、ある機能 A を作成するために、それに依存する機能 B、機能 C を事前にセットアップしなければいけません。これらをスッキリさせる手法として Dependency Injection(以下 DI)があります。 環境変数もセットアップに必要な機能です。うちではどのように DI を行なっているか、一つの事例として紹介します。言語は TypeScript です。 ディレクトリ構成 di.ts を worker.ts と同じ階層に作成しています。 di.ts の中身 以下のようなコードを書いています。 使う時は new DIContainer(env, req) もしくは new DIContainer(env) と記述して利用できます

                                                Cloudflare Workers で Dependency Injection
                                              • DI(Dependency Injection)のメリットを理解する

                                                @Injectable() export class Test1Service { getName() { return { name: "john" }; } } @Controller("test1") export class Test1Controller { constructor(private readonly test1Service: Test1Service) {} @Get() getName() { return this.test1Service.getName(); } } Nest CLI でプロジェクトを作成したときに生成されるコードはこんな感じになっていると思います。 service での処理を controller で呼び出すことができているくらいにしか思いません。 このサービスは必ずしも、DI しないと使えないわけではなく、通常のクラスなので、インスタ

                                                  DI(Dependency Injection)のメリットを理解する
                                                • GitHub - askorama/orama: 🌌 Fast, dependency-free, full-text and vector search engine with typo tolerance, filters, facets, stemming, and more. Works with any JavaScript runtime, browser, server, service!

                                                  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

                                                    GitHub - askorama/orama: 🌌 Fast, dependency-free, full-text and vector search engine with typo tolerance, filters, facets, stemming, and more. Works with any JavaScript runtime, browser, server, service!
                                                  • PyTorch discloses malicious dependency chain compromise over holidays

                                                    HomeNewsSecurityPyTorch discloses malicious dependency chain compromise over holidays PyTorch has identified a malicious dependency with the same name as the framework's 'torchtriton' library. This has led to a successful compromise via the dependency confusion attack vector. PyTorch admins are warning users who installed PyTorch-nightly over the holidays to uninstall the framework and the counter

                                                      PyTorch discloses malicious dependency chain compromise over holidays
                                                    • Cyclic Dependency Space Toggles

                                                      Cyclic Dependency Space TogglesOver the past few years, I wanted to be able to select a value from a list in CSS by toggling a single custom property. We have the “space toggle” for booleans, and hopefully, one day, we’ll get style queries, but what about today? In this article, I present you with the technique I recently discovered. The Technique Let me startGo to a sidenote by showing you the co

                                                      • Zeitwerkとrequire_dependency - Money Forward Developers Blog

                                                        こんにちは、ぽっけです。マネーフォワード クラウド会計Plusでエンジニアをしています。 Rails 6.0から、新しいAutoloaderとしてZeitwerkが導入されました。Rails 7.0からは旧来のAutoloader (Classicと呼びます)は使えなくなり、Zeitwerkが必須となりました。 Railsでソースコードを読み込むメソッドにrequire_dependencyがあります。require_dependencyは、Zeitwerkでは使う必要がなくなりました。 この記事では、require_dependencyがなぜZeitwerkで必要ないのかを深堀りしようと思います。 require_dependencyとは そもそもrequire_dependencyとは何でしょうか? このメソッドは、Rubyデフォルトのrequireやloadの代わりにRailsが提供

                                                          Zeitwerkとrequire_dependency - Money Forward Developers Blog
                                                        • Dependency Injectionでやりたいことはモジュールimport - きしだのHatena

                                                          Dependency Injection(DI)、最近のフレームワークには欠かせない気がする機能になってますね。 そしてDIの説明をみると「依存性の注入」みたいなことが書いてあって、ようわからんになりがちです。 実態としては高機能なimportなので、あまり難しいことを考えなくていいような気がします。 たとえば、こんな感じのMyServiceクラスがあってDIコンテナに管理させるとします。 @Component class MyService { void method() { } } そして、MyServiceを使うMyControllerがあるとします。 @Component class MyController { @Inject MyService service; void hello() { service.method(); } } これって、実際のところMyServiceの

                                                            Dependency Injectionでやりたいことはモジュールimport - きしだのHatena
                                                          • GitHub - webtoon/psd: Fast zero-dependency PSD parser for the web and Node.js

                                                            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

                                                              GitHub - webtoon/psd: Fast zero-dependency PSD parser for the web and Node.js
                                                            • npm installでのCould not resolve dependencyエラーと--legacy-peer-depsについて

                                                              はじめに npm installを実行したときに以下のような依存解決エラーが出ることがあります。このエラーは--legacy-peer-depsオプションを付与することで解消できるのですが、エラーの具体的な意味や本オプションの内容をちゃんと理解してこなかったので、すこし調べてみました。 npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: react-alert@7.0.3 npm ERR! Found: react@18.2.0 npm ERR! node_modules/react npm ERR! react@"^18.2.0" from the root project npm ERR! peerOptional react@"^16.8.0 ||

                                                                npm installでのCould not resolve dependencyエラーと--legacy-peer-depsについて
                                                              • GitHub - NodeSecure/cli: JavaScript security CLI that allow you to deeply analyze the dependency tree of a given package or local Node.js project.

                                                                Run a static scan on every JavaScript files and sort out warnings (unsafe-regex, unsafe-import etc) and the complete list of required expr and statements (files, node.js module, etc.). Return complete composition for each packages (extensions, files, tarball size, etc). Packages metadata from the npm registry API (number of releases, last publish date, maintainers etc). Search for licenses files i

                                                                  GitHub - NodeSecure/cli: JavaScript security CLI that allow you to deeply analyze the dependency tree of a given package or local Node.js project.
                                                                • GitHub - statsig-io/statuspage: A simple, zero-dependency, pure js/html status page based on GitHub Pages and Actions.

                                                                  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

                                                                    GitHub - statsig-io/statuspage: A simple, zero-dependency, pure js/html status page based on GitHub Pages and Actions.
                                                                  • Poetry の Dependency Group を利用したモノレポ Python 環境|Tatsuya Shirakawa

                                                                    こんにちは、カウシェで ML Engineer をしている白川です。 以前に一人目 ML Engineer としての入社エントリーを書かせていただいたのですが、実はアプリケーションで Python を使用する開発者としても一人目だったので、機械学習系の機能開発をしつつ Python 環境の設計・構築も行っています。開拓するのは楽しいです。 今回、Poetry の dependency group 機能を使うことでモノレポにおいて軽量でクリーンに動作する、なかなかよい開発環境を作ることができたので、思い切って公開してみます! なお、本格的な運用はこれから始めるところなので、気持ちのこもった速報版くらいの気持ちで受け取っていただけるとありがたいです。 Poetry の dependency group 便利ですよ! モノレポカウシェは基本的にはモノレポで開発をしています。そのため、何か開発する

                                                                      Poetry の Dependency Group を利用したモノレポ Python 環境|Tatsuya Shirakawa
                                                                    • GitHub Universe 2020の基調講演で発表された新機能を紹介、GitHub ActionsのアップデートやDependency reviewなど

                                                                        GitHub Universe 2020の基調講演で発表された新機能を紹介、GitHub ActionsのアップデートやDependency reviewなど
                                                                      • the _zero_ dependency _WebAssembly_ runtime for _Go developers_

                                                                        WebAssembly is a way to safely run code compiled in other languages. Runtimes execute WebAssembly Modules (Wasm), which are most often binaries with a .wasm extension. wazero is the only zero dependency WebAssembly runtime written in Go. Get Started #Get the wazero CLI and run any Wasm binary

                                                                        • Kafka Needs No Keeper - Removing ZooKeeper Dependency

                                                                          Currently, Apache Kafka® uses Apache ZooKeeper™ to store its metadata. Data such as the location of partitions and the configuration of topics are stored outside of Kafka itself, in a separate ZooKeeper cluster. In 2019, we outlined a plan to break this dependency and bring metadata management into Kafka itself. So what is the problem with ZooKeeper? Actually, the problem is not with ZooKeeper its

                                                                            Kafka Needs No Keeper - Removing ZooKeeper Dependency
                                                                          • GitHub - tetratelabs/wazero: wazero: the zero dependency WebAssembly runtime for Go developers

                                                                            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

                                                                              GitHub - tetratelabs/wazero: wazero: the zero dependency WebAssembly runtime for Go developers
                                                                            • wire で Dependency Injection しよう

                                                                              Magic Moment の @aqlwah です。 私たちが開発している Magic Moment Playbook では、モジュール間の依存の管理を楽にするため wire を活用しています。 とても便利なツールですが、wire が行う Dependency Injection (DI:依存性の注入)がいまいち直感的に理解しづらく、弊チームでもバックエンドの新規参画者を迷わせる要因となっています。 本稿では、これから弊チームで wire に手間取る人が出ないことを願って、ざっくり wire の役割をまとめます。 DI って何よ wire は Dependency Injection (DI:依存性の注入)のためのツールです。 DI とは端的に言うと、「依存するモジュールを自分で生成せず、外部から受け取る(注入する)」デザインパターンです。 // without DI type Greet

                                                                                wire で Dependency Injection しよう
                                                                              • npmgraph - NPM Dependency Diagrams

                                                                                Graph / visualize of npm dependencies

                                                                                • ERESOLVE unable to resolve dependency treeの解決方法 - Qiita

                                                                                  背景 Dockerのnodeコンテナ内で、create-react-appでReactプロジェクトを作成し、 その後にmaterial-uiをインストールしようとしたときに、発生したエラーでした。 ※調べてみた感じ、npm installで、インストール元のパッケージのバージョンが最新(latest)で、 インストールするパッケージの最新バージョンが同等(peer)でなかったときに発生するエラーのようでした。 結論 そのライブラリをインストールしたい場合は、npm installのあとに、--save --legacy-peer-depsを追加してあげましょう。 もしくは、インストール元のプロジェクトのダウングレードを検討しましょう。。 経緯 # このようなエラーが発生。。 npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve

                                                                                    ERESOLVE unable to resolve dependency treeの解決方法 - Qiita

                                                                                  新着記事