- An issue/project-tracking system is a living source of information for a team managing a project.
- It contains various history of discussions, decisions, links, comments, mentions, tags and labels...etc.
- When transitioning from one issue system to another, it is critical to maintain a high fidelity translation of the previous issues into the new system.
- Often, decisions to migrate are taken at a high level in your company for various reasons, but the execution of the migration could be not prepared and supported at all by your company. In that case:
- Try to push this preparation to happen company wide.
- Beware that your team might have to do it on its own because nobody is available to do this for you or, worse, to do it correctly.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.CodeAnalysis; | |
using Microsoft.CodeAnalysis.CSharp.Syntax; | |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Reflection; | |
using System.Text; | |
using Microsoft.CodeAnalysis.Text; | |
namespace SourceGenLib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// From Twitter discussion: https://twitter.com/firstdrafthell/status/1371704847783895042 | |
// | |
// | Method | Mean | Error | StdDev | | |
// |----------------------------- |----------:|----------:|----------:| | |
// | TestUnpack | 25.454 ns | 0.1450 ns | 0.1356 ns | | |
// | TestUnpack2 | 25.033 ns | 0.0853 ns | 0.0798 ns | | |
// | TestUnpackWithSpan | 6.936 ns | 0.0535 ns | 0.0500 ns | | |
// | TestUnpackWithSpanStackAlloc | 8.733 ns | 0.1149 ns | 0.1075 ns | | |
using System; | |
using System.Buffers.Binary; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Requires the following packages: | |
// <PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="3.8.0" /> | |
// <PackageReference Include="BenchmarkDotNet" Version="0.12.1" /> | |
// <PackageReference Include="Scriban" Version="3.2.2" /> | |
// | |
// BenchmarkDotNet=v0.12.1, OS=Windows 10.0.19041.685 (2004/?/20H1) | |
// AMD Ryzen 9 3900X, 1 CPU, 24 logical and 12 physical cores | |
// .NET Core SDK=5.0.101 | |
// [Host] : .NET Core 5.0.1 (CoreCLR 5.0.120.57516, CoreFX 5.0.120.57516), X64 RyuJIT | |
// DefaultJob : .NET Core 5.0.1 (CoreCLR 5.0.120.57516, CoreFX 5.0.120.57516), X64 RyuJIT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Dark Mode for the Le Monde web site at https://www.lemonde.fr/ | |
Using Stylish Chrome Extension: https://chrome.google.com/webstore/detail/stylish-custom-themes-for/fjnbnpbmkenffdnngjfgmeleoegfcffe?hl=en | |
With "URLs starting with:" = https://www.lemonde.fr/ | |
*/ | |
@media(prefers-color-scheme:dark) | |
{ | |
#Header .Header, .Nav, .Nav__sub-item, body, .main, .zone, section.article__heading, .article__paragraph, .article, .article--longform .article__title, .article--longform .article__heading, .article--featured .article__wrapper, .article__title, .article__sub-title, .article__desc, .insert, div.fw_most_read_recommendations, .fw_most_read_recommendations-article, a .fw_most_read_recommendations-article { | |
background-color: #141414; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
using System.Runtime.InteropServices; | |
// Requires the NuGet package https://www.nuget.org/packages/ObjectLayoutInspector/ | |
namespace StructLayoutApp | |
{ | |
[StructLayout(LayoutKind.Explicit)] | |
struct ExplicitLayoutStruct { | |
[FieldOffset(0)] public byte B00; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Diagnostics; | |
using System.Reflection; | |
using InlineIL; | |
namespace DirectCallApp | |
{ | |
// With the following csproj | |
// <Project Sdk="Microsoft.NET.Sdk"> | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Feedback on https://github.com/YohDeadfall/Yoh.Tuples | |
/* | |
| Method | Mean | Error | StdDev | Gen 0 | Gen 1 | Gen 2 | Allocated | | |
|---------------- |----------:|---------:|---------:|-------:|------:|------:|----------:| | |
| TestSimpleTuple | 50.02 ns | 0.423 ns | 0.396 ns | 0.0229 | - | - | 192 B | | |
| TestYohTuple | 739.97 ns | 1.783 ns | 1.580 ns | 0.1822 | - | - | 1528 B | | |
*/ | |
using System; | |
using System.Runtime.CompilerServices; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create a .NET Core project, target also net472 | |
// Requires to install NuGet package InlineIL.Fody https://github.com/ltrzesniewski/InlineIL.Fody in your project | |
// Run this program | |
using System; | |
using InlineIL; | |
namespace PlayIL | |
{ | |
class Program | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright 2019 - Alexandre MUTEL - License MIT | |
using System; | |
using System.Diagnostics; | |
using System.Runtime.InteropServices; | |
using System.Text; | |
// Example of running a Linux command from .NET that can run transparently on Windows (via WSL) or Linux | |
// Assuming you are running on the same distribution, you can integrate this in your tests for example. | |
namespace YourNameSpace.Tests |