When I am reading other peoples codes:
Some are almost like reading regular English. Consistent and intuitive names.
Such as Main_Menu, Player_Shield, Background_Image, Options_Gui_Container etc
Others read like a 1950’s military engineering manual with zero names- just combinations of characters and digits and reused in local but in different ways and for different purposes. But with deliberate obfuscation of variable meanings. This was to reduce memory, make the code harder to hack, and make it unintelligible to their bosses for job security. (yes I was a nuclear machinist mate in the US Navy in my early 20’s. )
Where as example I had been issued in boot camp a “w639b6- self composting, spatially distributed cellulose fibrous structure, with resin impacted optical identification, vegetable resin enhanced structural walls and base, performing fluidic medium contained transportation system maximized for optical fluid consumption and co engineered for small groupings or singular solid medium object containment and transportation- category 1(b)” - or in English a drinking cup)
Some developers have that mind set: refusing any human readability and reusing same variables such i,ii, b23r, aaa, and with zero commenting on what those variables mean or what the function is supposed to do.
I was reading a script the other day- that I had written years ago in python. I had no idea what my variables meant or even what they did. I mean I know they were in a loop, or they were calculating math or something but it took me a long time to go back and discover the cryptic meaning of “id<zw[0]” when zw[0] =jj and what that had to do with c_id.
yesterday I was reading a script on creating a menu in defold. And in every script in the project it was human readable- until this one script where every variable was a single local variable- i or j. In every function in the script and there had to have been over 200 lines. With no rationale way of telling how any of them tied together. No single comment, and not a single variable that even hinted at what was being done.
This kind of thing will make your future self hate your present self. When you have to maintain this project and havent seen this script in a year or more you won’t remember what i or j or z_1 means and you will have to become a detective and waste time reverse engineering you code to find the one line out possible thousands that needs to be changed to affect the variable i.
Or worse the dev just copied dozens of snippets hodge podge into a script- with no understanding what the variables meant- just that they worked in somebody else’s project. And now they want you to fix it. in there (Nooo I have NEVER done that!)
On the other hand I ending up reading another script that “BOOM” it was legible concise and human readable. Working on that guys team would be much less frustrating than say Govt Bob’s cryptic code.
So what kind of system do you use and do other people like it?