Louise Redknapp, 51, 'SPLITS from boyfriend Drew Michael, 42, after two years together' - a year after revealing marriage plans
'This crazy lady from the UK was like..."I wanna be killed"': Unseen bodycam reveals moments after US cops found British woman who flew to America to be murdered by a man she met in a chatroom
Another weight-loss tablet approved for use in UK - patients on pill shed two stone of body weight
K-pop influencer Mina Chan, 26, takes her own life during TikTok livestream after 'harassment' from band's fans
Heartbroken wife's tribute to husband with 'heart of gold' who died after crash
Concerns over plans for 94 new homes near one of Essex's most sought-after schools
Moment remorseless killer laughs as police interview him for homophobic murder of 'true gentleman' that was so sickening officers were stopped from looking at video evidence
DR MAX PEMBERTON: I was diagnosed with ADHD even though I know I don't have it. I swallowed the same drug thousands of children take every day... and this is the terrifying effect it had on me. We're getting everything so wrong
The UK's most incredible holiday homes revealed - including a wartime RAF bunker and a 19th-century lighthouse
There's a new Team GB sprint Queen! Amy Hunt dethrones Dina Asher-Smith and storms to 100m European gold - and there could be more to come
Anne Hathaway, 43, hits back at trolls who claim she is FAKING her pregnancy... after she was roasted over 'ridiculous' maternity outfit
Councils to get more powers in High Street 'crackdown' on new betting and vape shops
How does Sir Rod's grass stay so green? Stewart's mini golf course is an oasis during record-breaking drought
CodeSOD: Public Private Partnership
Eric O was trawling through an API for handling concurrency, and found this little mismatch between the comment and the definition:
/// <summary> /// private Status, because while this object needs to be able to set the status, consumers should only be able to check it, lest everything break. /// </summary> public StatusType Status { get { return _status; } set { if (value != _status) { RaisePropertyChanged("Status"); } } }It's very important we make this property private, lest clients abuse it, and unleash dragons, chaos, and other potential horrors. Given that this happens inside of a concurrency API, I can only imagine what could go wrong when you mess this up. So sure, the comment makes sense.
The definition on the other hand, doesn't agree.
In practice, it's probably fine to do it this way, and at least the comment will show up in the documentation. If a consumer of the API misbehaves, they'll at least see that the docs suggest this is private.
The joke, of course, is the idea that the users of the API are going to read the docs, or care that one of the public methods suggests that it should be private.
.comment { border: none; } [Advertisement] Picking up NuGet is easy. Getting good at it takes time. Download our guide to learn the best practice of NuGet for the Enterprise.Beach where bathers must only speak German sparks racism row
Lexus and Toyota hybrid cars are trapping owners and their families inside thanks to battery faults
Busy Essex road to be closed overnight for over a week
Will YOU be wearing Zara's little sister this summer? LAURA CRAIK writes as it launches a chain of bargain 'robot stores' across the UK
OVH Cloud warns of 87% price hikes to help it cover RAMpocalypse costs
Taxi Drivers Rarely Die of Alzheimer's
Read more of this story at Slashdot.