About 27,200 results
Open links in new tab
  1. Use a HashSet or List for a collection of Entities?

    Apr 14, 2018 · Use a HashSet or List for a collection of Entities? Ask Question Asked 7 years, 8 months ago Modified 7 years, 8 months ago

  2. Hashset vs Treeset - Software Engineering Stack Exchange

    Dec 5, 2019 · However, every software engineer I've ever known has asked me pointedly why I would use a TreeSet. From a CS background, I don't think it matters all that much which you …

  3. data structures - How to represent a set in JSON? - Software ...

    Aug 6, 2017 · JSON supports the following data structures (Java equivalents): Scalar, Array/List, and Map. A Set is not supported out-of-the-box in JSON. I thought about several ways to …

  4. design patterns - Is it a good practice to use List of Enums ...

    4 Is it a good practice to use List of Enum values on User? Short answer: Yes Better short answer: Yes, the enum defines something in the domain. Design-time answer: Make and use …

  5. What is the difference between a hash and a dictionary?

    Mar 13, 2018 · To summarize: a dictionary is an ADT that maps keys to values. There are several possible implementations of this ADT, of which the hash table is one. Hash is a misnomer but …

  6. Why does IDictionary not implement IReadOnlyDictionary

    Jul 10, 2023 · I've recently just noticed that IDictionary does not implement IReadOnlyDictionary. I'm using two third-party libraries, one of which provides a ToDictionary() method which returns …

  7. array - Readability & Performance: Is it better to allow the Java ...

    Apr 21, 2016 · If you deal with potentially large lists of vastly different sizes that grow and shrink a lot and you are worried about memory allocation, maybe it's a better option to use a LinkedList …

  8. c# - Most efficient LINQ result for Contains () query - Software ...

    Mar 13, 2015 · I currently use the following: var result = list.Union(otherList).SelectMany(l => l.children).ToList() foreach(var child in lotsOfChildren){ something = result.Contains(child) } I …

  9. java - Do we always need to override equals/hashcode when …

    Oct 3, 2019 · When creating a new class, should we always override the equals and hashCode even if we don’t intent at that point to use the class with any Collection classes? Or is it better …

  10. Sets Data Structure in Golang - Software Engineering Stack Exchange

    Nov 28, 2012 · I really like google golang but could some one explain what the rationale is for the implementors having left out a basic data structure such as sets from the standard library?