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
Now, this is a lot of boilerplate for something that could be as simple as:
classTodo{// Open to suggestions for what we would call this :)
@autoComputedname='';}
I find that this pattern is useful when working with domain objects (in strict mode), since I can tweak the properties anywhere without needing to introduce an action everytime I wish to do so.
@mweststrate What are your thoughts on adding something like this? Or have I invented a solution for a problem that I created myself (like perhaps using strict mode where it isn't actually useful/needed)? 😄
The text was updated successfully, but these errors were encountered:
A pattern that I find myself using quite often is something like this:
Now, this is a lot of boilerplate for something that could be as simple as:
I find that this pattern is useful when working with domain objects (in strict mode), since I can tweak the properties anywhere without needing to introduce an
action
everytime I wish to do so.@mweststrate What are your thoughts on adding something like this? Or have I invented a solution for a problem that I created myself (like perhaps using strict mode where it isn't actually useful/needed)? 😄
The text was updated successfully, but these errors were encountered: