並び順

ブックマーク数

期間指定

  • から
  • まで

321 - 360 件 / 667件

新着順 人気順

Dependencyの検索結果321 - 360 件 / 667件

  • Scalaによる64行のDependency Injectionフレームワーク - N2 ToolBox(跡地)

    機能のエントリで作ったDIフレームワークをもうちょっとちゃんとしました。 長いですけど引用します。 コンポーネントの循環参照を自動的に解決できるようになりました! 1 import scala.collection.immutable.Map 2 import scala.collection.immutable.Stack 3 4 trait Key[+T] 5 6 class Component(val entries:Map[Key[Any],(Injector)=>Any]) { 7 8     def define[T](key:Key[T], factory: (Injector)=> T) = 9         new Component(entries + (key -> factory)) 10 11     def define[T](key:Key[T], fact

      Scalaによる64行のDependency Injectionフレームワーク - N2 ToolBox(跡地)
    • GitHub - stephanenicolas/toothpick: A scope tree based Dependency Injection (DI) library for Java / Kotlin / Android.

      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 - stephanenicolas/toothpick: A scope tree based Dependency Injection (DI) library for Java / Kotlin / Android.
      • GoでDependency Injection - Carpe Diem

        概要 「Dependency Injection=依存性の注入」と言われますが、依存したオブジェクトを外部から入れることで何がメリットなのかを感じ取るのは実際に書いてみて分かると思うので、勉強としてまとめてみました。 Dependency Injectionとは デザインパターン 「依存性の注入」ではなく「依存するオブジェクトを注入」 DIコンテナとは別。デザインパターンなのでどの言語でもできる A dependency is an object that can be used (a service). An injection is the passing of a dependency to a dependent object (a client) that would use it. The service is made part of the client's state.[

          GoでDependency Injection - Carpe Diem
        • 初学者でも10分で理解できる依存性逆転の原則(Dependency inversion principle) - Qiita

          この記事について この記事は YYPHPアドベントカレンダー22日目の記事となります。 内容としては私が主催しているPHPer向けの勉強会 ぺちオブにて開催した、初心者向けのオブジェクト指向勉強会にて説明した内容を加筆修正したものです。 勉強会自体はSOLID原則を数回に渡って解説したのですが、全て掲載するにはさすがに長過ぎるので、今回は依存性逆転の原則(Dependency inversion principle)について説明した会の内容に絞って記載させて頂いています。それでも少し長いですがお付き合いくださいませ。 本稿の目的 依存性逆転の原則(DIP)はオブジェクト指向設計において切っても切り離せない概念です。 ですが、初学時にはイメージし辛い部分もあったりしますので、本稿はまずそのDIPのイメージをプログラミング関係なく概念的なイメージを持ってもらい、その後そのイメージをプログラミン

            初学者でも10分で理解できる依存性逆転の原則(Dependency inversion principle) - Qiita
          • Dependency Managers Don’t Manage Your Dependencies

            First published on May 5, 2021, updated on May 18, 2023 I promised to write about tech, so let’s start building our JavaScript infrastructure muscles. In the next several blog posts, I’ll cover introductory topics on dependency management, actionable tips for making your infrastructure better, and guides for building JavaScript infrastructure. We’ll slowly develop our shared understanding so we ca

              Dependency Managers Don’t Manage Your Dependencies
            • google/wireを使ってGoでDI(dependency injection)してみる | ビジネスとIT活用に役立つ情報(株式会社アーティス)

              フローを把握する wireを使ってのDIは、以下のフローになります。 「DIしたい対象を生成する関数」を生成する関数を定義する wireコマンドで、上記のファイルから「DIしたい対象を生成する関数」をジェネレートする その関数を利用する 他の言語のDIコンテナと比べると、すこしフローが違うので最初は戸惑うかもしれません。 DIコンテナ(とその設定)を、メタ的に自動生成するイメージに近いかと思います。 チュートリアルで動きを確認する こちらの公式のチュートリアルを動かしながら動作を確認していきます。 https://github.com/google/wire/blob/master/_tutorial/README.md まずは、手動でDIするコードで動きを理解しておきます。(予習は大事です) main.go を作りその中に以下のコードを書き込みます。 package main impor

                google/wireを使ってGoでDI(dependency injection)してみる | ビジネスとIT活用に役立つ情報(株式会社アーティス)
              • PythonでDI(Dependency Injection) - Qiita

                PythonでDIする 需要はなさそうですが、たまたまPythonでDIする方法を調べたので、、、 いくつかの選択肢 Injector (ドキュメントはこちら) Inject (日本語の記事がありました) siringa(ドキュメントはこちら) di-py Injectは2015年で開発が止まっているようです。 di-pyはあまりドキュメントが充実していないようです。 siringaは型ヒントをごにょごにょしてInjectするちょっと変態チックなやり方だったので避けました。 消去法でInjectorを試してみました。 Injectorの特徴 ドキュメントでも説明されてますが、Google Guiceライクなフレームワークになっています。 Google Guiceの説明はこの方の記事がわかりやすかったです。 Google Guice 使い方メモ InjectやModule、Providerな

                  PythonでDI(Dependency Injection) - Qiita
                • Dependency injection in Play Framework using Scala

                  This article is an overview of dependency injection (DI) techniques that can be used in Scala Play framework apps: Guice, manual DI, the cake pattern, MacWire, and the reader monad. Play can be considered to be a flexible framework that doesn’t force the users to follow a certain path prepared by its designers. You have a lot of options to choose from when it comes to a dependency injection mechan

                    Dependency injection in Play Framework using Scala
                  • GitHub - domvm/domvm: DOM ViewModel - A thin, fast, dependency-free vdom view layer

                    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 - domvm/domvm: DOM ViewModel - A thin, fast, dependency-free vdom view layer
                    • Dependency Injection in Swift 2.x by ゴミ箱 さん - niconare

                      スライド内のリンクは次のURLから辿れます https://gist.github.com/53ningen/93660070dedb25377032

                        Dependency Injection in Swift 2.x by ゴミ箱 さん - niconare
                      • オワスプナイト20150115 dependency check

                        6. Webアプリセキュリティ教育に関する取組み 1. 半日の入門コースを定期開催 – 基本的に座学中心 – 脆弱性のメカニズムと対策について、原理・原則を学ぶ – 受講者は、「PM」「SE」等の技術職以外に、Web企画職の方も 2. 社内ハードニングイベントを開催 – 現実的に起こりうるシナリオを体験する – 開発・運用・インシデント対応で必要なスキルを学ぶ 理論 実践 8. アジェンダ(例) • Webアプリケーションインシデントとビジネスインパクト事例 • セキュアなWebアプリケーション開発ー 概 論 ー • Webアプリケーションのセッション管理 • セッション管理の不備をついた攻撃と対策 – セッションハイジャック – セッションフィクセーション(セッション固定) – クロスサイト・リクエスト・フォージェリ • 入出力の不備を突いた攻撃と対策 – クロスサイトスクリプティング

                          オワスプナイト20150115 dependency check
                        • How can I update each dependency in package.json to the latest version?

                          Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams Collectives™ on Stack Overflow Find centralized, trusted content and collaborate around the technologies you use most. Learn more about Collectives

                            How can I update each dependency in package.json to the latest version?
                          • GitHub - ded/script.js: Asyncronous JavaScript loader and dependency manager

                            $script.js - Async JavaScript loader & dependency manager $script.js is an asynchronous JavaScript loader and dependency manager with an astonishingly impressive lightweight footprint. Like many other script loaders, $script.js allows you to load script resources on-demand from any URL and not block other resources from loading (like CSS and images). Furthermore, it's unique interface allows devel

                              GitHub - ded/script.js: Asyncronous JavaScript loader and dependency manager
                            • Mistaeks I Hav Made: "Dependency Injection" Considered Harmful

                              Good judgement is the result of experience ... Experience is the result of bad judgement. — Fred Brooks Dependency Injection and Dependency Injection frameworks are a frequent topic on the GOOS discussion group. We are often asked why we didn't use Dependency Injection (usually meaning a Dependency Injection framework) in the code examples. GOOS does use dependency injection througout, but we don'

                              • GitHub - mkirchner/gc: Simple, zero-dependency garbage collection for C

                                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 - mkirchner/gc: Simple, zero-dependency garbage collection for C
                                • GitHub - ishkawa/DIKit: A statically typed dependency injector for Swift.

                                  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 - ishkawa/DIKit: A statically typed dependency injector for Swift.
                                  • The Java EE 7 TutorialのContexts and Dependency Injection for Java EE: Advanced Topicsの章をテキトーに訳した - kagamihogeの日記

                                    The Java EE 7 Tutorialの25 Contexts and Dependency Injection for Java EE: Advanced Topicsのセクションを読んでテキトーに訳した。 25 Contexts and Dependency Injection for Java EE: Advanced Topics このチャプターではContexts and Dependency Injection for Java EE (CDI)のより高度な機能について解説します。とくに、CDIの高度な機能が提供する強い型付けによる疎結合コンポーネントに触れます。 以下のトピックをここで扱います。 Packaging CDI Applications Using Alternatives in CDI Applications Using Producer Methods

                                      The Java EE 7 TutorialのContexts and Dependency Injection for Java EE: Advanced Topicsの章をテキトーに訳した - kagamihogeの日記
                                    • GitHub - luruke/adapttext.js: :raised_hands: - AdaptText.js is a dependency free and simple javascript solution capable to fit your text inside the parent element

                                      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 - luruke/adapttext.js: :raised_hands: - AdaptText.js is a dependency free and simple javascript solution capable to fit your text inside the parent element
                                      • Dependency Injection with Dagger 2 | CodePath Android Cliffnotes

                                        Overview Many Android apps rely on instantiating objects that often require other dependencies. For instance, a Twitter API client may be built using a networking library such as Retrofit. To use this library, you might also need to add parsing libraries such as Gson. In addition, classes that implement authentication or caching may require accessing shared preferences or other common storage, req

                                          Dependency Injection with Dagger 2 | CodePath Android Cliffnotes
                                        • Gitlab.comを使った開発でDocker Hubからのpull制限を回避するためにDependency Proxyを使う - Qiita

                                          Gitlab.comを使った開発でDocker Hubからのpull制限を回避するためにDependency Proxyを使うGitLabDockerDockerHub 開発中に何度もDocker Hubからpullを実行しているとpull制限に引っかかってしまいます→ダウンロード率制限 これを回避するためGitlab.comではDependency Proxyが用意されています。pull先をDependency ProxyにすることでDocker Hubから落としたイメージがDependency Proxy上にキャッシュされ以後、Dependency Proxy上のキャッシュを参照することになるので、Docker Hubのpull制限にほぼ引っかからなくなります。 使い方 通常の場合 DockerHubのalpine:latestを使いたい場合は以下のようになります。login先がreg

                                            Gitlab.comを使った開発でDocker Hubからのpull制限を回避するためにDependency Proxyを使う - Qiita
                                          • 真・なぜ誰もこう書いてくれないDependency Injection入門

                                            Why is the subject of the story about Java support JDK?

                                              真・なぜ誰もこう書いてくれないDependency Injection入門
                                            • GitHub - sbt/sbt-dependency-graph: sbt plugin to create a dependency graph for your project

                                              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 - sbt/sbt-dependency-graph: sbt plugin to create a dependency graph for your project
                                              • Composer "provide" and dependency inversion — Matthias Noback - Blog

                                                This is a response to Peter Petermann's article Composer and virtual packages. First, let's make this totally clear: I don't want to start an Internet war about this, I'm just pointing out some design issues that may arise from using Composer's provide option in your package's composer.json file. This means it's also nothing personal. To Peter: you wrote a very nice article and shed light on an un

                                                  Composer "provide" and dependency inversion — Matthias Noback - Blog
                                                • GitHub - AlexeyBoiko/DgrmJS: Dgrm.net - flowchart editor. Works on desktop, phone and tablet. Has no dependency. Pure JavaScript.

                                                  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 - AlexeyBoiko/DgrmJS: Dgrm.net - flowchart editor. Works on desktop, phone and tablet. Has no dependency. Pure JavaScript.
                                                  • GitHub - lukejacksonn/servor: Dependency free file server for single page app development

                                                    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 - lukejacksonn/servor: Dependency free file server for single page app development
                                                    • MavenでOWASP Dependency CheckによるJavaライブラリの脆弱性をチェックする - 覚えたら書く

                                                      OWASP Dependency Checkで使用しているJavaライブラリの脆弱性をチェックすることができます。 今回はMavenのpluginを使用します。 設定 pom.xmlに以下を追記します。 <plugins> ・・・ <plugin> <groupId>org.owasp</groupId> <artifactId>dependency-check-maven</artifactId> <version>2.0.0</version> <configuration> <assemblyAnalyzerEnabled>false</assemblyAnalyzerEnabled> </configuration> <executions> <execution> <goals> <goal>check</goal> </goals> </execution> </executi

                                                        MavenでOWASP Dependency CheckによるJavaライブラリの脆弱性をチェックする - 覚えたら書く
                                                      • GitHub - codegangsta/inject: Dependency injection for go

                                                        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 - codegangsta/inject: Dependency injection for go
                                                        • Play framework 2.0 betaが出たようです6 – Dependency Injectionをやってみよう | DevelopersIO

                                                          Play framework 2.0 betaが出たようです6 – Dependency Injectionをやってみよう PlayでDependency injectionを実現する 先日Play framework2.0でおもしろそうなtipsがblogで紹介されていたので、ここでもご紹介。 そのブログ 内容はPlay framework2.0(Scala)でDIを実現しようというものです。 近年のJava系Webアプリケーションで、DIはあたりまえのように使用されていると思います。 Play frameworkにもSpringやGuiceを使用するためのモジュールがありますが、独自にDIの仕組みをもっているわけではありません。 しかし、今回ご紹介するtipsではPlay framework2.0とScala標準の機能(とデザインパターン)でDIを実現しています。 ではblogの内容に

                                                          • Apache Maven Dependency Plugin – Introduction

                                                            Apache/ Maven/ Plugins/ Apache Maven Dependency Plugin/ Introduction | Last Published: 2023-10-20 Version: 3.6.1 The dependency plugin provides the capability to manipulate artifacts. It can copy and/or unpack artifacts from local or remote repositories to a specified location. Goals Overview The Dependency plugin has several goals: dependency:analyze analyzes the dependencies of this project and

                                                            • GitHub - iammerrick/Squire.js: Your friendly dependency injector for testing Require.js modules.

                                                              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 - iammerrick/Squire.js: Your friendly dependency injector for testing Require.js modules.
                                                              • OWASP Dependency-Check Maven Pluginで、依存ライブラリの脆弱性情報を確認する - CLOVER🍀

                                                                これは、なにをしたくて書いたもの? OWASP Dependency-Check Maven Pluginという、依存ライブラリの脆弱性情報を確認できるプラグインがあるということを知りまして。 dependency-check-maven – Usage ちょっと、こちらを試してみようかなと。 OWASP Dependency-Check? OWASP Dependency-Checkというのは、プロジェクトの依存するコンポーネント(ライブラリ)の公開されている既知の脆弱性を 確認してくれるソフトウェアです。 OWASP Dependency Check - OWASP dependency-check – About 確認の結果、脆弱性が見つかった場合は該当するCVEのリストが表示されます。 https://cve.mitre.org/ ドキュメントによると、Java、.NETがサポート

                                                                  OWASP Dependency-Check Maven Pluginで、依存ライブラリの脆弱性情報を確認する - CLOVER🍀
                                                                • Automated dependency updates with pull requests

                                                                  Command Line Tool for Managing Dependencies deps is a command line tool for staying on top of dependencies. It runs updates, automates pull requests, and keeps your local installations in check.

                                                                    Automated dependency updates with pull requests
                                                                  • GitHub - ohoachuck/wwdc-downloader: WWDC 2019 video downloader script written in Swift - no external dependency.

                                                                    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 - ohoachuck/wwdc-downloader: WWDC 2019 video downloader script written in Swift - no external dependency.
                                                                    • Dagger: A Fast Dependency Injector for Android and Java

                                                                      InfoQ Software Architects' Newsletter A monthly overview of things you need to know as an architect or aspiring architect. View an example

                                                                        Dagger: A Fast Dependency Injector for Android and Java
                                                                      • Google Code Blog: Guice, Google's internal Java dependency injection framework, released as open source

                                                                        Posted by Dion Almaer, Google Developer Programs Google has been using a blazingly fast, innovative, Java 5-based dependency injection framework in mission critical applications for quite some time. The project is lead by Bob Lee, and we are pleased to say that we have released it to the community as open source software. Guice wholly embraces annotations and generics, thereby enabling you to wire

                                                                        • GitHub - InsertKoinIO/koin: Koin - a pragmatic lightweight dependency injection framework for Kotlin & Kotlin Multiplatform

                                                                          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 - InsertKoinIO/koin: Koin - a pragmatic lightweight dependency injection framework for Kotlin & Kotlin Multiplatform
                                                                          • なぜDependency Injectionは、それほど悪いものではないのか - Qiita

                                                                            関数型プログラミングは好きですか? 私は嫌いです。副作用がなく不変オブジェクトを使ったプログラミングは好きですが、関数型プログラミングは嫌いです。自分が難しいテクニックを使えるほど頭が良いということを示すためだけに関数型プログラミングを使うのは、いい加減やめるべきだと思います。関数型プログラミングだろう手続き型だろうと、大切なのはわかりやすく保守しやすいコードを書くことであるはずです。 難しいテクニックを知っている人が偉い、より難解なコードを書く人が偉いという技術至上主義が、「for文禁止」のような傲慢さを生み出している原因ではないでしょうか。かつてデザインパターンがたどった道が、関数型プログラミングに続いているように思います。 なぜ依存性注入は、悪いものなのか (この節のコードはこの動画を参考にしたものです) そうした人たちは次なる標的として、DIコンテナーをターゲットに定めました。 関

                                                                              なぜDependency Injectionは、それほど悪いものではないのか - Qiita
                                                                            • Dependency Injection in MVVM Architecture with ReactiveCocoa Part 1: 導入 - Qiita

                                                                              Dependency Injection in MVVM Architecture with ReactiveCocoa Part 1: 導入ReactiveCocoaMVVMDependencyInjectionSwiftSwinject 以下のブログ記事の翻訳です1。 Dependency Injection in MVVM Architecture with ReactiveCocoa Part 1: Introduction 前回のブログ記事では、シンプルなアーキテクチャのアプリを開発する中で、Swinjectを用いたdependency injectionについて説明しました。今回からのシリーズでは、ReactiveCocoaを用いてMVVM (Model-View-ViewModel)アーキテクチャのアプリを開発し、その中でdependency injectionを行います。

                                                                                Dependency Injection in MVVM Architecture with ReactiveCocoa Part 1: 導入 - Qiita
                                                                              • MeCab: Yet Another Japanese Dependency Structure Analyzer

                                                                                出力フォーマット 概要 MeCab は, ChaSen と同様, 出力のフォーマットを比較的自由に再定義することができます. また, 設定ファイルにフォーマットを複数記述しておき, 実行時にそれらを 切り変えることが可能です. これは, MeCab 独自の機能です. 出力フォーマットの指定 以下の 3つ出力フォーマットを変更することができます. node: 1つの形態素を出力, デフォルトは空文字 unk: 1つの未知語形態素を出力, デフォルトは node と同一フォーマット bos: 形態素解析の結果に先だって出力 (header 的役割), デフォルトは空文字 eos: 形態素解析の結果の後に出力 (footer 的役割), デフォルトは "EOS\n" eon: N-best出力で, N-Bestの出力が終了したときに出力, デフォルトは空文字列 明示的に指定されない場合, それぞ

                                                                                • Java Dependency Analysis Tool - Java Dependency Analysis Tool - OpenJDK Wiki

                                                                                  jdeps is a new command-line tool added since JDK 8  for developers to use to understand the static dependencies of their applications and libraries.   jdeps is a static analysis tool on the given class files and dynamic class dependencies (Class.forName or loading of service providers etc) are not reported. It also provides an -jdkinternals option to find dependencies to any JDK internal APIs that