当前位置:网站首页>Record an error report, solve the experience, rely on repetition
Record an error report, solve the experience, rely on repetition
2022-07-02 14:56:00 【d_ o_ n_ g2】
There are several cases of this type of error reporting , When I met this time module The same class inside depends on multiple times .
1、 For example, the duplicate package is A.B rely on A,C Also depends on A,D rely on B and C and A. So here's the practical solution D The problem of repeated dependence . therefore B Medium A and C Medium A Need to use implementation To rely on . such D There will be no dependency repetition .D Dependency in A It can be used api perhaps implementation All right . In general, this is the case , This A It's kind of like public api 了 . For public api I personally think it can be similar to that kind of Google Library , Use both directly implementation That's it . Or set up a public module, The libraries inside are all based on api Form dependent provision .
Here is a confusing place .
B api A , C implementation D.
If D implementation B:D have access to A,C Out of commission B.
D api B: D have access to A,C Be able to use B.
边栏推荐
- STM32 library function for GPIO initialization
- Delete element (with transition animation)
- 一张图彻底掌握prototype、__proto__、constructor之前的关系(JS原型、原型链)
- btrace-(字节码)动态跟踪工具
- 报错:npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
- Fabric.js 缩放画布
- Contrôleur pour threejs cube Space Basic Controller + Inertial Control + Flight Control
- 蜻蜓低代码安全工具平台开发之路
- 1. Editing weapon VIM
- Some Chinese character codes in the user privacy agreement are not standardized, which leads to the display of garbled codes on the web page. It needs to be found and handled uniformly
猜你喜欢

Implement a server with multi process concurrency

MFC 定时器使用

forEach的错误用法,你都学废了吗
![[untitled] leetcode 2321 Maximum score of concatenated array](/img/a3/54d0e83f02ef0d0d8d269351c35b39.png)
[untitled] leetcode 2321 Maximum score of concatenated array

Fabric. JS upper dash, middle dash (strikethrough), underline

Fabric. JS free draw circle

为什么只会编程的程序员无法成为优秀的开发者?

MQ tutorial | exchange (switch)

LeetCode 209. 长度最小的子数组

Obsidian installs third-party plug-ins - unable to load plug-ins
随机推荐
A white hole formed by antineutrons produced by particle accelerators
3、函数指针和指针函数
mathML转latex
复用和分用
btrace-(字节码)动态跟踪工具
C code audit practice + pre knowledge
Fabric. JS dynamically set font size
Have you learned the wrong usage of foreach
[Space & single cellomics] phase 1: single cell binding space transcriptome research PDAC tumor microenvironment
【apipost】使用教程
Add vector formula in rich text editor (MathType for TinyMCE, visual addition)
Fabric. Usage of JS eraser (including recovery function)
Fatal: unsafe repository is owned by someone else
传感器数据怎么写入电脑数据库
STM32 standard firmware library function name memory (II)
Bit by bit of OpenCV calling USB camera
Why can't browsers read JSX?
记一次报错解决经历依赖重复
taobao.logistics.dummy.send( 无需物流发货处理 )接口,淘宝店铺发货API接口,淘宝订单发货接口,淘宝r2接口,淘宝oAu2.0接口
LeetCode 2320. Count the number of ways to place the house