๐กC# Tip
Have you ever needed to get the unique values for a list elegantly?
You can use the Linq method Distinct() just for this!
It will remove any duplicate values within an Enumerable. There is no need to make nested loops here. โ
#Dotnet
๐กC# Tip - Single/FirstDeafult
You have probably used them both, but what is the difference, don't they do the same thing?
First, will return the first instance it finds, even if there are multiple.
Single, will throw an error if it finds more than one instance.
#Dotnet
โ๏ธ Typescript Tip - Awaited
If you have ever needed a way to extract the return value of a Promise, then look no further than the new utility type Awaited!
It is meant to model operations like await in async functions or the .then() method on Promise's. ๐ค
#TypeScript
๐กC# Tup - Obsolete
Have you ever wondered how pacakges mark features as obsolete? It is simple! They use the Obsolete attribute.
Any member decorated with an Obsolete attribute will issue a warning whenever that member is used.๐ฒ
#Dotnet
๐ฃ Coding Tip
Read Others' Code
Gain insights by reviewing different coding styles and approaches from fellow developers.
Take some notesโ๏ธ
#Coding
@danielcranney Delphi was my first language. Way back in highschool. I do not use it today though, I learnt a lot of concepts from there. OOP is the main one.