Click here to Skip to main content
15,896,606 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.

 
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 
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 
I considered that too. It conflicted with another method that operates on a collection of otherwise potentially unrelated states, but then I ended up renaming it later to HasAnyAcceptingStates()

The api is kind of confusing because of the self-repeating, fractally nature of state machines like this. There are all kinds of subtly different but highly related operations on them. Even shoring up the API and naming took me going back to it over the years, never 100% satisfied, but it's more or less frozen at this point.

And, given what I've seen of the other similar APIs out there (usually in Java), mine is far cleaner. They're all nasty. Mine at least reins in the crazy somewhat, but then I'm sure everyone thinks that about their own code Roll eyes | :rolleyes:
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
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 
GeneralHealth and Safety Zen Pin
OriginalGriff1-Dec-19 11:22
mveOriginalGriff1-Dec-19 11:22 
GeneralRe: Health and Safety Zen Pin
Ravi Bhavnani1-Dec-19 11:47
professionalRavi Bhavnani1-Dec-19 11:47 

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.