Replies: 5 comments 4 replies
-
Are you thinking about using this style for commands and events? |
Beta Was this translation helpful? Give feedback.
-
So it feels like an equivalent for us would be:
and to be clear:
What we need to see how they handle is things like filters, so we can figure out what idiom to mirror. Note, I can figure out ways to handle filters, but our goal is to be close in 'feel' to an ASP.NET app for a user |
Beta Was this translation helpful? Give feedback.
-
OK, this issue is much clearer at defining the ASP.NET team's goals: |
Beta Was this translation helpful? Give feedback.
-
And it's not, as I first suspected, some compiler trick, it's a lightweight alternative to using MVC https://twitter.com/davidfowl/status/1388294426225643520?s=21 So that is more of a question for us. I think it's possible to align the stacks, just treat the delegate with a signature as an alternative to a RequestHandler, but it's worth noting the goal here from them is simplicity i.e. no filters etc. It might also mean we want to map in-process and out of process through a top-level dispatcher. So the goal here would be 'simple Brighter' |
Beta Was this translation helpful? Give feedback.
-
This is much more what I was thinking we would do: https://github.com/davidfowl/uController/tree/81b648ef46c11f09f878148f09618d3d332e0d9b |
Beta Was this translation helpful? Give feedback.
-
We've always sought to be accessible to ASP.NET developers and consciously our handler + attributes model was intended to be familiar. We use hostbuilder and now their logger.
But ASP.NET is changing, picking up an inline syntax that we don't have.
It's worth thinking about how we might support this alongside. Like most "DSLs" I'd like to have this layer over our push/ button API (today's) as it's mostly syntactic sugar.
But we don't want to fall too far behind idiomatically
https://twitter.com/davidfowl/status/1385290460613144577?s=21
https://twitter.com/davidfowl/status/1385323241028218884?s=21
Beta Was this translation helpful? Give feedback.
All reactions