Re:DRY Is a Trade-Off
by axaxs on Friday December 18, 2020 @01:51PM
(#25470482)
Not a bad rule, but from what I've seen mainly in corporate Java, you can give everything and anything a name.
[ Parent
| on HN ]
I should have wrote a "good name".
GoodNameAbstractionFactory to the rescue!
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
It was always Delphi that is ahead of everything else
Re:DRY Is a Trade-Off
by qwerty456127 on Friday December 18, 2020 @08:24PM
(#25474116)
Inventing names is among the hardest part of any project.