refactor: add additional abbreviations to general agreement#26
refactor: add additional abbreviations to general agreement#26
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Вот насчёт новых сокращений, я уже как-то написал в комментах об исью, также продублирую здесь
| - cfg/config — configuration. | ||
| - char — character. | ||
| - cmd — command. | ||
| - cnt — count. |
There was a problem hiding this comment.
Не нравится и ни разу не видел в практике
| - cmd — command. | ||
| - cnt — count. | ||
| - col — column. | ||
| - comp — component. |
There was a problem hiding this comment.
Не нравится и ни разу не видел в практике
There was a problem hiding this comment.
пример Comp можно найти в том же RadixUI. Col тоже часто используют, cmd база (хотя я тоже пердпочитаю Column)
There was a problem hiding this comment.
Извини за недопонимание, речь была только про Comp
| - temp — temporary. | ||
| - up — update. | ||
| - url — uniform resource locator. | ||
| - usr — user. |
There was a problem hiding this comment.
Просто бесполезно, пожалуйста, уберите его отсюда (usr)
There was a problem hiding this comment.
Спорно. URL является таким же сокращение, как и HTTP. Хотя здесь я решил уже не выносить мозг
There was a problem hiding this comment.
Извиняюсь за недопонимание, я неправильно отметил строки, имел в виду только usr
There was a problem hiding this comment.
Вот с usr закину правки 🤗
| - temp — temporary. | ||
| - up — update. | ||
| - url — uniform resource locator. | ||
| - usr — user. | ||
| - val — value. |
There was a problem hiding this comment.
Я не хочу, чтобы оно тут было, но не буду сильно против, если оставят, вообще кажется, что это сокращение просто не имеет большого смысла (val)
There was a problem hiding this comment.
На самом деле ты прав, потому что внутри команды очень часто используется либо value, либо v (в методах сортировки/перетасовки и тд)
| - var — variable. | ||
| - ver — version. | ||
| - vol — volume. |
There was a problem hiding this comment.
Я не хочу, чтобы оно тут было, но не буду сильно против, если оставят, вообще кажется, что это сокращение просто не имеет большого смысла (vol)
There was a problem hiding this comment.
Здесь ещё такой момент, что от языка зависит, потому что в том же JS слово var зарезер... зарезвививано... зарези.... зарезити.... закак.... зарезирвивано, крч
There was a problem hiding this comment.
Извиняюсь за недопонимание, я имел в виду только vol
- Removed duplicate and ambiguous abbreviations from the list - Standardized format to have only one variant per abbreviation - Reduced list from 55 to 50 items for better clarity - Improved consistency in naming conventions
Specify clear conditions for using abbreviations and single-letter variables: - Added explicit 3 line code limit - Formulated precise allowed / disallowed conditions - Added practical code examples - Fixed ambiguous wording in naming rule 1.6 Updated explanations section exp-1_6 with proper boundaries for short notations in loops and array methods.
Resolve #17