shahab-the-guy.dev
The guy who happened to be a software engineer!
✍🏼 https://shahab-the-guy.dev
📹 https://www.youtube.com/@shahab-the-guy
16 posts
18 followers
80 following
Regular Contributor
Conversation Starter
comment in response to
post
I know what you mean and could see your point! Still, I couldn’t tell that all source generator scenarios need an analyzer or code fix provider. But definitely if they do, it’d be better off to be in same project.
comment in response to
post
The attribute is a marker indicating which class realize the interface. to give the developer the option to opt in. And then somehow why factory class is aware of all those types at compile time. But as @flash0ver.bsky.social mentioned works just in certain cases. Analyzer+codefix compliments it.
comment in response to
post
What about having an interface and then an abstract class as a value provider?
The source generator could implement the interface with returning a default instance, for those classes marked with [ReferenceDefault], not shared though!
comment in response to
post
So does that mean you need help now!? 😅 cause I’d be more than happy to help 😊
comment in response to
post
😂😂
comment in response to
post
Does it also apologize 😅
comment in response to
post
Got it! I am wondering is there any possibility to achieve this using default keyword?
Person p = default;
and instead of null, it uses a custom logic, like the Default property.
comment in response to
post
I also missed the recording! But it looks like the ‘Instance’ for singleton classes with Lazy<T> pattern.
comment in response to
post
Looking forward to hear about it! Having source generators is always intriguing in any scenario.
comment in response to
post
Almost everyday, the least is writing proper commit messages, or getting an overview of PRs, auto suggestions, and sometimes as a rubber duck
comment in response to
post
I implemented a sub system of our whole application with ES and I absolutely love this approach, it seems like a natural fit for many scenarios; however, as you mentioned it’s no panacea and should not be treated as such.
comment in response to
post
I just stopped using it, life is better without twitter, happiness and less chaotic feed and news.