Click here to Skip to main content
15,915,164 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Property or a method. This seems wrong. Pin
Chris Maunder21-May-14 4:13
cofounderChris Maunder21-May-14 4:13 
GeneralRe: Property or a method. This seems wrong. Pin
Jörgen Andersson21-May-14 4:41
professionalJörgen Andersson21-May-14 4:41 
GeneralRe: Property or a method. This seems wrong. Pin
V.20-May-14 21:11
professionalV.20-May-14 21:11 
GeneralRe: Property or a method. This seems wrong. Pin
Gary Wheeler21-May-14 0:28
Gary Wheeler21-May-14 0:28 
GeneralRe: Property or a method. This seems wrong. Pin
Chris Maunder21-May-14 4:15
cofounderChris Maunder21-May-14 4:15 
GeneralRe: Property or a method. This seems wrong. Pin
BobJanova21-May-14 1:11
BobJanova21-May-14 1:11 
GeneralRe: Property or a method. This seems wrong. Pin
Chris Maunder21-May-14 4:17
cofounderChris Maunder21-May-14 4:17 
GeneralRe: Property or a method. This seems wrong. Pin
Jeremy Falcon21-May-14 1:11
professionalJeremy Falcon21-May-14 1:11 
Chris Maunder wrote:
Properties should be stable: that is, the value of a property shouldn't change “on its own". Rather, changes in properties are the results of calling property setters, or some other action changing the state of the object

If by this he means properties should be read only then I can see that. Can't say I'd always do it, but I can see the reasoning.

Chris Maunder wrote:
Property getters should always succeed: they should never throw an exception. Return some reasonable default value if the property cannot be logically computed right now because the object is in a bad state.

Gotta agree with this. Exceptions should not be abused and throwing on in a property getter seems way too much like overkill.
Jeremy Falcon

GeneralRe: Property or a method. This seems wrong. Pin
Marc Clifton21-May-14 2:05
mvaMarc Clifton21-May-14 2:05 
GeneralRe: Property or a method. This seems wrong. Pin
Chris Maunder21-May-14 4:18
cofounderChris Maunder21-May-14 4:18 
GeneralRe: Property or a method. This seems wrong. Pin
#realJSOP21-May-14 2:22
professional#realJSOP21-May-14 2:22 
GeneralRe: Property or a method. This seems wrong. Pin
Chris Maunder21-May-14 4:20
cofounderChris Maunder21-May-14 4:20 
GeneralRe: Property or a method. This seems wrong. Pin
Gary Wheeler21-May-14 4:21
Gary Wheeler21-May-14 4:21 
GeneralRe: Property or a method. This seems wrong. Pin
Ravi Bhavnani21-May-14 2:37
professionalRavi Bhavnani21-May-14 2:37 
GeneralThis question reminds me of the anecdote Pin
Ennis Ray Lynch, Jr.21-May-14 3:49
Ennis Ray Lynch, Jr.21-May-14 3:49 
GeneralNagy & DD Pin
thatraja20-May-14 17:36
professionalthatraja20-May-14 17:36 
GeneralRe: Nagy & DD Pin
Dalek Dave20-May-14 21:46
professionalDalek Dave20-May-14 21:46 
GeneralD-Wave Quantum Computer: does true/false super-fast, but, can it do "maybe" ? Pin
BillWoodruff20-May-14 14:27
professionalBillWoodruff20-May-14 14:27 
GeneralRe: D-Wave Quantum Computer: does true/false super-fast, but, can it do "maybe" ? Pin
Marc Clifton20-May-14 15:17
mvaMarc Clifton20-May-14 15:17 
GeneralRe: D-Wave Quantum Computer: does true/false super-fast, but, can it do "maybe" ? Pin
BillWoodruff20-May-14 15:43
professionalBillWoodruff20-May-14 15:43 
GeneralRe: D-Wave Quantum Computer: does true/false super-fast, but, can it do "maybe" ? Pin
Roger Wright20-May-14 18:33
professionalRoger Wright20-May-14 18:33 
GeneralRe: D-Wave Quantum Computer: does true/false super-fast, but, can it do "maybe" ? Pin
Gary Wheeler21-May-14 4:25
Gary Wheeler21-May-14 4:25 
GeneralRe: D-Wave Quantum Computer: does true/false super-fast, but, can it do "maybe" ? Pin
Roger Wright22-May-14 17:28
professionalRoger Wright22-May-14 17:28 
GeneralRe: D-Wave Quantum Computer: does true/false super-fast, but, can it do "maybe" ? Pin
Gary Wheeler23-May-14 0:24
Gary Wheeler23-May-14 0:24 
GeneralRe: D-Wave Quantum Computer: does true/false super-fast, but, can it do "maybe" ? Pin
OriginalGriff20-May-14 20:03
mveOriginalGriff20-May-14 20:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.