Sign in
|
English
|
Terms of Use
Dictionary
Forum
Contacts
Terms containing
data attribute names
|
all forms
|
exact matches only
|
in specified order only
Subject
English
Russian
progr.
to
avoid name conflicts, which may cause hard-to-find bugs in large programs, it is wise to use some kind of convention that minimizes the chance of conflicts. Possible conventions include capitalizing method names, prefixing
data attribute names
with a small unique string, or using verbs for methods and nouns for data attributes
чтобы избежать конфликтов имен, которые в больших программах могут привести к тяжело обнаружимым ошибкам, полезно использовать своего рода соглашение, позволяющее минимизировать вероятность конфликтов. Например: называть методы именами, начинающимися с заглавной буквы, добавлять небольшую приставку в начало имен атрибутов данных
возможно просто символ подчёркивания
или использовать глаголы для методов и существительные для атрибутов данных
(см.
An Introduction to Python – The Python Tutorial
version 3.2
by Guido van Rossum and Fred L. Drake
2011
ssn
)
progr.
data attribute names
имена атрибутов данных
(
ssn
)
progr.
Data attributes override method attributes with the same name
Атрибуты данных записываются поверх атрибутов методов с тем же именем
(см.
An Introduction to Python – The Python Tutorial
version 3.2
by Guido van Rossum and Fred L. Drake
2011
ssn
)
progr.
prefixing
data attribute names
with a small unique string
добавление префикса в начало имён атрибутов данных
(
ssn
)
progr.
prefixing
data attribute names
with a small unique string
добавление небольшой приставки в начало имён атрибутов данных
(
ssn
)
Get short URL