Click here to Skip to main content
15,914,013 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: Is this HttpListener BUG? Pin
OriginalGriff20-May-14 19:59
mveOriginalGriff20-May-14 19:59 
GeneralRe: Is this HttpListener BUG? Pin
Suvabrata Roy20-May-14 21:25
professionalSuvabrata Roy20-May-14 21:25 
GeneralRe: Is this HttpListener BUG? Pin
Eddy Vluggen21-May-14 8:06
professionalEddy Vluggen21-May-14 8:06 
GeneralProperty or a method. This seems wrong. Pin
Chris Maunder20-May-14 17:46
cofounderChris Maunder20-May-14 17:46 
AnswerRe: Property or a method. This seems wrong. Pin
Super Lloyd20-May-14 18:35
Super Lloyd20-May-14 18:35 
GeneralRe: Property or a method. This seems wrong. Pin
PIEBALDconsult20-May-14 19:01
mvePIEBALDconsult20-May-14 19:01 
GeneralRe: Property or a method. This seems wrong. Pin
Jim Meadors20-May-14 19:20
Jim Meadors20-May-14 19:20 
GeneralRe: Property or a method. This seems wrong. Pin
_Maxxx_20-May-14 19:40
professional_Maxxx_20-May-14 19:40 
First and most importantly, why do some of your capital Ts come out as capital Is?


Chris Maunder wrote:
the value of a property shouldn't change “on its own"

What the heck does that mean, anyway? Does it mean other than by calling its setter? or by some dark and mysterious magical incantation?

I think what he is trying to say is that, if I instantiate a Car object, look at Car.Property,then wait a while without doing anything to the Car object, I should expect the value of Car.Property to remain unchanged.

In the example of Car.Temperature this plainly wouldn't be the case.

In a way, perhaps it would be better to use Car.GetTemperature(); as an indication that something may have changed (presumably on a separate thread, the temp is increasing).

It sort of makes sense to me, as a convenience so I can see which 'properties' of an object may be affected outside of my use of that object, but I'm buggered if I can think of a real-world case I've ever come across where this would have helped. *


With the exception throwing side, again I think he may be getting at putting volatile stuff in a method rather than a property - so the dev is 'warned' that this retrieval may cause an issue whereas, were it a property they'd be guaranteed some value.

Again, while I can potentially see value, I can't think of a case it would have been useful to me *



* In cases where really, real;ly badly written code has been before me, such rules may have helped, but when badly written code is there, chances are such rules would be broken too.


Chris Maunder wrote:
Can someone smarter than me


Oops - sorry - didn't read that part. mea culpa
GeneralRe: Property or a method. This seems wrong. Pin
Chris Maunder21-May-14 4:10
cofounderChris Maunder21-May-14 4:10 
GeneralRe: Property or a method. This seems wrong. Pin
Rage21-May-14 5:58
professionalRage21-May-14 5:58 
GeneralRe: Property or a method. This seems wrong. Pin
David O'Neil20-May-14 19:56
professionalDavid O'Neil20-May-14 19:56 
GeneralRe: Property or a method. This seems wrong. Pin
CPallini20-May-14 20:09
mveCPallini20-May-14 20:09 
GeneralRe: Property or a method. This seems wrong. Pin
BillWoodruff20-May-14 20:09
professionalBillWoodruff20-May-14 20:09 
GeneralRe: Property or a method. This seems wrong. Pin
Jeremy Falcon21-May-14 4:03
professionalJeremy Falcon21-May-14 4:03 
GeneralRe: Property or a method. This seems wrong. Pin
Chris Maunder21-May-14 4:11
cofounderChris Maunder21-May-14 4:11 
GeneralRe: Property or a method. This seems wrong. Pin
User 5924120-May-14 20:13
User 5924120-May-14 20:13 
GeneralRe: Property or a method. This seems wrong. Pin
Jörgen Andersson20-May-14 20:22
professionalJörgen Andersson20-May-14 20:22 
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 

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.