gpt4 book ai didi

bundler - bundle 与 bundler/bundle 与 bundle 安装

转载 作者:行者123 更新时间:2023-12-03 09:10:00 27 4
gpt4 key购买 nike

  • bundle有什么区别& bundler命令?
  • bundle有什么区别& bundle install ?
  • 如果没有区别,为什么有多个命令做同样的事情?
  • 最佳答案

  • 可执行文件 bundle & bundler have the same functionality因此可以互换使用。您可以在 bundler/exe 中看到bundler 所在的目录可执行文件只加载 bundle可执行。在我看来,bundle命令比 bundler 更常用命令。
  • 命令 bundle & bundle install也有同样的功能。 bundle用途 Thor , 和 bundle 's default task is install .另外,bundle ibundle install 做同样的事情因为 bundle 's task i is mapped (aliased) to install .
  • 这是一个很好的问题。 :-) Ruby 倾向于遵循 Perl programming motto: "There's more than one way to do it."我更喜欢 Zen of Python原则:“应该有一种——最好只有一种——明显的方法来做到这一点。”我认为后一个原则迎合了 principle of least astonishment并倾向于帮助keep things simple .然而,总的来说,我仍然倾向于用 Ruby 编程(尤其是在构建基于 HTTP 的 RESTful API 时,我使用 Rack)。我认为 Ruby 简单、优雅且可读。如果 Ruby 在这个问题上采取 Python 的立场,也许 Ruby 会更好。
  • 关于bundler - bundle 与 bundler/bundle 与 bundle 安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43299366/

    27 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com