self-this.txt (2.0 KB)
LS,
As physicist born in the Stone Age (1936) and using Fortran (2018)
almost daily, I wish to report to you my chat with ChatGPT of today,
2023-10-09. Please, see attachment. Can you offer any help with
this ‘self/this’-issue?
Thank you in advance,
Dirk van Ormondt (Delft, NL).
dvo (me):
I wish to express that in English ‘self’ and ‘this’ occur already
frequently outside the field of programming. In OO-tutorials, one
often does not know whether this/self belong to the English
explanation or to the OO-code.
ChatGPT:
I completely understand your point. The dual usage of “self” and
“this” in both programming context and natural language can indeed
introduce confusion, especially in tutorials or explanations where the
distinction is not made clear. It’s an added layer of complexity when
these words have common usage outside of programming. This ambiguity
can make it challenging for learners to differentiate between the
programming constructs and their general language meaning, potentially
causing confusion and hindering the learning process. It underscores
the importance of clarity in documentation and teaching materials to
avoid any misunderstanding for those who are new to object-oriented
programming.
dvo:
Herewith I inform you that I have not yet encountered an English
OO-programming text that seemed to be aware of the potential
confusion. Alas.
ChatGPT
Got it. It’s unfortunate that you haven’t come across object-oriented
programming (OO) texts that explicitly address the potential confusion
between the programming constructs like “self” or “this” and their
general English usage. It can indeed be a challenge for learners when
the distinction is not clearly made.
Authors and educators in the programming community could benefit from
being more mindful of this issue and adopting practices that enhance
clarity, such as using consistent formatting or providing explicit
explanations.
As the programming community evolves, there’s an ongoing effort to
improve educational materials, so it’s possible that future tutorials
may become more aware of and responsive to the challenges learners
face in distinguishing between programming jargon and everyday
language. If you have the opportunity, providing feedback to authors
or educational platforms about this issue could contribute to positive
changes in their materials.