4 Matching Annotations
- Jun 2021
-
stackoverflow.com stackoverflow.com
-
Yeah, "virtual attribute" seems like dated terminology to me, so conceptually just a method.
-
I see a 'virtual attribute' as something we're forced to implement when using frameworks, ORMs and the like. Something that lets us inject our code into the path of whatever metaprogramming has been put in place for us. In a simple PORO like this, I don't see how it has meaning; it's just a method. :)
Hmm, good point. Maybe so. Though I think I'm fine with calling it a virtual property here too. :shrug:
-
has_sauce is a "virtual attribute", a characteristic of the model that's dependent on the underlying toppings attribute.
-
- Apr 2020
-
it.vuejs.org it.vuejs.org
-
Computed vs Watched Property
Really useful example of explaining what not to do and how to simplify code.
Tags
Annotators
URL
-