Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Boilerplate code page clarification needed #843

Closed
MaxwellDAssistek opened this issue Jun 4, 2024 · 2 comments
Closed

Boilerplate code page clarification needed #843

MaxwellDAssistek opened this issue Jun 4, 2024 · 2 comments
Labels

Comments

@MaxwellDAssistek
Copy link

Describe the bug 🐞

On the boilerplate code handbook page there is a note saying "Note ReactiveUI.Fody currently doesn't support inline auto property initializers in generic types". This points to this issue: reactiveui/ReactiveUI#2416. This issue is now closed saying that ReactiveUI.Fody is no longer maintained. So is this package no longer recommended? This is my first time using this project so I am not sure what to believe here.

Step to reproduce

Go to https://www.reactiveui.net/docs/handbook/view-models/boilerplate-code#read-write-properties

Reproduction repository

No response

Expected behavior

If this is no longer an issue, the note should be removed.

Screenshots 🖼️

No response

IDE

No response

Operating system

No response

Version

No response

Device

No response

ReactiveUI Version

No response

Additional information ℹ️

No response

@ChrisPulman
Copy link
Member

ReactiveUI.Fody looks for a decorator and then replaces your code with the code as per the Fody template programmed at build time. The generated code is not visible to you unless you use a decompiler to view it. This method is restricted to templates and therefore it is harder to be flexible.
ReactiveUI.SourceGenerators can only add code to your code, the generated code is visible to you via the Analyser section of your project so you can be certain that no malicious code exists within the generated code. This code is generated real-time therefore you can use normal code at design time and the generated code where required will show in intellisence making your development experience better, more understandable and you know what code is being shipped.

There had been no changes to ReactiveUI.Fody for quite some time so it was taken out of the release system as the current version of ReactiveUI will work with ReactiveUI.Fody. You can use both ReactiveUI.Fody and ReactiveUI.SourceGenerators in the same project as the namespace of the Fody and Source Generators options are different.

If you are new to ReactiveUI and are not working on any existing code base that already has ReactiveUI.Fody then I would recommend ReactiveUI.SourceGenerators, there is more functionality available than the ReactiveUI.Fody option.

I hope that this answers your query and gives you some informative feedback for you to make a decision on which you decide to use.
Thank you.

I will close this now

Copy link

github-actions bot commented Oct 6, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants