• 0

Data Dictionary vs Object


Question

I have two developers, one web and one mobile.  When looking at the following data, my web developer calls it an "object" and my mobile developer calls it a "dictionary".  They argue among themselves as to what it's called, and I can't chime in as I've never heard of the term "dictionary" before.  Are they both right, or is there a difference between the two?

 

Here's my JSON object:

 

{
	"votes":{
		"republicans":		46.09,
		"democratics":		48.18,
		"libertarians":		3.28,
		"greens":		1.07,
		"independents":		0.54,
		"others":		0.84
	}
}

 

Link to comment
https://www.neowin.net/forum/topic/1378638-data-dictionary-vs-object/
Share on other sites

8 answers to this question

Recommended Posts

  • 0

This is pretty easy to clear up. A dictionary is an object. So I guess they can both be right. Web is calling it an object most likely due to working with JavaScript, would be my guess. Mobile developer is being more specific. A dictionary is just an object that contains key-value pairs. 

  • 0
  On 14/01/2019 at 02:29, Brian Miller said:

Thanks. So they're actually is the difference. What is the difference?

Expand  

A dictionary is an object but not all objects are dictionaries. 

 

An object can be a collection of dictionaries, for example. Or a collection of Lists. Or a button. Etc. 

  • 0

Whether what you posted is an object or a dictionary depends entirely on what language and libraries the developer is using and how they intend to load/parse it.

 

So they both wrong.

  • 0

It's an Object, but more specifically it's a Dictionary Object. It's also an Associate Array, a Map, and a Symbol Table.

 

Don't get caught up on semantics. It's an object represented by key/value pairs and if you keep the naming convention within context most people will know what you mean. I personally call it an Object when I'm writing JavaScript, an Associative Array when I'm writing PHP, and a Dictionary when writing Python. I call it "JSON" when it's JSON :/

  • Like 2
  • 0
  On 14/01/2019 at 02:35, astropheed said:

It's an Object, but more specifically it's a Dictionary Object. It's also an Associate Array, a Map, and a Symbol Table.

 

Don't get caught up on semantics. It's an object represented by key/value pairs and if you keep the naming convention within context most people will know what you mean. I personally call it an object when I'm writing JavaScript and a Dictionary when writing Python.

Expand  

I think you probably said it more eloquently than I did. 

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Windows 12 perhaps would have codename Midnight of the company profits 😂 This system and it's update program gets more ridiculous with every new version
    • yet there are still dumb people decisions which takes the bait and go just where Microsoft guides them. left right left right just as a water particle in a microwave
    • Free Download Manager 6.29.0.6379 by Razvan Serea Free Download Manager is a powerful, easy-to-use and absolutely free download accelerator and manager. FDM accelerates downloads by splitting files into sections and then downloading them simultaneously. As a result download speed increases up to 600%, or even more! FDM can also resume broken downloads so you needn`t start downloading from the beginning after casual interruption. FDM lets you download files and whole web sites from any remote server via HTTP, HTTPS and FTP. You can also download files using BitTorrent protocol. In addition, Free Download Manager allows you to: adjust traffic usage; to organize and schedule downloads; download video from video sites; download whole web sites with HTML Spider; operate the program remotely, via the internet, and more! Free Download Manager is compatible with the most popular browsers Google Chrome, Firefox, Microsoft Edge, Internet Explorer and Safari. Free Download Manager 6.29.0.6379 changelog: Improved new desktop UI style. Improved add-ons support. Libtorrent updated to 2.0.11. Fixed: various bugs (including ones in the classic UI style). Download: Free Download Manager (64-bit) | 45.8 MB (Freeware) Links: Home Page | Linux, Mac, Android | MS Store | Screenshot Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • Would like nice for a Steam Deck, but I don't think I would like this on a PC.
    • Zen Browser 1.14.7b is out.
  • Recent Achievements

    • Week One Done
      hhgygy earned a badge
      Week One Done
    • One Month Later
      hhgygy earned a badge
      One Month Later
    • One Year In
      NIKI77 earned a badge
      One Year In
    • Week One Done
      artistro08 earned a badge
      Week One Done
    • Dedicated
      Balaji Kumar earned a badge
      Dedicated
  • Popular Contributors

    1. 1
      +primortal
      636
    2. 2
      ATLien_0
      237
    3. 3
      Xenon
      166
    4. 4
      neufuse
      143
    5. 5
      +FloatingFatMan
      123
  • Tell a friend

    Love Neowin? Tell a friend!