Re:How the .NET Runtime Loads a Type
by wtetzner on Friday June 16, 2017 @07:03AM
(#14567938)
Do you have any examples of how generics could create spaghetti code? Given that they aren't control flow constructs, I'm having a hard time imagining such a situation.
[ Parent
| on HN ]
Re:How the .NET Runtime Loads a Type
by Quarrelsome on Friday June 16, 2017 @10:07AM
(#14569079)
If you try to use generics too hard you make crazy shit. I'm working on a system that has a Something<T, Y> but the Y inherits from the T and its all just a mad mess that makes no sense at face value. I guess someone thought it was a good idea at some point but the end result is just confusing as hell.
Then you realise its just sitting upon 5 really simple Sql tables and you realise its really convoluted.
Its all about stepping back and going: "am I trying too hard?". Like that last 10% of making the code base 100% elegant is what ruins it.