Re:An Overwhelmingly Negative and Demoralizing Force
by davidgay on Wednesday April 09, 2025 @11:32PM
(#43640358)
I'm of the opinion that
is more readable in the long-term... (less predefined methods/concepts to learn).
[ Parent
| on HN ]
Re:An Overwhelmingly Negative and Demoralizing Force
by n4r9 on Thursday April 10, 2025 @03:28AM
(#43641551)
Where is `getOrCreate` defined? Is it a custom extension method? There's also a chance we're thinking in different languages. I was writing C#, yours looks a bit more like C++ maybe?
Readability incorporates familiarity but also conciseness. I suppose it depends what else is going on in the codebase. I have a database access class in one of my solutions where `ToLookup` is used 15 times; yes you have to learn the concept, but it's an inbuilt method and it's a massive benefit once you grok it.