php-general Digest 10 Oct 2010 00:00:21 -0000 Issue 6981
Topics (messages 308605 through 308615):
code documentation
308605 by: Tommy Pham
308606 by: Laruence
Re: zip and mac safari
308607 by: Martin Reuter
308608 by: TR Shaw
308615 by: Martin Reuter
Re: tedd's Friday Post ($ per line)
308609 by: tedd
308611 by: Nathan Rixham
Re: What other languages do you use?
308610 by: tedd
308612 by: Nathan Rixham
308613 by: Daniel P. Brown
308614 by: tedd
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-gene...@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
Hi everyone,
It's been a couple of years since I started a PHP project. Are there any
other document formats other than phpDocumentor? Is phpDocumentor still the
preferred format?
TIA,
Tommy
--- End Message ---
--- Begin Message ---
Hi:
yep , I thinks so.
On 10/09/2010 18:22, Tommy Pham wrote:
Hi everyone,
It's been a couple of years since I started a PHP project. Are there any
other document formats other than phpDocumentor? Is phpDocumentor still the
preferred format?
TIA,
Tommy
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
.
--
Laruence
Senior PHP consultant
http://www.laruence.com
--- End Message ---
--- Begin Message ---
It works in other browsers and it works when storing it and unzipping in a
terminal on OSX. I think it is probably a safari unzipped bug (not sure what
tool safari chooses to automatically unzipped without asking).
the weird thing is that some people report it works, so maybe they don't store
directories or the use a different header for sending the file?
If someone has a working solution let me know.
Best Martin
On Oct 8, 2010, at 17:18, TR Shaw <ts...@oitc.com> wrote:
> I don't have any problem in this regard.
>
> On Oct 8, 2010, at 11:09 AM, Nathan Rixham wrote:
>
>> M. Reuter wrote:
>>> Hi,
>>> does anyone know how to use a php script to zip a folder (with a
>>> subfolder) so that safari can open it and not decompresses forever?
>>
>> if it works in other browsers, and not in safari, then it's either a big in
>> safari, in which case report it with an offending zip file - or it's a big
>> in PHP / your zipping process which is handled gracefully by other browsers
>> but not by safari, in which case report it too.
>>
>> Best,
>>
>> Nathan
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
Safari has a pref not to auto open files (which IMHO is a pref that should be
set). Perhaps this is causing your issues?
Tom
On Oct 9, 2010, at 10:18 AM, Martin Reuter wrote:
> It works in other browsers and it works when storing it and unzipping in a
> terminal on OSX. I think it is probably a safari unzipped bug (not sure what
> tool safari chooses to automatically unzipped without asking).
> the weird thing is that some people report it works, so maybe they don't
> store directories or the use a different header for sending the file?
> If someone has a working solution let me know.
>
> Best Martin
>
> On Oct 8, 2010, at 17:18, TR Shaw <ts...@oitc.com> wrote:
>
>> I don't have any problem in this regard.
>>
>> On Oct 8, 2010, at 11:09 AM, Nathan Rixham wrote:
>>
>>> M. Reuter wrote:
>>>> Hi,
>>>> does anyone know how to use a php script to zip a folder (with a
>>>> subfolder) so that safari can open it and not decompresses forever?
>>>
>>> if it works in other browsers, and not in safari, then it's either a big in
>>> safari, in which case report it with an offending zip file - or it's a big
>>> in PHP / your zipping process which is handled gracefully by other browsers
>>> but not by safari, in which case report it too.
>>>
>>> Best,
>>>
>>> Nathan
>>>
>>> --
>>> PHP General Mailing List (http://www.php.net/)
>>> To unsubscribe, visit: http://www.php.net/unsub.php
>>>
>>
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
Yes, certainly that is causing the problem. As I said it is only the
decompress tool in safari that has problems. But the problem is that
most Mac users who download stuff from my page will not try again, if
the build in Safari tool does not work directly.
By now I tried:
default zip class
another zip class
zipping the directory using system call
Nothing has worked so far. Next I'll try tar.gz but am pessimistic.
Martin.
On Sat, 2010-10-09 at 10:59 -0400, TR Shaw wrote:
> Safari has a pref not to auto open files (which IMHO is a pref that should be
> set). Perhaps this is causing your issues?
>
> Tom
>
> On Oct 9, 2010, at 10:18 AM, Martin Reuter wrote:
>
> > It works in other browsers and it works when storing it and unzipping in a
> > terminal on OSX. I think it is probably a safari unzipped bug (not sure
> > what tool safari chooses to automatically unzipped without asking).
> > the weird thing is that some people report it works, so maybe they don't
> > store directories or the use a different header for sending the file?
> > If someone has a working solution let me know.
> >
> > Best Martin
> >
> > On Oct 8, 2010, at 17:18, TR Shaw <ts...@oitc.com> wrote:
> >
> >> I don't have any problem in this regard.
> >>
> >> On Oct 8, 2010, at 11:09 AM, Nathan Rixham wrote:
> >>
> >>> M. Reuter wrote:
> >>>> Hi,
> >>>> does anyone know how to use a php script to zip a folder (with a
> >>>> subfolder) so that safari can open it and not decompresses forever?
> >>>
> >>> if it works in other browsers, and not in safari, then it's either a big
> >>> in safari, in which case report it with an offending zip file - or it's a
> >>> big in PHP / your zipping process which is handled gracefully by other
> >>> browsers but not by safari, in which case report it too.
> >>>
> >>> Best,
> >>>
> >>> Nathan
> >>>
> >>> --
> >>> PHP General Mailing List (http://www.php.net/)
> >>> To unsubscribe, visit: http://www.php.net/unsub.php
> >>>
> >>
> >>
> >> --
> >> PHP General Mailing List (http://www.php.net/)
> >> To unsubscribe, visit: http://www.php.net/unsub.php
> >>
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
--- End Message ---
--- Begin Message ---
At 4:30 PM +0100 10/8/10, Nathan Rixham wrote:
tedd wrote:
Now, back to the question at hand -- what price would you sell a
line of your code for?
Interesting case and question Tedd! Quite sure we all realise the
answer is not black and white but various shades of grey, and I
wouldn't fancy doing this for real - however, given the assumption
that it was technically solid code "average", and assuming it was a
functional approach (as in there wasn't chunks of domain schema
classes with nothing but getters and setters around / boiler plate
junk), then:
35-40 cents per line
The approach I've taken to working it out is to try and average out
lines of code produced per 8 hour working day, allowing time for
research, decision making, minor code reduction and refactoring,
then adding a small offset for any time spend on documentation which
would show further understanding and confidence in the code + make
it more usable. Whitespace and a coding styles which produce more
lines but the same amount of code not included. I've also made a
small adjustment for the 'several years ago' all though I'm assuming
this to be early 2000s and not the 1970s ;)
Anywhere near?
ps: tedd, please cc me in to the final answer as I won't have time
to check the list for a while, and I'm quite interested in this one
- kudos to you if you managed to do it and get both parties happy
with the result though!
Best,
Nathan
Nathan et al:
I rechecked my notes and this case took place circa 1996-7. The case
was settled out of court.
The final agreement (partly negotiated by me) was $1.00 per line.
The programmer had generated around 25,000 lines of code and the new
client agreed that the programmer could keep $25,000 of the up-front
money. It seemed like a clean and "easy to understand" arrangement.
Since that time, I have often looked to my own code to see how that
figure holds up. In my most recent work, I was paid around $0.50 per
line of code.
Keep in mind that this is for finished and working code and *not* all
the code I wrote to investigate/test/solve the various problems. My
typical method of problem solving is to write small stand-alone
solutions and then move them to the larger project. It is the code in
the larger project that's considered in the cost determination.
So for me, about $0.50 per line of code seems to hold up for projects
that exceed 100 hours. For projects that are less, the cost per line
increases. For example, I had one project where I wrote three lines
of code and was paid $200. However, it took me several hours to
figure out what to do and where to put the line.
In any event, this is where one statement per line (including braces) pays off.
Cheers,
tedd
--
-------
http://sperling.com/
--- End Message ---
--- Begin Message ---
tedd wrote:
At 4:30 PM +0100 10/8/10, Nathan Rixham wrote:
tedd wrote:
Now, back to the question at hand -- what price would you sell a line
of your code for?
Interesting case and question Tedd! Quite sure we all realise the
answer is not black and white but various shades of grey, and I
wouldn't fancy doing this for real - however, given the assumption
that it was technically solid code "average", and assuming it was a
functional approach (as in there wasn't chunks of domain schema
classes with nothing but getters and setters around / boiler plate
junk), then:
35-40 cents per line
The approach I've taken to working it out is to try and average out
lines of code produced per 8 hour working day, allowing time for
research, decision making, minor code reduction and refactoring, then
adding a small offset for any time spend on documentation which would
show further understanding and confidence in the code + make it more
usable. Whitespace and a coding styles which produce more lines but
the same amount of code not included. I've also made a small
adjustment for the 'several years ago' all though I'm assuming this to
be early 2000s and not the 1970s ;)
Anywhere near?
ps: tedd, please cc me in to the final answer as I won't have time to
check the list for a while, and I'm quite interested in this one -
kudos to you if you managed to do it and get both parties happy with
the result though!
Best,
Nathan
Nathan et al:
I rechecked my notes and this case took place circa 1996-7. The case was
settled out of court.
The final agreement (partly negotiated by me) was $1.00 per line.
The programmer had generated around 25,000 lines of code and the new
client agreed that the programmer could keep $25,000 of the up-front
money. It seemed like a clean and "easy to understand" arrangement.
I'm actually glad to here of that outcome - in many ways I'd gone with
bottom price for general web development, whereas I stated it would be
£1 per line for my own code - that said I'd be reluctant to take a per
line pricing model ;)
Good question Tedd, I enjoyed this one - particularly as it made one
consider the various elements that go in to producing code other than
just lines produced.
Cheers,
Nathan
Since that time, I have often looked to my own code to see how that
figure holds up. In my most recent work, I was paid around $0.50 per
line of code.
Keep in mind that this is for finished and working code and *not* all
the code I wrote to investigate/test/solve the various problems. My
typical method of problem solving is to write small stand-alone
solutions and then move them to the larger project. It is the code in
the larger project that's considered in the cost determination.
So for me, about $0.50 per line of code seems to hold up for projects
that exceed 100 hours. For projects that are less, the cost per line
increases. For example, I had one project where I wrote three lines of
code and was paid $200. However, it took me several hours to figure out
what to do and where to put the line.
In any event, this is where one statement per line (including braces)
pays off.
Cheers,
tedd
--- End Message ---
--- Begin Message ---
At 6:30 PM +0100 10/8/10, Nathan Rixham wrote:
As per the subject, not what other languages have you used, but what
other languages do you currently use?
I guess it may also be interesting to know if:
(1) there's any particular reason for you using a different language
(other than work/day-job/client requires it)
(2) about to jump in to another language
Best,
Nathan
Nathan:
I am assuming, perhaps wrongly, you are asking about programming
languages -- is that correct?
Cheers,
tedd
--
-------
http://sperling.com/
--- End Message ---
--- Begin Message ---
tedd wrote:
At 6:30 PM +0100 10/8/10, Nathan Rixham wrote:
As per the subject, not what other languages have you used, but what
other languages do you currently use?
I guess it may also be interesting to know if:
(1) there's any particular reason for you using a different language
(other than work/day-job/client requires it)
(2) about to jump in to another language
Best,
Nathan
Nathan:
I am assuming, perhaps wrongly, you are asking about programming
languages -- is that correct?
yup that's correct - you can thank Dan Brown for setting everybody off
speaking in foreign tongues :p
--- End Message ---
--- Begin Message ---
On Sat, Oct 9, 2010 at 11:21, Nathan Rixham <nrix...@gmail.com> wrote:
>
> yup that's correct - you can thank Dan Brown for setting everybody off
> speaking in foreign tongues :p
No worries, karma bit my ass back. I'm about to catch a plane
cross-country to San Diego in a bit, and last night I came down with a
cold, so I'm miserable.... guess I should feel worse for those around
me though. Watch for me on the news to see if there are any reports
of someone sneezed four-hundred-eighty-one times in a row at high
altitudes. ;-P
--
</Daniel P. Brown>
Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting
(866-) 725-4321
http://www.parasane.net/
--- End Message ---
--- Begin Message ---
At 4:21 PM +0100 10/9/10, Nathan Rixham wrote:
tedd wrote:
At 6:30 PM +0100 10/8/10, Nathan Rixham wrote:
As per the subject, not what other languages have you used, but
what other languages do you currently use?
I guess it may also be interesting to know if:
(1) there's any particular reason for you using a different
language (other than work/day-job/client requires it)
(2) about to jump in to another language
I am assuming, perhaps wrongly, you are asking about programming
languages -- is that correct?
yup that's correct
Nathan:
Without addressing the definition of a "programming language", I use daily:
php, mysql, javascript*, css, and html.
* includes all aspects of ajax, dom scripting, and progressive
enhancement -- all of which could be construed as variations of
javascript.
As for me currently programming in other languages, I also create
applications for the Mac and iPad using Objective-C.
Cheers,
tedd
--
-------
http://sperling.com/
--- End Message ---