gpt4 book ai didi

ruby-on-rails - 编写 Rails 编码标准的好例子?

转载 作者:行者123 更新时间:2023-12-03 12:49:12 25 4
gpt4 key购买 nike

我正在为 Rails 应用程序开发书面代码标准,并且正在寻找其他人开发的编码标准的一些好的示例。一些扩展了...中讨论的想法的东西

有人有好的引用分享吗?

http://www.scribd.com/doc/2889649/Rails-coding-standards-defined

例子:

  1. STYLE: Line up hash arrows for readability
  2. STYLE: put spaces around => hash arrows
  3. STYLE: put spaces after ',' in method params - but none between method names and '('


(请注意,我是 StackOverflow 的新手,不确定这是否算作“问题”……如果不是,请告知……)

最佳答案

这是我比较喜欢的风格指南,它专注于 Ruby,但绝对属于 Ruby 主义者的“Rails 一代”:

Elements of Ruby Style

属于探路者发展的学分:

pathfinder development logo
(来源:pathf.com)

更新。两年后,我找到了更好的指南,由 the copycopter project 带给你

关于ruby-on-rails - 编写 Rails 编码标准的好例子?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/967537/

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