SleepWellPupper
UI behavior specification language/tool
Context: Angular frontend, Cypress tests
I'm currently implementing a UI behavior specification tool. The idea is to be able to generate guided tutorial tours, automatically build a document (pdf) detailing the spec (customer requirement) and generate cypress tests that verify the UI was implemented as per the spec, from the spec. The spec itself is a declarative TS object definition based off of which I then generate ShepherdJs guided tours as well as cypress tests.
Is there tools or languages out there that aim for a similar thing? I'd like to research some alternative implementations to see how others solve this problem.
I realize it's a rather specific problem but hey, can't hurt to ask eh? :)
4 replies
✅ Periodically (asynchronously) yielding in an otherwise synchronous method
I have a long-running CPU-bound algorithm that is being executed in a Blazor WASM application. I would like to cooperatively allow the UI to update / do event loop stuff etc.
Would you think this approach would work:
Essentially we hide the
await Task.Yield()
path behind a flag, guarantueeing synchronous execution when desired, and enabling periodic yielding of the thread if not.
CCing @BenMcLean since we got to the idea together.42 replies
✅ What is C# Code Lowering?
Is there a cut and dry definition of what code lowering ("yoinking") encompasses?
e.g.:
- are top level statements "lowered" into a class/function?
- are records "lowered" into class definitions?
- are properties "lowered" into methods?
Generally asking: What is code lowering in C#, where can I observe it or its effects in my code, and where can I read more about it?
Thanks in advance!
10 replies