Questions tagged [map]
The map tag has no summary.
                65 questions
            
            
            
                5
            
            votes
        
        
            
                3
            
            answers
        
        
            
                657
            
            views
        
        
            
            
            
        How to get rid of Mappers and make objects build themselves?
                    I am having a really hard time deciding where to instantiate my entities in the refactoring I am making. The project was built with DDD and it's layered: it has the infra, domain and app layers. In ...
                
            
       
        
            
                1
            
            vote
        
        
            
                1
            
            answer
        
        
            
                190
            
            views
        
        
            
            
        How to map same name entities between domains in DDD?
                    I am working on the migration of a project from desktop to web. I am using VueJS 3 (composition API). Since this project has lots of modules, I thought about using DDD on the frontend for organization ...
                
            
       
        
            
                1
            
            vote
        
        
            
                1
            
            answer
        
        
            
                139
            
            views
        
        
            
            
        Long dictionary/map key vs shorter key + equality check for an auth cache
                    I'm implementing an API key based authentication scheme and I'm caching valid API key entries (hash, scope etc.) in a memory cache. For the cache key, I had been using the first 8 characters of the ...
                
            
       
        
            
                0
            
            votes
        
        
            
                1
            
            answer
        
        
            
                2k
            
            views
        
        
            
            
            
        Why is there no Hashmap in C++ like Java? [closed]
                    I know that the C++ standard library includes the ordered and the unordered map (std::map and std::unordered_map) containers, but why is there no hashmap available on C++? I was asked this questions ...
                
            
       
        
            
                0
            
            votes
        
        
            
                1
            
            answer
        
        
            
                1k
            
            views
        
        
            
            
        Why shouldn't I be using SQLITE instead of the INI format in all cases?
                    Backstory
In an effort to store partial and full downloads to file in a clean manner, I had utilized QSettings which stores its key value pairs in the INI format in a single file.
https://doc.qt.io/qt-...
                
            
       
        
            
                4
            
            votes
        
        
            
                2
            
            answers
        
        
            
                1k
            
            views
        
        
            
            
            
        Arrays vs Maps for listing items that have a unique id
                    I've been finding that for a lot of code I've been writing recently, it naively might look like this:
Array approach:
const options = [
   {
      id: 'red', 
      label: 'Red', 
      data: '#f00'
  ...
                
            
       
        
            
                3
            
            votes
        
        
            
                3
            
            answers
        
        
            
                828
            
            views
        
        
            
            
        Read large JSON file and return a subset for map
                    To some extent, this is a wide question, because I do not know in which direction I should move.
I am using Polymaps to show markers on a map. The markers are static but the visualization depends on ...
                
            
       
        
            
                2
            
            votes
        
        
            
                2
            
            answers
        
        
            
                298
            
            views
        
        
            
            
            
        Is registry pattern a valid use of global state?
                    For example, I want to convert json from server to generic object: Shape, as follow:
{
    "type":"Circle",
    "radius":"3",
},
{
    "type":"Rectangle",
    "width":"5",
    "height":"6",
},
using ...
                
            
       
        
            
                -2
            
            votes
        
        
            
                1
            
            answer
        
        
            
                196
            
            views
        
        
            
            
            
        Map synchronization algorithm
                    Say I have two Map instances in JavaScript (or HashMap in Java, or Dictionary in C#), A and B. I want to synchronize B to A, so that B is a copy of A. I can't copy the reference and I don't want to ...
                
            
       
        
            
                1
            
            vote
        
        
            
                4
            
            answers
        
        
            
                164
            
            views
        
        
            
            
        filter + map api design
                    I am writing a library call that will allow you to filter and map in the same iteration of the loop, this is async/callback style in Java. The problem of course is that for filtering we usually return ...
                
            
       
        
            
                3
            
            votes
        
        
            
                1
            
            answer
        
        
            
                110
            
            views
        
        
            
            
        java hashtable extending to support duplicates
                    I have to maintain an old application and have to extend some modules.
There is an hashtable that is used for maintaining/holding some objects as representation of running (real) processes (don't see ...
                
            
       
        
            
                1
            
            vote
        
        
            
                2
            
            answers
        
        
            
                130
            
            views
        
        
            
            
            
        When define locale text file, language key (eg:'en') or text key (eg:'WELCOME_MESSAGE'), which one should be the outermost key?
                    When define a locale text map, I can use:
1.locale key first 
{
    "en":{
      "WELCOME_TO_USE_THIS_APP":"Welcome to use this app,...",
      "SOME_OTHER_TEXT":"fsdfsf..."
    },
    "es":{
      "...
                
            
       
        
            
                4
            
            votes
        
        
            
                5
            
            answers
        
        
            
                9k
            
            views
        
        
            
            
        Use POJO or Map when there is a finite number of known keys?
                    I have some set of data with key-value pairs, but there is only a finite and known set of keys, all of the key should always be present on that data, and they all have the same type for the value. ...
                
            
       
        
            
                53
            
            votes
        
        
            
                1
            
            answer
        
        
            
                71k
            
            views
        
        
            
            
            
        What is the use of DTO instead of Entity?
                    I am working on RCP application, I'm new to this application.
Spring beans are used to write business logic to save/fetch entities.
But, instead of sending entities directly to client we are ...
                
            
       
        
            
                0
            
            votes
        
        
            
                1
            
            answer
        
        
            
                382
            
            views
        
        
            
            
        How to avoid Global State with a world map?
                    This is a conceptual problem I'm having general difficulty with, and I'd like to look at an example that can hopefully help clarify this: using a map to represent an alterable game world.  For ...
                
            
       
         
         
        