Replies: 6 comments 20 replies
-
There is a useful pattern to follow when naming functions:
Take a look at how this pattern may be applied in the table below.
Why action goes the latest?When you write code in IDE, you have an "code intelligency" or autosuggestion. If you type action first "get", you'll see all function in project that has "get" action, and you need to type High context and Low context to reduce amount of methods. https://gist.github.com/sergeysova/9f6dc24e21efe5f5bb4f9878216c2ce9 |
Beta Was this translation helpful? Give feedback.
-
Почему данный вопрос вообще рассматривается в рамках feature-sliced? |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Очень похоже на то, что описано здесь (да и в большинстве источников) |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Что вам ближе?
|
Beta Was this translation helpful? Give feedback.
-
Методология скорее всего будет рекомендовать нейминг
{entity}-{action}
(н-р:user-create
,post-view
, ...) в большинстве случаевНо @sergeysova выступает с инициативой, чтобы дополнительно рекомендовать такой подход наименования и не только при структуре
Beta Was this translation helpful? Give feedback.
All reactions