Use "readonly struct" for small immutable value types, it can improve the #performance of your code and prevents hidden copies.
This will let the #compiler know that it's immutable and won't change during runtime while creating less heap allocation
Use "readonly struct" for small immutable value types, it can improve the #performance of your code and prevents hidden copies.
This will let the #compiler know that it's immutable and won't change during runtime while creating less heap allocation
This one actually took me a bit longer than usual for some reason, turns out I massively overcomplicated the problem since Dependency Injection already took care of my concerns
#csharp #dotnet
This one actually took me a bit longer than usual for some reason, turns out I massively overcomplicated the problem since Dependency Injection already took care of my concerns
#csharp #dotnet
Do you actually know the difference between the ?? and || operator?
?? will only check for a nullish value (like null or undefined) while || checks for any falsy value, here is a quick #code example:
Do you actually know the difference between the ?? and || operator?
?? will only check for a nullish value (like null or undefined) while || checks for any falsy value, here is a quick #code example:
Don't sleep on the nullish assignment operator "??=", allows yall to assign a value only if the variable is nullish, here is a typescript example #code snippet
Don't sleep on the nullish assignment operator "??=", allows yall to assign a value only if the variable is nullish, here is a typescript example #code snippet
First version (roughly 2 yrs ago) -> version 1 -> final version (adjustments made by a friend)
I honestly kinda dropped fiverr for #freelance ever since I moved to #upwork but it feels good to get something professional
In this example we are using the popular #npm package "jsonwebtoken", if no algorithm is specified an attacker could set the "alg" header to "none" and leave out the signature