Click here to Skip to main content
15,887,746 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: .NET's Sometimes Nonsensical Logic Pin
theoldfool29-Feb-24 23:36
professionaltheoldfool29-Feb-24 23:36 
GeneralRe: .NET's Sometimes Nonsensical Logic Pin
Peter Moore - Chicago1-Mar-24 2:39
Peter Moore - Chicago1-Mar-24 2:39 
JokeRe: .NET's Sometimes Nonsensical Logic Pin
Richard Deeming3-Mar-24 21:22
mveRichard Deeming3-Mar-24 21:22 
GeneralRe: .NET's Sometimes Nonsensical Logic Pin
Peter Moore - Chicago29-Feb-24 8:03
Peter Moore - Chicago29-Feb-24 8:03 
GeneralRe: .NET's Sometimes Nonsensical Logic Pin
haughtonomous1-Mar-24 1:10
haughtonomous1-Mar-24 1:10 
GeneralRe: .NET's Sometimes Nonsensical Logic - Platoon version Pin
David On Life1-Mar-24 9:52
David On Life1-Mar-24 9:52 
GeneralRe: .NET's Sometimes Nonsensical Logic - Platoon version Pin
haughtonomous27-Mar-24 21:58
haughtonomous27-Mar-24 21:58 
GeneralRe: .NET's Sometimes Nonsensical Logic - Platoon version Pin
David On Life28-Mar-24 7:56
David On Life28-Mar-24 7:56 
Exactly! The officer needs to know how many men are available (a platoon of one wouldn't perform well either). He could have asked, "How many are available?" But he didn't (in this example). Presumably he can see there's no one there, so he effectively asked, "Is this everyone in the platoon?" The correct answer at that point is "Yes", at which point he knows what he has to work with (even if it's zero).

To answer No at this point would imply that there are others who are not present, which isn't the case.

If we were to write that in code, it would be Platoon.AreAllPresent(), and the result would be True as long as no members of the Platoon are absent (even if there are no members of the Platoon).

GeneralRe: .NET's Sometimes Nonsensical Logic Pin
Peter Moore - Chicago29-Feb-24 8:10
Peter Moore - Chicago29-Feb-24 8:10 
GeneralRe: .NET's Sometimes Nonsensical Logic Pin
Thomas Daniels29-Feb-24 10:36
mentorThomas Daniels29-Feb-24 10:36 
GeneralRe: .NET's Sometimes Nonsensical Logic Pin
jmaida29-Feb-24 12:06
jmaida29-Feb-24 12:06 
GeneralRe: .NET's Sometimes Nonsensical Logic Pin
jschell29-Feb-24 12:42
jschell29-Feb-24 12:42 
GeneralRe: .NET's Sometimes Nonsensical Logic Pin
jmaida29-Feb-24 14:35
jmaida29-Feb-24 14:35 
GeneralRe: .NET's Sometimes Nonsensical Logic Pin
jschell1-Mar-24 11:51
jschell1-Mar-24 11:51 
GeneralRe: .NET's Sometimes Nonsensical Logic Pin
jmaida1-Mar-24 15:04
jmaida1-Mar-24 15:04 
GeneralRe: .NET's Sometimes Nonsensical Logic Pin
Jon McKee29-Feb-24 12:09
professionalJon McKee29-Feb-24 12:09 
GeneralRe: .NET's Sometimes Nonsensical Logic Pin
Ravi Bhavnani29-Feb-24 11:51
professionalRavi Bhavnani29-Feb-24 11:51 
GeneralRe: .NET's Sometimes Nonsensical Logic Pin
David On Life1-Mar-24 10:05
David On Life1-Mar-24 10:05 
GeneralRe: .NET's Sometimes Nonsensical Logic Pin
HobbyProggy29-Feb-24 20:13
professionalHobbyProggy29-Feb-24 20:13 
GeneralRe: .NET's Sometimes Nonsensical Logic Pin
Martijn Smitshoek29-Feb-24 22:23
Martijn Smitshoek29-Feb-24 22:23 
GeneralRe: .NET's Sometimes Nonsensical Logic Pin
haughtonomous1-Mar-24 1:21
haughtonomous1-Mar-24 1:21 
GeneralRe: .NET's Sometimes Nonsensical Logic Pin
Peter Moore - Chicago1-Mar-24 3:00
Peter Moore - Chicago1-Mar-24 3:00 
GeneralRe: .NET's Sometimes Nonsensical Logic Pin
lmoelleb1-Mar-24 2:17
lmoelleb1-Mar-24 2:17 
GeneralRe: .NET's Sometimes Nonsensical Logic Pin
Peter Moore - Chicago1-Mar-24 4:01
Peter Moore - Chicago1-Mar-24 4:01 
GeneralRe: .NET's Sometimes Nonsensical Logic Pin
MSBassSinger1-Mar-24 3:58
professionalMSBassSinger1-Mar-24 3:58 

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.