• 请不要在回答技术问题时复制粘贴 AI 生成的内容
mengxh1990
V2EX  ›  程序员

怎么用英文描述两个模型之间的依赖和被依赖关系?

  •  
  •   mengxh1990 · Mar 6, 2018 · 7029 views
    This topic created in 3175 days ago, the information mentioned may be changed or developed.
    在代码设计时,要提供一个入口给用户来配置当前模型的关联类型是依赖还是被依赖(用于描述该模型和其他模型的关系),我想到的是 depended 和 depend 这两个单词,但是感觉还是不够精准和直观,也没找到比较通用的用法,大佬们有没有什么好的建议?
    13 replies  •  2018-03-06 23:00:52 +08:00
    carlclone
    carlclone
    Mar 6, 2018
    1
    UML 图....
    Kilerd
    Kilerd
    Mar 6, 2018
    2
    a is based on b
    gihnius
    gihnius
    Mar 6, 2018 via iPhone❤️1
    3
    A has many b

    B belongs to a

    Ruby on Rails 那一套
    popbones
    popbones
    Mar 6, 2018 via iPhone
    4
    A 依赖 B:B is a dependence of A; A is a dependant of B
    mengxh1990
    mengxh1990
    OP
    Mar 6, 2018
    5
    感谢楼上的几位回复
    感觉太长了,就是有一个下拉框让用户选择依赖的类型,像 a is based on b, a has many b 就太长了,最好的就是像配置一个数据类型一样
    jeremaihloo
    jeremaihloo
    Mar 6, 2018
    6
    docker-compose: 两个 service 之间 `depends_on`
    shimomiaizo
    shimomiaizo
    Mar 6, 2018
    7
    depends_on
    defines
    mengxh1990
    mengxh1990
    OP
    Mar 6, 2018
    8
    @jeremaihloo thanks. 我借鉴一下
    mengxh1990
    mengxh1990
    OP
    Mar 6, 2018
    9
    @shimomiaizo 这个 defines 是是定义的意思吗?不过被依赖也可以理解为广义的“定义 xx ”
    dartabe
    dartabe
    Mar 6, 2018
    10
    correlation
    decorrelation
    shimomiaizo
    shimomiaizo
    Mar 6, 2018
    11
    @mengxh1990 A 依赖 B,B 被 A 依赖 = B 定义 A,A 被 B 定义。
    winglight2016
    winglight2016
    Mar 6, 2018
    12
    聚合:aggregate
    组合:composite
    引用:navigate

    拥有:has
    被拥有:owned by

    1...N
    0...1
    M...N

    够用了吧?
    mengxh1990
    mengxh1990
    OP
    Mar 6, 2018 via Android
    13
    @winglight2016 够了够了,多谢
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2262 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 02:29 · PVG 10:29 · LAX 18:29 · JFK 21:29
    ♥ Do have faith in what you're doing.