as you can see I never change a or b. I just create new objects, I never change the content of the variable.
This is similar to how pure functional languages work or languages like Erlang where variables are immutable, so once they have a value, they'll keep that for their entire life.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Honestly? I don't think so.
It might be better to use a functional approach and limit sharing data. For example, using Ruby:
as you can see I never change
a
orb
. I just create new objects, I never change the content of the variable.This is similar to how pure functional languages work or languages like Erlang where variables are immutable, so once they have a value, they'll keep that for their entire life.