yesterday, I was thinking about this style of code and I found it's a good approach in functions with a lot of params. but you shouldn't use a lot of this to keep your code clean.
Hey Mahmoud,
thanks for your comment.
What is your understanding of keep your code clean in this case?
keep your code clean
I mean if you used an object with properties instead of multiple params in this case you can send extra properties without keep tracking of it.
I don't know if this a big deal or not but I think it's not good to use this approach in all your app
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
yesterday, I was thinking about this style of code and I found it's a good approach in functions with a lot of params.
but you shouldn't use a lot of this to keep your code clean.
Hey Mahmoud,
thanks for your comment.
What is your understanding of
keep your code cleanin this case?I mean if you used an object with properties instead of multiple params in this case you can send extra properties without keep tracking of it.
I don't know if this a big deal or not but I think it's not good to use this approach in all your app