Codebase modernization #840
Replies: 8 comments 13 replies
-
I just approved and merged 3 straightforward pull requests. I only re-ran unit tests for them to ensure they are green. Now it's your turn people :-) |
Beta Was this translation helpful? Give feedback.
-
I disagree with file-scoped namespaces and global usings. Those changes are not necessary for modernization, and are usually the first thing I turn off in a VS2022/.NET 6.0 project because they've caused problems on every solution I've upgraded. |
Beta Was this translation helpful? Give feedback.
-
You LITERALLY caught me just about to apply that change! I won't apply it for now... I think file-scoped namespaces are less controversial. Perhaps just those? I'll create a branch off the modernization branch so you can have a look. |
Beta Was this translation helpful? Give feedback.
-
There is a modernization pull request. It's entirely non-functional changes (except a NotSupportedException is now thrown in the constructor, not the metadata fetch when the FTP protocol is requested). We can do it with or without the file-scoped namespaces pull request (into modernization). |
Beta Was this translation helpful? Give feedback.
-
I personally am in favour of file scoped namespaces - the lesser indentation makes things easier to read. Global using - not so much. Too much possible interference. |
Beta Was this translation helpful? Give feedback.
-
It's interesting that the very first suggestion caused several disagreements. This is exacatly why I wanted a group of maintainers, not a single person. I think it what we need is principles to resolve such issues, especiall style-related because they don't provide any functional value and therefore subjective (and harder to settle). You don't have to agree with me (I am no longer a sole maintainer) but my 2 cents is that for non-functional change, especially if it affects a large set of files, there must be approval from all main maintainers before they are applied. I hope nobody here is stubborn, so we are able to change our opinions. But being a bit conservative regarding such non-functional changes can save us from some later regrets and potentially loss of someone's motivation. |
Beta Was this translation helpful? Give feedback.
-
For those who have not yet used it, the .editorconfig file is the best way to consistently apply code style. At present, it is set to provide advisories. Later on, we should increase these to warnings (or even errors), to ensure that incoming pull requests are forced to adhere to the "house style". I believe I have set "cleanest style" settings, though am happy to modify these. Please review (ideally in Visual Studio Community 2022, which is free for Open Source project like this). |
Beta Was this translation helpful? Give feedback.
-
Any final objections before this is merged into master? |
Beta Was this translation helpful? Give feedback.
-
So, as @robertmclaws has noted, the (erstwhile) fork gained significant modernisation changes. I propose:
Beta Was this translation helpful? Give feedback.
All reactions