looolYou'd have a rough guess if you opened up every file and counted how many lines it extended on each file... but opening all the HTML, CSS, JS, PHP... plus the jQuery library which is big as it is...
Which is actually kind of amusing, seeing as the amount of lines is actually completely useless and far from being used as a metric to measure anythingthere are sooo many tools out there to measure loc and other metric software values
Measuring programming progress by lines of code is like measuring aircraft building progress by weight.
Not saying you were, just giving a quote that i thinks applied to this topicI'm not using it as a metric.
Ah right okNot saying you were, just giving a quote that i thinks applied to this topic
Bill, Is that you?Measuring programming progress by lines of code is like measuring aircraft building progress by weight.
echo $some_var ? 'true': 'false';
if ($some_var)
{
echo "true";
}
else
{
echo "false";
}
If the big bosses do this, they are only contributing to the demise of their software company.The big bosses need something to be able to work out how much work we're doing, no matter how useless that number is
I like you.The big bosses need something to be able to work out how much work we're doing, no matter how useless that number is
have you not already realised that developers are not a fan af big bosses? they only hinder developmentIf the big bosses do this, they are only contributing to the demise of their software company.
vsPHP:echo $some_var ? 'true': 'false';
PHP:if ($some_var) { echo "true"; } else { echo "false"; }
Why is lines of code important again?
Whitespace in PHP doesn't really matter. Although more than just whitespace is changed in the examples Andy provided, the speed difference in that example would be close to nothing, if not nothing. But yes, eliminating whitespace in files sent to the browser (HTML, CSS, JavaScript) does save time. It's known as minimization.Call me crazy but perhaps if we use less lines of text, that could effectively increase fasting loading on a browser? Of course the speed most likely won't be a huge difference, however if a lot of lines are to be shortened, then perhaps we could save seconds?
It doesn't really work like that. If you test Andy Huang's examples above, there would be no measurable difference in execution time.Call me crazy but perhaps if we use less lines of text, that could effectively increase fasting loading on a browser? Of course the speed most likely won't be a huge difference, however if a lot of lines are to be shortened, then perhaps we could save seconds?
We use essential cookies to make this site work, and optional cookies to enhance your experience.