pestkranker 2 minutes ago

Is there a 'prettier' equivalent for code formatting? In my opinion, it's the only thing missing for a truly scalable codebase.

maltalex 3 days ago

If you’re working in the .net ecosystem, you need to grok msbuild. Is not exactly painless or elegant, but is incredibly powerful. Creating a nuget package that applies settings and configuration files to consuming projects is the tip of a very deep iceberg.

I’m the author and owner of a similar code style/code quality package in a fairly large company and went through a very similar process, culminating with writing our own Roslyn-based analyzers to enforce various internal practices to supplant the customized configuration of the Microsoft provided analyzers. Also, we discovered that different projects need different level of analysis. We’re less strict with e.g test projects than core infrastructure. But all projects need to have the same formatting and style. That too can be easily done with one nuget using msbuild.

  • tailspin2019 4 minutes ago

    I agree with you on MsBuild being powerful.

    I often really hate certain technologies like MsBuild and use them begrudgingly for years, fighting with the tooling, right up until I decide once and for all to give it enough of my attention to properly learn, and then realise how powerful and useful it actually is!

    I went through the same thing with webpack too.

    MsBuild is far from perfect though. I often think about trying to find some sort of simple universal build system that I can use across all my projects regardless of the tech stack.

    I’ve never really dug much into `make`… Maybe something like that is what I’m yearning for.

  • johnfonesca 23 minutes ago

    >But all projects need to have the same formatting and style.That too can be easily done with one nuget using msbuild.

    That's like using a car for "traveling" 3 meters. Why not just use dotnet format + .editorconfig , they were created just for this purpose.

    • nathanaldensr 19 minutes ago

      It's a combination of practices, some at develop-time and some at CI-time. The general goal is to have code as clean and standardized as possible as early as possible, especially on larger teams where human enforcement doesn't scale as much.

000ooo000 an hour ago

Pretty long article with not a great deal of substance beyond what is mentioned early on. Would be interested to know how much input teams had in the rule configuration before this was foisted on them.

  • tailspin2019 17 minutes ago

    Plenty of substance in there for me. I’ve been building with dotnet since it existed and still learned a couple of new techniques/ideas from this article.

reverseblade2 3 days ago

Title should be C# not .Net

  • algorithmsRcool 3 days ago

    I'm not sure i understand your comment, .editorconfig works just fine for VB files as well as F#

    • nickpeterson 24 minutes ago

      You could almost think of F# is an extremely strict set of conventions for C# … ;)