Scripting convention for $prefs
OpenPublic

Asked by Mud-H on Apr 1 2018, 7:04 PM.
Subscribers
None
Tokens
"Pirate Logo" token, awarded by Mud-H.

Details

$prefs are used in Torque Engines since the beginning and they use the syntax like $prefs::SettingGroup::Setting and everyone are happy with them except one guy... He'd prefer to use $prefs_SettingGroup_Setting format because they can be use like global arrays so $prefs_[%SettingGroup,%setting] would do the same.
What are the benefits of using :: over _ and what you think should be considered the official convention? ::, _ or both?

Answer Summary

This is a joke related to a discussion with @Azaezel and it's used to show the potential of Ponder for improving Torque3D. It work a bit like Stack Overflow, everyone can provide an answer and then the community can comment and vote for the preferred.
This might not be the best example, I think it can be used for different things. This example would fit better in a Poll I think...
Also, I haven't had the chance to see it in action because alone it's not very good...

Please try to use it to see better how it work, the content is not important... A joke is always appropriated!

Answers

Mud-H
Updated 49 Days Ago

Q: How many programmers does it take to screw in a light bulb?

A: None. It's a hardware problem.

A manager, a mechanical engineer, and software analyst are driving back from convention through the mountains. Suddenly, as they crest a hill, the brakes on the car go out and they fly careening down the mountain. After scraping against numerous guardrails, they come to a stop in the ditch. Everyone gets out of the car to assess the damage.

The manager says, "Let's form a group to collaborate ideas on how we can solve this issue."

The mechanical engineer suggests, "We should disassemble the car and analyze each part for failure."

The software analyst says, "Let's push it back up the hill and see if it does it again."

There's no options really IMO ☕

New Answer