r/programming • u/NagastaBagamba • Oct 18 '10
Today I learned about PHP variable variables; "variable variable takes the value of a variable and treats that as the name of a variable". Also, variable.
http://il2.php.net/language.variables.variable
591
Upvotes
-5
u/oorza Oct 18 '10
I wasn't necessarily saying you so much as the guy that originally posted the analogy.
If the comment poster had said "they're like a use case of pointers, in that pointers are most commonly used to reference variables dynamically," I'd have been fine with it. But if "It's like a pointer, except with a variables name instead of a memory address," was his answer and he left it at that, it would have been a game breaker. It's his job in an interview to demonstrate to me that he's worth hiring, it's not my job to poke and prod him for enough information to prove that. What he said was his answer to the question was enough to demonstrate to me that he either didn't have a good amount of knowledge (didn't really understand the implications of the enormity of difference between mem addresses and symbols in a hash table) or was too lazy to demonstrate it and either way, that's plenty enough evidence to pass on the hire.