Re: [PHP] tedd"s Friday Post ($ per line)

Re: [PHP] tedd"s Friday Post ($ per line)

am 07.10.2010 19:50:53 von Ashley Sheridan

------=_Part_1_1286473853120
Content-Type: text/plain;
charset=utf-8
Content-Transfer-Encoding: base64
Content-Disposition: inline

U3VyZWx5IGl0IHdvdWxkIGhhdmUgYmVlbiBhIGJpdCBtb3JlIHNlbnNpYmxl IHRvIHdvcmsgb3V0
IHRoZSB0aW1lIHRoZSBwcm9ncmFtbWVyIGhhZCBzcGVudCBvbiB0aGUgcHJv amVjdCBhbmQgdGhl
biBjYWxjdWxhdGUgaXQgYXMgYSBwZXJjZW50YWdlIG9mIHRoZSB0b3RhbCB0 aW1lIHRoYXQgcHJv
Z3JhbW1lciB3b3VsZCBzcGVuZCBvbiBpdCB0byBjb21wbGV0ZSBpdCAod2hp Y2ggbWlnaHQgbm90
IGJlIHRoZSB3aG9sZSBkdXJhdGlvbiBvZiB0aGUgcHJvamVjdCkKCkFsc28s IGNvdW50aW5nIGNv
ZGUgbGluZXMgc2VlbXMgdW5mYWlyLiBJIGtub3cgaXQgdXNlZCB0byBiZSB0 aGlzIHdheSwgYnV0
IGl0cyBhIGJpdCBsaWtlIHBheWluZyBmaXJlbWVuIGJhc2VkIG9uIHRoZSBu dW1iZXIgb2YgZmly
ZXMgdGhleSBwdXQgb3V0OyBkb24ndCBiZSBzdXJwcmlzZWQgaWYgYXJzb24g ZmlndXJlcyBnbyB1
cCEKCkkgd291bGQgZ3Vlc3MgdGhvdWdoIHRoYXQgdGhpcyBmZWxsb3cgbGlr ZWx5IGhhZCB0byBw
YXkgc29tZSBvZiB0aGF0IGluaXRpYWwgb3V0bGF5IG9mIGNhc2ggYmFjayB0 aG91Z2gsIGFuZCB3
b3VsZCBmdXJ0aGVyIGFzc3VtZSB0aGUgdG90YWwgcHJpY2UgYXR0cmlidXRl ZCB0byBlYWNoIGxp
bmUgd2FzIG5vIG1vcmUgdGhhbiAzIG9yIDQgY2VudHMgKGRhbWIgRW5nbGl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phbmQgdGhlbiBhZ3JlZWQgdG8gYSBzcGVjaWZpYyBkb2xs YXIgYW1vdW50IHRv
IGVhY2ggbGluZS4gSW4gdGhpcyAKY2FzZSwgdGhlIHByb2dyYW1tZXIgaGFk IHdyaXR0ZW4gb3Zl
ciAyNSwwMDAgbGluZXMgb2YgY29kZS4gV2hhdCBkbyAKeW91IHRoaW5rIGhl IHdhcyBwYWlkPwoK
QW5kIHdpdGggYWxsIG9mIHRoYXQgc2FpZCwgd2hhdCBkb2xsYXIgYW1vdW50 IHdvdWxkIHlvdSBw
bGFjZSBvbiB5b3VyIAoibGluZSBvZiBjb2RlIj8KCkNoZWVycywKCnRlZGQK Ci0tIAotLS0tLS0t
Cmh0dHA6Ly9zcGVybGluZy5jb20vCgotLSAKUEhQIEdlbmVyYWwgTWFpbGlu ZyBMaXN0IChodHRw
Oi8vd3d3LnBocC5uZXQvKQpUbyB1bnN1YnNjcmliZSwgdmlzaXQ6IGh0dHA6 Ly93d3cucGhwLm5l
dC91bnN1Yi5waHAKCg==


