ps1aniuge
V2EX  ›  编程

win, Linux ,脚本用中文名,脚本内中文变量名,函数名,参数名,大家怎么看?

  •  
  •   ps1aniuge · Nov 16, 2019 · 3727 views
    This topic created in 2432 days ago, the information mentioned may be changed or developed.
    win,linux,脚本中文名,脚本内中文变量名,函数名,参数名,大家怎么看?

    关于脚本名:
    一般我建议用 2---3 个首字母,后跟中文脚本名,脚本名中的分隔符,可以用 [中文逗号] [句号] 或 [下划线] 。

    关于变量名:
    其他语言的代码中的中文变量,大家都讨论过了。我开这贴希望大家谈谈,win,linux,shell,脚本中用中文变量名的看法。
    脚本都是短程序,脚本经常也不被认为是正宗的源码,脚本中的变量,也很少需要让外国人看懂。

    常用的脚本类别吧,py,perl,powershell,bat,bash。
    应该不含 ruby,很少看到和做网页无关的 ruby 脚本。
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3430 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 39ms · UTC 10:59 · PVG 18:59 · LAX 03:59 · JFK 06:59
    ♥ Do have faith in what you're doing.