In general, is code length affective to the speed of the program? I'm talking about differences in small sizes not comparing 10,000 lines to 10.
Example #1:
// Ternary Operator $todo = (empty($_POST['todo'])) ? 'default' : $_POST['todo']; VS
// The above is identical to this if/else statement if (empty($_POST['todo'])) { $action = 'default'; } else { $action = $_POST['todo']; } And other examples like not using common brackets and universal indentation.
Example #2:
if ($gollum === 'halfling') { $height --; } VS
if ($gollum === 'halfling') $height --; Also using CamelCase naming convention will lower the characters length, is that effective at all? I doubt this is effective, but still it uses less characters.
Cheers!