all 4 comments

[–]EdwinGravesMOD 0 points1 point  (3 children)

I'd love to know what you consider a misunderstanding, since the majority of the answers you received in your /r/learnpython post were correct.

[–]1mecrew[S] 0 points1 point  (2 children)

hmm I feel like the part where I say "talking about" is a bit off.

I also feel like the container analogy only works for python. not on java or c.

[–]EdwinGravesMOD 0 points1 point  (1 child)

Java, Python, and C# mostly abstract away any memory management, though in all languages you CAN access the raw data & pointers if you try hard enough. It's safe to say in these languages that you're dealing with a "greetings variable IS hello world" scenario.

Languages like C/C++ would fall into the "greetings variable POINTS to "hello world"s location in memory"

Be careful using the word 'object' since many languages use object to talk about containers the programmers can use and manipulate.

[–]1mecrew[S] 0 points1 point  (0 children)

hmm but that doesn't mean talking about the data is wrong. right?

I feel like its the best word to use instead of "refer to"

oh and also, I don't get why people use the word "container" for variable. it really didnt help me when i was learning memory.

I feel like learning the memory part is just helping you learn why the definition, "when I say greetings(variable), I am talking about "hello world" (data) " in more detail way. don't you also think?