You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function should be able to be displayed on one screen and only implement one certain logic. Too long function often means that the function is too complicated and can be split or be more primitive.
Exception: Some functions that implement complex algorithms may exceed 30 lines due to the aggregation and comprehensiveness. Linter warnings for such functions can be suppressed.
Even if a long function works very well right now, once someone else modifies it, new problems or bugs may appear due to the complex logic. It is recommended to split such functions into several separated functions that are shorter and easier to manage, so that others can read and modify the code properly.
The text was updated successfully, but these errors were encountered:
The function should be able to be displayed on one screen and only implement one certain logic. Too long function often means that the function is too complicated and can be split or be more primitive.
Exception: Some functions that implement complex algorithms may exceed 30 lines due to the aggregation and comprehensiveness. Linter warnings for such functions can be suppressed.
Even if a long function works very well right now, once someone else modifies it, new problems or bugs may appear due to the complex logic. It is recommended to split such functions into several separated functions that are shorter and easier to manage, so that others can read and modify the code properly.
The text was updated successfully, but these errors were encountered: