V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
mengxh1990
V2EX  ›  程序员

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

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

    B belongs to a

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

    拥有:has
    被拥有:owned by

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

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