Get the latest tech news

How we enforce .NET coding standards to improve productivity


Distributing .editorconfig and MSBuild properties across hundreds of .NET projects is now as easy as adding a single NuGet package. Here's how we did it.

At Workleap, we decided to take a step back to analyze where we could improve our SDLC as well, in order to reduce friction and help our developers deliver value for our customers faster, without compromising on quality. Notable examples include: prevent multiple enumerations of IEnumerable, forwarding CancellationToken parameters to methods, rethrowing to preserve stack details, not using obsolete or weak key derivation functions, awaiting tasks instead of using.Result, etc. While this represented a colossal effort of tweaking hundreds of knobs with different severity levels, we also evaluated the impact of these rules on the build duration using MSBuild Log Viewer, as we did not want to introduce a significant overhead.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of productivity

productivity

Photo of coding standards

coding standards

Related news:

News photo

Let's stop pretending that managers and executives care about productivity

News photo

Yahoo Japan forces all employees to use AI, expects it will double productivity by 2028 | Despite the hype, many studies suggest AI may lower productivity

News photo

In the Southwest, solar panels can help both photovoltaics and crops | Solar arrays can shade crops from sun while moisture cools the panels to increase their productivity.