Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Not a bad rule, but from what I've seen mainly in corporate Java, you can give everything and anything a name.


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.


Java also has `var` since version 10 (2018).


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


Inventing names is among the hardest part of any project.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: