...
Type and method names are usually not abbreviated (except for the well-accepted abbreviations such as EOF, Impl, Fifo, etc.).
Abbreviation applies to local variables, method parameters, class fields and in some cases public static fileds (constants) of the class.
Variable name should be abbreviated using table below containing mapping between longer name and its short form.
RULE 1
The variable name should be as short as possible yet to be descriptive enough in a given context.
...
There is a simple custom plugin available that performs on-the-fly check of variable names and highlights incorrectly named variables. Will be added soon.
Plugin can be downloaded from wiki: ignite-abbrev-plugin-3.0.1.jar
Source code of plugin can be found at GitHub ignite-abbrev-plugin
To install plugin to idea you can do the following steps:
1. Go to 'Settings', and to 'Plugins' section.
2. Select 'Install Plugin From Disk' and select jar from local file system.
'Apache Ignite abbreviation plugin' should appear. After Idea restart abbreviations will be highlited by editor.
Anchor | ||||
---|---|---|---|---|
|
...
In some rare cases one-letter names can be augmented by number like in common nested catch clause example: e, e1, e2.
Widely used names in the project including specific domain area terms are summarised in the table below. It is required to use abbreviated form for code consistency.
Name | Abbreviation | ||
---|---|---|---|
address | addr | ||
administrationaffinity | adminaff | ||
argument | arg | ||
array | arr | ||
attachment | attach | ||
attribute(s) | attr(s) | attributes | attrs |
buffer | buf | ||
certificate | cert | ||
callable | call, c | ||
char | c | ||
channel | ch; DO NOT USE chnl | ||
class | clsclosure | c, clos, f (from function) | |
collection | col, c | ||
command | cmd | ||
communication | comm | ||
comparator | comp | ||
condition | cond | ||
config | cfg | ||
context | ctx | control | ctrl |
coordinator | crd | ||
copy | cp | ||
counter | cntr | ||
count | cnt | ||
current | curr, cur | ||
database | db | ||
declar{e|ation} | decl | ||
default | dflt | ||
delete | del | ||
delimiter | delim | ||
description | desc | ||
descriptor | descr | ||
destination | dest | ||
directory | dir | ||
event | evt | ||
exception | e, e2, ex | ||
execute | exec | ||
expected | exp | ||
externalizable | ext | ||
frequency | freq | ||
future | fut | ||
group | grp | ||
handler | hnd | ||
header | hdr | ||
implementation | impl | ||
index | idx | ||
initial(ize) | init | ||
int | i | ||
interface | itf | ||
iterator | iter | ||
listener | lsnr | ||
lablelabel | lbl | license | lic |
local | loclocale | loc | |
logger | log | ||
loader | ldr | ||
manager | mgr | ||
message | msg | ||
method | mtd | ||
microkernel | mk | ||
milliseconds | ms | ||
multicast | mcast | ||
mutex | mux | ||
network | net | ||
number | n, num | ||
object | obj | ||
package | pkg | ||
parameter | param | ||
permission(s) | perm(s) | ||
password | pwdpattern | ||
ptrn | policy | plc | |
predicate | pred | ||
priority | pri | ||
projection(s) | prj(s) | ||
property(ies) | prop(s)protocol | ||
proto | process, processor | proc | |
query | qry | ||
receive | rcvrecipient | ||
rcpt | reference | ref | |
regular expression | regex | ||
remove,removed | rmv | ||
rename | ren | ||
repository | repo | ||
request | req | ||
resource | rsrc | ||
response | res | ||
return value | retvalretVal | ||
send, sender | snd | ||
serializable | ser | ||
service | srvc | ||
session | ses | ||
sequence | seq | ||
sibling | sib | ||
size | sz|||
socket | sock | ||
source | srcspecification | spec | |
strategy | stgy | ||
string | s, str | ||
subject | subj | ||
system | sys | ||
table | tbl | ||
taxonomy | tax | ||
timestamp | ts | ||
topology | top | ||
token | tok | ||
topology version | topVer | unicast | ucast |
value | val | ||
version | ver | windows | win |