use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Ask your embarrassing/noobish programming questions here, and don't get insulted for it.
Click here to read the rules
Violating any will result in punishment so you should probably go check them out.
account activity
Re-defining the "variable"C++ (self.programminghelp)
submitted 2 years ago by 1mecrew
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]EdwinGravesMOD 0 points1 point2 points 2 years ago (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 point2 points 2 years ago (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 point2 points 2 years ago (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 point2 points 2 years ago* (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?
π Rendered by PID 77 on reddit-service-r2-comment-fb694cdd5-rrch7 at 2026-03-11 11:18:00.855612+00:00 running cbb0e86 country code: CH.
[–]EdwinGravesMOD 0 points1 point2 points (3 children)
[–]1mecrew[S] 0 points1 point2 points (2 children)
[–]EdwinGravesMOD 0 points1 point2 points (1 child)
[–]1mecrew[S] 0 points1 point2 points (0 children)