Softwareengineering: Should I expose a "computed" value as a property or a method?

Subscribers:
4,130
Published on ● Video Link: https://www.youtube.com/watch?v=EA-qlVwAf4k



Duration: 0:00
0 views
0


Should I expose a "computed" value as a property or a method?
I hope you found a solution that worked for you :)
The Content is licensed under (https://meta.stackexchange.com/help/licensing) CC BY-SA.
Attention! This video does always use the same license as the source!
Thanks to all those great people for their contributions!

(softwareengineering.stackexchange.com/users/80895/charles-wesley)Charles Wesley
(softwareengineering.stackexchange.com/users/6505/eric-lippert)Eric Lippert
(softwareengineering.stackexchange.com/users/1204/robert-harvey)Robert Harvey
A special thanks goes out to the (softwareengineering.stackexchange.com/questions/233210/should-i-expose-a-computed-value-as-a-property-or-a-method)Stackexchange community

I wish you all a wonderful day! Stay safe :)
If anything is off, please write me at peter D.O.T schneider A.T ois42.de

properties design-patterns methods class-design c#




Other Videos By Peter Schneider


5 days agoTex: Tabularray Align SetCell Vertically
5 days agoTex: How to draw two covalent bonds along with one dative bond between the same atoms in chemfig?
5 days agoMathematica: Make text white in ReverseColor format?
5 days agoHow to concatenate n rows of content, to current row, in a rolling window, in pandas?
5 days agoWarning messages with plotting density lines on top of histrogram in R
5 days agoEthereum: How can I get Sepolia ETH without holding 1 LINK on Ethereum Mainnet?
5 days agoTex: Label positions in tikz
5 days agoHow to disable scrolling temporarily?
5 days agoSelenium 4.25 opens Chrome 136 with existing profile to "New Tab" instead of navigating with driv...
5 days agoDrupal: Is there a GUI way to change field labels on the build-in contact form?
6 days agoSoftwareengineering: Should I expose a "computed" value as a property or a method?
2025-05-10Softwareengineering: Is there any one standard framework for developing Python GUI apps.?
2025-05-10Security: Could the Stack Overflow Dance Dance Authentication April Fool's joke actually work in ...
2025-05-10Apple: Display a Mic Volume control setting in the menu bar (on MacOS 15.4.1 / in 2025)
2025-05-10Softwareengineering: Pros and Cons of RESTful architecture closed
2025-05-10Tex: Why l3keys don't expand key-values?
2025-05-10localhost in a DNS zone
2025-05-10Security: How can end-users detect malicious attempts at SSL spoofing when the network already ha...
2025-05-10How to replace *all* occurrences of a string in Python (.replace misses some occurrences when the...
2025-05-10Blocking the Apple OS X App Store
2025-05-10Where does the C standard say that an array is an object?