Click here to Skip to main content
15,892,643 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: I am beating this thing! Pin
honey the codewitch1-Dec-19 21:40
mvahoney the codewitch1-Dec-19 21:40 
GeneralRe: I am beating this thing! Pin
OriginalGriff1-Dec-19 21:44
mveOriginalGriff1-Dec-19 21:44 
GeneralIt is a hint? Pin
Kornfeld Eliyahu Peter1-Dec-19 18:35
professionalKornfeld Eliyahu Peter1-Dec-19 18:35 
GeneralRe: It is a hint? Pin
Amarnath S1-Dec-19 18:44
professionalAmarnath S1-Dec-19 18:44 
GeneralRe: It is a hint? Pin
the goat in your machine1-Dec-19 19:22
the goat in your machine1-Dec-19 19:22 
GeneralRe: It is a hint? Pin
Jörgen Andersson1-Dec-19 19:54
professionalJörgen Andersson1-Dec-19 19:54 
GeneralRe: It is a hint? Pin
Kornfeld Eliyahu Peter1-Dec-19 20:00
professionalKornfeld Eliyahu Peter1-Dec-19 20:00 
GeneralSome coding style weirdness, Is and Has Pin
honey the codewitch1-Dec-19 14:59
mvahoney the codewitch1-Dec-19 14:59 
So I use Is and Has differently on my property and field names, depending on what they do.

Is implies the state of something, whereas Has implies containing something.

I've even had to use both for the same item. On my FSM code I have IsAccepting and HasAccepting, the first indicates whether the state is accepting, the second indicates whether itself or any states it contains is accepting- basically if it has any accepting states. Heavily commented in that case, and is fortunately the only place I've ever had that happen.

But it leads me to weird things like "IsEnded" instead of "HasEnded"
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

GeneralRe: Some coding style weirdness, Is and Has Pin
Ravi Bhavnani1-Dec-19 16:14
professionalRavi Bhavnani1-Dec-19 16:14 
GeneralRe: Some coding style weirdness, Is and Has Pin
honey the codewitch1-Dec-19 16:18
mvahoney the codewitch1-Dec-19 16:18 
GeneralRe: Some coding style weirdness, Is and Has Pin
Super Lloyd1-Dec-19 18:15
Super Lloyd1-Dec-19 18:15 
GeneralRe: Some coding style weirdness, Is and Has Pin
Jörgen Andersson1-Dec-19 20:13
professionalJörgen Andersson1-Dec-19 20:13 
GeneralRe: Some coding style weirdness, Is and Has Pin
honey the codewitch1-Dec-19 20:16
mvahoney the codewitch1-Dec-19 20:16 
GeneralRe: Some coding style weirdness, Is and Has Pin
OriginalGriff1-Dec-19 21:12
mveOriginalGriff1-Dec-19 21:12 
GeneralRe: Some coding style weirdness, Is and Has Pin
honey the codewitch1-Dec-19 21:17
mvahoney the codewitch1-Dec-19 21:17 
GeneralRe: Some coding style weirdness, Is and Has Pin
BillWoodruff1-Dec-19 22:29
professionalBillWoodruff1-Dec-19 22:29 
GeneralRe: Some coding style weirdness, Is and Has Pin
honey the codewitch2-Dec-19 5:20
mvahoney the codewitch2-Dec-19 5:20 
GeneralRe: Some coding style weirdness, Is and Has Pin
PIEBALDconsult2-Dec-19 5:18
mvePIEBALDconsult2-Dec-19 5:18 
GeneralRe: Some coding style weirdness, Is and Has Pin
honey the codewitch2-Dec-19 5:19
mvahoney the codewitch2-Dec-19 5:19 
GeneralRe: Some coding style weirdness, Is and Has Pin
PIEBALDconsult2-Dec-19 5:28
mvePIEBALDconsult2-Dec-19 5:28 
GeneralRe: Some coding style weirdness, Is and Has Pin
honey the codewitch2-Dec-19 5:29
mvahoney the codewitch2-Dec-19 5:29 
GeneralRe: Some coding style weirdness, Is and Has Pin
Gary Wheeler2-Dec-19 5:54
Gary Wheeler2-Dec-19 5:54 
GeneralRe: Some coding style weirdness, Is and Has Pin
honey the codewitch2-Dec-19 5:56
mvahoney the codewitch2-Dec-19 5:56 
GeneralRe: Some coding style weirdness, Is and Has Pin
Gary Wheeler2-Dec-19 6:09
Gary Wheeler2-Dec-19 6:09 
GeneralRe: Some coding style weirdness, Is and Has Pin
honey the codewitch2-Dec-19 6:13
mvahoney the codewitch2-Dec-19 6:13 

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.