------=_Part_1_1286473853120--

Re: tedd"s Friday Post ($ per line)

am 07.10.2010 20:04:09 von Joshua Kehn

--Apple-Mail-87--1070196023
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
charset=us-ascii

In the case payment does come down to lines of code written I'm already =
covered.

if( count > 5)
{
/* Bracing Style
}

Regards,

-Josh
____________________________________
Joshua Kehn | Josh.Kehn@gmail.com
http://joshuakehn.com

On Oct 7, 2010, at 1:50 PM, ash@ashleysheridan.co.uk wrote:

> Surely it would have been a bit more sensible to work out the time the =
programmer had spent on the project and then calculate it as a =
percentage of the total time that programmer would spend on it to =
complete it (which might not be the whole duration of the project)
>=20
> Also, counting code lines seems unfair. I know it used to be this way, =
but its a bit like paying firemen based on the number of fires they put =
out; don't be surprised if arson figures go up!
>=20
> I would guess though that this fellow likely had to pay some of that =
initial outlay of cash back though, and would further assume the total =
price attributed to each line was no more than 3 or 4 cents (damb =
English androids don't have the cent character)
>=20
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
>=20
> ----- Reply message -----
> From: "tedd"
> Date: Thu, Oct 7, 2010 18:20
> Subject: [PHP] tedd's Friday Post ($ per line)
> To:
>=20
> Hi gang:
>=20
> Several years ago I was involved in a court case where a programmers=20=

> work was being evaluated to establish a dollar amount for the work=20
> done.
>=20
> The case was a dispute where the client wanted money back from a=20
> programmer for a discontinued project. The programmer simply wanted=20
> to be paid for the work he had done. This wasn't a case where anyone=20=

> had done anything wrong, but rather a circumstance where two parties=20=

> were trying to figure out who was due what.
>=20
> You see, the original client had been taken over by another company=20
> who put a halt to the project the programmer was working on. The new=20=

> company claimed that because the project wasn't finished, then the=20
> programmer should pay back all the money he was paid up-front to=20
> start the project. However, while the project had not been finished,=20=

> the programmer had indeed worked on the project for several months.
>=20
> The programmer stated he wanted to paid his hourly rate. But the new=20=

> client stated that the up-front money paid had been based upon a bid=20=

> and not an hourly rate. So, they were at odds as to what to do.
>=20
> The solution in this case was to place a dollar amount on the actual=20=

> "lines of code" the programmer wrote. In other words, they took all=20
> of programmers code and actually counted the lines of code he wrote=20
> and then agreed to a specific dollar amount to each line. In this=20
> case, the programmer had written over 25,000 lines of code. What do=20
> you think he was paid?
>=20
> And with all of that said, what dollar amount would you place on your=20=

> "line of code"?
>=20
> Cheers,
>=20
> tedd
>=20
> --=20
> -------
> http://sperling.com/
>=20
> --=20
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>=20


--Apple-Mail-87--1070196023--

Re: tedd"s Friday Post ($ per line)

am 07.10.2010 20:09:58 von daniel.brown

On Thu, Oct 7, 2010 at 14:04, Joshua Kehn wrote:
> In the case payment does come down to lines of code written I'm already c=
overed.
>
> if( count > 5)
> {
> =A0 =A0/* Bracing Style
> }

PHP Notice: Use of undefined constant count - assumed 'count' on line =
1
PHP Warning: Unterminated comment starting line 3 on line 3
PHP Parse error: syntax error, unexpected $end on line 4

--=20

Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting
(866-) 725-4321
http://www.parasane.net/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: tedd"s Friday Post ($ per line)

am 07.10.2010 20:15:13 von Joshua Kehn

I guess that's what I get for spending the last four weeks developing =
with JavaScript and Node.js.....

Regards,

-Josh
____________________________________
Joshua Kehn | Josh.Kehn@gmail.com
http://joshuakehn.com

On Oct 7, 2010, at 2:09 PM, Daniel P. Brown wrote:

> On Thu, Oct 7, 2010 at 14:04, Joshua Kehn wrote:
>> In the case payment does come down to lines of code written I'm =
already covered.
>>=20
>> if( count > 5)
>> {
>> /* Bracing Style
>> }
>=20
> PHP Notice: Use of undefined constant count - assumed 'count' on =
line 1
> PHP Warning: Unterminated comment starting line 3 on line 3
> PHP Parse error: syntax error, unexpected $end on line 4
>=20
> --=20
>
> Dedicated Servers, Cloud and Cloud Hybrid Solutions, VPS, Hosting
> (866-) 725-4321
> http://www.parasane.net/


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: tedd"s Friday Post ($ per line)

am 07.10.2010 21:04:06 von Robert Cummings

On 10-10-07 02:04 PM, Joshua Kehn wrote:
> In the case payment does come down to lines of code written I'm already covered.
>
> if( count> 5)
> {
> /* Bracing Style
> }

I hope your $count var is being incremented properly under this model:


function increment( &$count )
{
$count = 0;
if( $count == 0 )
{
$count = 1;
}
else
if( $count == 1 )
{
$count = 2;
}
else
if( $count == 2 )
{
$count = 3;
}
else
if( $count == 3 )
{
$count = 4;
}
else
if( $count == 4 )
{
$count = 5;
}
else
{
throw new Exception( 'Increment out of bounds' );
}
}

?>

Just think how much money could be made if you need to support large
datasets!!! CHAAAAAAAAAAAAAA-CHING!

Cheers,
Rob.
--
E-Mail Disclaimer: Information contained in this message and any
attached documents is considered confidential and legally protected.
This message is intended solely for the addressee(s). Disclosure,
copying, and distribution are prohibited unless authorized.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: tedd"s Friday Post ($ per line)

am 07.10.2010 22:51:35 von TedD

At 6:50 PM +0100 10/7/10, ash@ashleysheridan.co.uk wrote:
>Surely it would have been a bit more sensible to work out the time
>the programmer had spent on the project and then calculate it as a
>percentage of the total time that programmer would spend on it to
>complete it (which might not be the whole duration of the project)
>
>Also, counting code lines seems unfair. I know it used to be this
>way, but its a bit like paying firemen based on the number of fires
>they put out; don't be surprised if arson figures go up!
>
>I would guess though that this fellow likely had to pay some of that
>initial outlay of cash back though, and would further assume the
>total price attributed to each line was no more than 3 or 4 cents
>(damb English androids don't have the cent character)
>
>Thanks,
>Ash

As I said, this was a case that I worked on several years ago (20+).
I was not the programmer, but rather a consultant for an attorney.

The programmer wanted to have his payment based upon the hours he put
it, but the client wanted proof of the programmers effort. Both were
understandable positions.

Considering that the programmers effort did not work, and there were
no time clocks showing the actual hours the programmer worked, the
solution centered on an evaluation of the end-product. That
evaluation reduced to the amount of code written, which boiled down
to lines of code.

Granted, as Rob said, some lines are worth more than others, but
overall a case was made to pay a certain amount per line.

Now, back to the question at hand -- what price would you sell a line
of your code for?

Cheers,

tedd


--
-------
http://sperling.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: tedd"s Friday Post ($ per line)

am 07.10.2010 22:53:30 von Phpster

On Thu, Oct 7, 2010 at 4:51 PM, tedd wrote:
> At 6:50 PM +0100 10/7/10, ash@ashleysheridan.co.uk wrote:
>>
>> Surely it would have been a bit more sensible to work out the time the
>> programmer had spent on the project and then calculate it as a percentage of
>> the total time that programmer would spend on it to complete it (which might
>> not be the whole duration of the project)
>>
>> Also, counting code lines seems unfair. I know it used to be this way, but
>> its a bit like paying firemen based on the number of fires they put out;
>> don't be surprised if arson figures go up!
>>
>> I would guess though that this fellow likely had to pay some of that
>> initial outlay of cash back though, and would further assume the total price
>> attributed to each line was no more than 3 or 4 cents (damb English androids
>> don't have the cent character)
>>
>> Thanks,
>> Ash
>
> As I said, this was a case that I worked on several years ago (20+). I was
> not the programmer, but rather a consultant for an attorney.
>
> The programmer wanted to have his payment based upon the hours he put it,
> but the client wanted proof of the programmers effort. Both were
> understandable positions.
>
> Considering that the programmers effort did not work, and there were no time
> clocks showing the actual hours the programmer worked, the solution centered
> on an evaluation of the end-product. That evaluation reduced to the amount
> of code written, which boiled down to lines of code.
>
> Granted, as Rob said, some lines are worth more than others, but overall a
> case was made to pay a certain amount per line.
>
> Now, back to the question at hand -- what price would you sell a line of
> your code for?
>
> Cheers,
>
> tedd
>
>
> --
> -------
> http://sperling.com/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

One Beelyon Dollars

--

Bastien

Cat, the other other white meat

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: tedd"s Friday Post ($ per line)

am 07.10.2010 22:53:43 von Joshua Kehn

$100 a line.

If you want more then one line let's meet and go over the project. I =
might give a significant discount.

Regards,

-Josh
____________________________________
Joshua Kehn | Josh.Kehn@gmail.com
http://joshuakehn.com

On Oct 7, 2010, at 4:51 PM, tedd wrote:

> At 6:50 PM +0100 10/7/10, ash@ashleysheridan.co.uk wrote:
>> Surely it would have been a bit more sensible to work out the time =
the programmer had spent on the project and then calculate it as a =
percentage of the total time that programmer would spend on it to =
complete it (which might not be the whole duration of the project)
>>=20
>> Also, counting code lines seems unfair. I know it used to be this =
way, but its a bit like paying firemen based on the number of fires they =
put out; don't be surprised if arson figures go up!
>>=20
>> I would guess though that this fellow likely had to pay some of that =
initial outlay of cash back though, and would further assume the total =
price attributed to each line was no more than 3 or 4 cents (damb =
English androids don't have the cent character)
>>=20
>> Thanks,
>> Ash
>=20
> As I said, this was a case that I worked on several years ago (20+). I =
was not the programmer, but rather a consultant for an attorney.
>=20
> The programmer wanted to have his payment based upon the hours he put =
it, but the client wanted proof of the programmers effort. Both were =
understandable positions.
>=20
> Considering that the programmers effort did not work, and there were =
no time clocks showing the actual hours the programmer worked, the =
solution centered on an evaluation of the end-product. That evaluation =
reduced to the amount of code written, which boiled down to lines of =
code.
>=20
> Granted, as Rob said, some lines are worth more than others, but =
overall a case was made to pay a certain amount per line.
>=20
> Now, back to the question at hand -- what price would you sell a line =
of your code for?
>=20
> Cheers,
>=20
> tedd
>=20
>=20
> --=20
> -------
> http://sperling.com/
>=20
> --=20
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>=20


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: tedd"s Friday Post ($ per line)

am 08.10.2010 17:30:44 von Nathan Rixham

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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: tedd"s Friday Post ($ per line)

am 08.10.2010 17:45:49 von Nathan Rixham

Nathan Rixham wrote:
> tedd wrote:
>> Now, back to the question at hand -- what price would you sell a line
>> of your code for?

Just realised I responded to the wrong question - the answer was how I'd
approach the original question "What do you think he was paid?"

For myself, I wouldn't place a price on a single line of code, you can
have one for free :) if you want me to do 25,000 lines of code then
it'll be circa £1 GBP per line, seeing as you aren't considering any of
the other factors. Unless it's open source as I cc-zero all my open
source / community stuff.

> 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


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php