AI Command Lab // Flight Simulator
7B: The Camel Case Protocol
Initial AI Output (Fragile)
// AI-Generated Code: Messy and Inconsistent
void calc_dist() {
// Audit Fail: 'd' and 'h' are meaningless names.
// 'calc_dist' uses underscores, which isn't standard C#.
float d = Vector3.Distance(transform.position, h.position);
}
Initial AI Prompt
"You ask the AI: "Calculate the distance between the drone and the hangar.""
Pilot Comm Link
Mission Objective: A skilled Mechanic directs the AI to **Follow the Protocol**. You command: "Rename the variables using descriptive camelCase and the method using PascalCase."
Optimized Protocol
// Corrected: Professional and Auditable.
void CalculateDistanceToHangar() {
// Audit Pass: Names are clear. Variables are camelCase.
float distanceToHangar = Vector3.Distance(transform.position, hangarTarget.position);
}