Re:DRY Is a Trade-Off
by loopz on Friday December 18, 2020 @05:15PM
(#25472740)
GoodNameAbstractionFactory to the rescue!
[ Parent
| on HN ]
GoodNameAbstractionFactory goodNameAbstractionFactory = new GoodNameAbstractionFactory("GoodName", abstractionFactory);And don't forget the then obligatory GoodNameAbstractionFactoryFactory. How else could you get the factory, after all. I'll go cry in the corner now.
The 'var' keyword has to be one of my favourite C# features.
Re:DRY Is a Trade-Off
by oftenwrong on Saturday December 19, 2020 @01:41AM
(#25475612)
Java also has `var` since version 10 (2018).
Re:DRY Is a Trade-Off
by williamdclt on Saturday December 19, 2020 @05:45AM
(#25476575)
Once again Javascript is ahead of the game, we've had `var` since forever /s