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
Sometimes we will face some methods that do just the same as other we have but with some difference on it, for those i'm thinking if we should place them on the same level or create sub ones.
Here is an example: we already have a method on Array type object called filter, which allows you to place a function to eval if a value should be filtered or not, inspite that we have also a method called randomFilter which does almost the same (filters array), but with a different propose.
My question here is if we should, on this cases, continue to apply one level for these methods (ƒ.Array.filter, ƒ.Array.randomFilter) or place similar methods inside of an existing one (ƒ.Array.filter, ƒ.Array.filter.random).
Sometimes we will face some methods that do just the same as other we have but with some difference on it, for those i'm thinking if we should place them on the same level or create sub ones.
Here is an example: we already have a method on
Array
type object calledfilter
, which allows you to place a function to eval if a value should be filtered or not, inspite that we have also a method calledrandomFilter
which does almost the same (filters array), but with a different propose.My question here is if we should, on this cases, continue to apply one level for these methods (
ƒ.Array.filter
,ƒ.Array.randomFilter
) or place similar methods inside of an existing one (ƒ.Array.filter
,ƒ.Array.filter.random
).ping @gabrielpconceicao @brunocasanova @ajbloureiro
The text was updated successfully, but these errors were encountered: