ServiceNow代码规范

命名

命名的方法通常有以下几类:
a).命名法说明
1).camel命名法,形如thisIsAnApple
2).pascal命名法,形如ThisIsAnApple
3).下划线命名法,形如this_is_an_apple ·
4).中划线命名法,形如this-is-an-apple
根据不同类型的内容,必须严格采用如下的命名法:
b).变量名:必须使用camel命名法
c).参数名:必须使用camel命名法
d).函数名:必须使用camel命名法
e).方法/属性:必须使用camel命名法
f).私有(保护)成员:必须以下划线_开头
g).常量名:必须使用全部大写的下划线命名法,如IS_DEBUG_ENABLED
h).类名:必须使用pascal命名法
i).枚举名:必须使用pascal命名法
j).枚举的属性:必须使用全部大写的下划线命名法
k).命名空间:必须使用camel命名法
l).语义:命名同时还需要关注语义,如:
变量名应当使用名词;
boolean类型的应当使用is、has等起头,表示其类型;·
函数名应当用动宾短语;
类名应当用名词。

转载于:https://blog.51cto.com/13716461/2125978

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Key Features Learn to leverage ServiceNow’s capabilities for improved IT automation by following step-by-step, practical instructions Build core administration, development, and maintenance skills with IT service management in ServiceNow Improve your workflow efficiency by designing and creating responsive and automated workflows, business logic, and front-end automation Book Description This book is an updated version of Learning ServiceNow, that will cover the new and updated features of the ServiceNow platform. It will show you how to put important ServiceNow features to work in the real world, while introducing key concepts via examples of managing and automating IT services. It’ll help you build a solid foundation of knowledge, and will demonstrate how to effectively implement and configure modules within ServiceNow. We’ll show you how to configure and administer your instance, and then move on to building strong user interfaces and creating powerful workflows. We also cover other key elements of ServiceNow, such as notifications, security, reporting, and custom development. You will learn how to improve and automate your business’ workflow and processes. By the end of this book, you will be able to successfully configure and manage ServiceNow like a pro. What you will learn Read and write clear, effective code for the ServiceNow platform Identify and avoid common pitfalls and missteps that could seriously impact future progress and upgradeability Use debugging tools to troubleshoot when things go wrong Discover tips and tricks from top ServiceNow developers, architects, and administrators. Find out what the pros wish they knew when they were starting out Who This Book Is For This book is for IT professionals and administrators who are planning to or are already trying to implement ServiceNow in their organization for Enterprise IT service management tasks. Some familiarity with web technologies (JavaScript) would be helpful. Prior ServiceNow experience is n
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值