News for hackers. Stuff that matters.
Re:Stateless 3.0 – A State Machine Library for .NET Core by xamlhacker on Saturday November 12, 2016 @11:21AM (#12938567)
While the title of the blog post says "for .net core", it is much more than that. The blog post clarifies it is actually targeting the new .net standard so it works on all platforms including .net core (Windows, Mac, Linux), .net framework on Windows, Windows UWP and Xamarin (iOS, Android).
Re:Stateless 3.0 – A State Machine Library for .NET Core by naasking on Saturday November 12, 2016 @02:01PM (#12939529)
Looks ok, but why not lift states to the type level and define transitions as extension methods? Then attempts to make an invalid transition are compile-time type errors.

Edit: ha, just noticed a comment on the blog saying the same thing. The example can be encoding C# too using extension methods and generic parameters.

Re:Stateless 3.0 – A State Machine Library for .NET Core by scotu on Saturday November 12, 2016 @12:38PM (#12938973)
Any alternatives for state machine/business flow in other languages/platforms worth to take a look at? I was actually looking for something more or less like this and I was thinking about python, but I'm open to evaluate Stateless or other solutions in other languages too...
Re:Stateless 3.0 – A State Machine Library for .NET Core by yawaramin on Saturday November 12, 2016 @01:50PM (#12939446)
I outlined an alternative on that post, have a look http://www.hanselman.com/blog/CommentView.aspx?guid=A642B575...
Re:Stateless 3.0 – A State Machine Library for .NET Core by douche on Saturday November 12, 2016 @11:46AM (#12938693)
This looks very interesting. I've been thinking about replacing an increasingly complicated home-grown state machine in something I'm working on with this. Anybody have any experiences working with it?
Re:Stateless 3.0 – A State Machine Library for .NET Core by janpieterz on Saturday November 12, 2016 @12:01PM (#12938768)
I played around with it, seems to do exactly what it says on the tin and is super easy to start with.
Re:Stateless 3.0 – A State Machine Library for .NET Core by mu_killnine on Saturday November 12, 2016 @01:43PM (#12939401)
Saw Hanselman post this and took a look. I think it perfectly fits the bill for a number of our systems and hope to stop using our old hand-crafted solution instead.
Re:Stateless 3.0 – A State Machine Library for .NET Core by zvrba on Saturday November 12, 2016 @12:23PM (#12938880)
Re:Stateless 3.0 – A State Machine Library for .NET Core by sv123 on Saturday November 12, 2016 @12:09PM (#12938807)
I found Stateless a few weeks ago and it came in super handy for a project. Definitely plan to use it more often.
Re:Stateless 3.0 – A State Machine Library for .NET Core by aplomb on Saturday November 12, 2016 @03:17PM (#12939945)
Great library and have used it on a few production systems.