I am naming a variable JsonArray versionsJA = jsonObject.get("versions").getAsJsonArray()
Is there any proper naming convention that can be done here? I mean something better than the name versionsJA?
Is it a good idea to include the type of variable in the name in some form?
Here the JA means JsonArray
Any alternate name that could be better?
Naming variables which represent json
109 Views Asked by nick At
1
There are 1 best solutions below
Related Questions in NAMING-CONVENTIONS
- What is the naming convention in Python for asynchronous functions?
- Why do most Azure naming conventions include the resource type in the name?
- useReducer naming conventions
- Python script won't skip past files that match naming convention set in file renaming program
- Issue changing Pylint naming convention in VS Code
- camelCase naming convention not working while returning response
- What does $$[T] mean in method name
- Power Automate, Attempting to add an action that will paste in and rename an export file according to the previous business day in the MM.DD format
- What is the term for a colon before a suite in Python syntax?
- What is the convention for naming C# files that contain extension methods?
- Prisma and Types: Confused about Naming Conventions
- Nested system naming convention in Common Lisp using ASDF?
- How do I reference a lookup table that might not contain the looked up record?
- How distinguish stage of infra vs stage of software in naming convention (IaC)
- How to configure editorconfig file to allow units of measurement after variable names?
Related Questions in VARIABLE-NAMES
- Assembly, gdb duplicate names
- How to document that a name of a variable can be different in another taxonomy?
- Is it possible to set variable as part of other variable's name
- How to preserve Unicode characters in name when bundling with esbuild?
- why can't $module be used as a variable name? in jq
- Create a variable wita another variable in the (variable) name, and have a dynamic variable
- Angular Validator requiredFalse
- How to get the original name of loop variables in JavaScript?
- Naming variables which represent json
- Create Dictionary with name and value of list of variables
- Issues with naming empty dictionaries on Python
- How to set an object property value to its own variable name (during initialization if possible)?
- Naming conventions. Method or variable names containing numbers as a words
- variable with spaces in plotly
- How do you dynamically create useState variables in React?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Unless there are other version variables in your program, simply name it version. Encoding the type of a variable in its name is considered bad style since it adds unnecessary redundancy. In programming we want to keep each bit of information in only one place and in this case we can see in the declaration that it is a JSON array.