Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Indeed! They're still early, but source generators can enable this sort of functionality, eg: https://github.com/pakrym/jab
There are some cases where it's really nice to eliminate magic strings. Here's one simple example nuget that auto generates calls to endpoints so you don't have to use magic strings for url generation in MVC. It's not as grand as the samples of using it on Serializers or DI but it does make it possible for small QOL things like these. This could even be extended to things like Blazor to autogenerate the backend's Rest endpoints to avoid hard coding url strings on httpcalls and make sure it's always in sync with the backend's endpoints.
https://github.com/dotnet/runtime/issues/22343#issuecomment-703289189