I spent 15 years in C#. When LINQ and Generics came out, I didn't at first see the value, why? Because I was alredy doing it without them.
Once I dug in, I couldn't live without either. But, I did have to rewire my thoughts and go through a painful learning curve.
Only then, did I start noticing code duplication based on type only. Generics extended my insight and forever changed my coding style.
Today, I have not yet had the need to use Generics in Typescript, but when I do, it'll be a no brainer.
Generics aren't for beginners nor is it for typeless programmers.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I spent 15 years in C#. When LINQ and Generics came out, I didn't at first see the value, why? Because I was alredy doing it without them.
Once I dug in, I couldn't live without either. But, I did have to rewire my thoughts and go through a painful learning curve.
Only then, did I start noticing code duplication based on type only. Generics extended my insight and forever changed my coding style.
Today, I have not yet had the need to use Generics in Typescript, but when I do, it'll be a no brainer.
Generics aren't for beginners nor is it for typeless programmers.