Click here to Skip to main content
14,448,369 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 19:35
mveKornfeld Eliyahu Peter1-Dec-19 19:35 
GeneralRe: It is a hint? Pin
Amarnath S1-Dec-19 19:44
professionalAmarnath S1-Dec-19 19:44 
GeneralRe: It is a hint? Pin
the goat in your machine1-Dec-19 20:22
Memberthe goat in your machine1-Dec-19 20:22 
GeneralRe: It is a hint? Pin
Jörgen Andersson1-Dec-19 20:54
communityengineerJörgen Andersson1-Dec-19 20:54 
GeneralRe: It is a hint? Pin
Kornfeld Eliyahu Peter1-Dec-19 21:00
mveKornfeld Eliyahu Peter1-Dec-19 21:00 
GeneralSome coding style weirdness, Is and Has Pin
honey the codewitch1-Dec-19 15:59
mvahoney the codewitch1-Dec-19 15:59 
GeneralRe: Some coding style weirdness, Is and Has Pin
Ravi Bhavnani1-Dec-19 17:14
professionalRavi Bhavnani1-Dec-19 17:14 
GeneralRe: Some coding style weirdness, Is and Has Pin
honey the codewitch1-Dec-19 17:18
mvahoney the codewitch1-Dec-19 17: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 19:15
MemberSuper Lloyd1-Dec-19 19:15 
GeneralRe: Some coding style weirdness, Is and Has Pin
Jörgen Andersson1-Dec-19 21:13
communityengineerJörgen Andersson1-Dec-19 21:13 
GeneralRe: Some coding style weirdness, Is and Has Pin
honey the codewitch1-Dec-19 21:16
mvahoney the codewitch1-Dec-19 21:16 
GeneralRe: Some coding style weirdness, Is and Has Pin
OriginalGriff1-Dec-19 22:12
communityengineerOriginalGriff1-Dec-19 22:12 
GeneralRe: Some coding style weirdness, Is and Has Pin
honey the codewitch1-Dec-19 22:17
mvahoney the codewitch1-Dec-19 22:17 
GeneralRe: Some coding style weirdness, Is and Has Pin
BillWoodruff1-Dec-19 23:29
mveBillWoodruff1-Dec-19 23:29 
GeneralRe: Some coding style weirdness, Is and Has Pin
honey the codewitch2-Dec-19 6:20
mvahoney the codewitch2-Dec-19 6:20 
GeneralRe: Some coding style weirdness, Is and Has Pin
PIEBALDconsult2-Dec-19 6:18
professionalPIEBALDconsult2-Dec-19 6:18 
GeneralRe: Some coding style weirdness, Is and Has Pin
honey the codewitch2-Dec-19 6:19
mvahoney the codewitch2-Dec-19 6:19 
GeneralRe: Some coding style weirdness, Is and Has Pin
PIEBALDconsult2-Dec-19 6:28
professionalPIEBALDconsult2-Dec-19 6:28 
GeneralRe: Some coding style weirdness, Is and Has Pin
honey the codewitch2-Dec-19 6:29
mvahoney the codewitch2-Dec-19 6:29 
GeneralRe: Some coding style weirdness, Is and Has Pin
Gary Wheeler2-Dec-19 6:54
MemberGary Wheeler2-Dec-19 6:54 
GeneralRe: Some coding style weirdness, Is and Has Pin
honey the codewitch2-Dec-19 6:56
mvahoney the codewitch2-Dec-19 6:56 
GeneralRe: Some coding style weirdness, Is and Has Pin
Gary Wheeler2-Dec-19 7:09
MemberGary Wheeler2-Dec-19 7:09 
GeneralRe: Some coding style weirdness, Is and Has Pin
honey the codewitch2-Dec-19 7:13
mvahoney the codewitch2-Dec-19 7:13 
GeneralHealth and Safety Zen Pin
OriginalGriff1-Dec-19 12:22
communityengineerOriginalGriff1-Dec-19 12:22 
GeneralRe: Health and Safety Zen Pin
Ravi Bhavnani1-Dec-19 12:47
professionalRavi Bhavnani1-Dec-19 12: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.