Comment on Javascript

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Comment on Javascript

fschmidt
Administrator
In response to https://communities.win/c/programming/p/17s5tnLTjI/javascript-classes-and-userdefin/c

Javascript is like a trans-sexual but is trans-paradigm.  Just as a trans-sexual is one sex pretending to be another, Javascript is one paradigm (tables and closures like Lua) pretending to be another (object-oriented like Java).  Things should be treated as they really are, not what they are pretending to be.  So don't use the object-oriented features of Javascript, instead program Javascript like you would Lua.  Writing object-oriented Javascript is like having sex with a trans-sexual.