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
You are defining pure configuration using functions why are you using classes and new keywords which is a sign of side effect. It seems excessive and totally unnecessary.
This is not the law, but to me using the new keyword is a sign of impure parts of the code that is going to perform some side effects. This is a new Car() and I'm going to do with it whatever I want, when it is crushed or can no longer drive well I will make another new Car(). You are not going to do anything with those EC2 configs, ResourcesTags, etc , not going to dispose of them or something, they are just pure data objects and fabrics to create another pure thing, so no need to create them with new in my view. The code will just become cleaner.
You are defining pure configuration using functions why are you using classes and
new
keywords which is a sign of side effect. It seems excessive and totally unnecessary.Current config form:
Why no let it be just:
The text was updated successfully, but these errors were encountered: