Re: Re: What font/size do you use for programming?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jul 10, 2008 at 2:43 PM, Philip Thompson <philthathril@xxxxxxxxx>
wrote:

> On Jul 10, 2008, at 9:53 AM, Jason Pruim wrote:
>
>  On Jul 10, 2008, at 10:44 AM, Colin Guthrie wrote:
>>
>>  Daniel Brown wrote:
>>>
>>>> On Thu, Jul 10, 2008 at 6:12 AM, Colin Guthrie <gmane@xxxxxxxxxxxxxx>
>>>> wrote:
>>>>
>>>>> tedd wrote:
>>>>>
>>>>>> Just out of curiosity, what font and size do you ppls use for your
>>>>>> programming?
>>>>>>
>>>>> I've got a lot of projects so I always use a really small font to save
>>>>> on
>>>>> disk space....
>>>>>
>>>>  That doesn't work, dummy!  You still have to save only half of
>>>> your files.  ;-P
>>>>
>>>
>>> Yeah you're right... well most of my lines are short so I'll try only
>>> saving the left hand side of each file and see if that helps save space :p
>>>
>>
>>
>> No wonder my files are so large... I have been saving them at 20 point
>> type... Easier to read from aways away :P
>>
>
> I think if you don't use indentation and unneeded spaces, you could save
> lots of space too...
>
> <?php
> function aFunction($a,$b)
> {
> if($a-$b<0){
> while($a+$b>0){
> if($c){
> $c++;
> }else{
> $c++;
> }
> }
> return 'negative';
> }else{
> return 'possitive';
> }
> }
> ?>
>
> I can't tell you how much HDD space I've saved doing this!! ;P
>
> ~Phil
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
You could probably save even more if you didn't use those unneeded returns
also:

<?php function
aFunction($a,$b){if($a-$b<0){while($a+$b>0){if($c){$c++;}else{$c++;}}return
'negative';}else{return 'possitive';}} ?>

I think that's still perfectly legible.

-- 
-Dan Joseph

www.canishosting.com - Plans start @ $1.99/month.

"Build a man a fire, and he will be warm for the rest of the day.
Light a man on fire, and will be warm for the rest of his life."

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux