SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    Non-Member
    Join Date
    Apr 2004
    Location
    Miami, FL, USA
    Posts
    448
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to Deal with a PHP Coder who Walks 75% through a project:

    Ever have a PHP coder walk on you 75% of the way through a project, then demand payment for the incomplete work they've done thus far?

    Here's a real response to such a situation that you can probably appreciate...

    Code:
    -----Original Message-----
    From: john [mailto:john@fake-email.com]
    Sent: Tuesday, March 29, 2011 2:28 PM
    To: Me
    Subject: Re: status
    
    Need to grab last week's check.
    
    Can meet you somewhere this week, or by mail is ok.
    
    
    -----Reply Message-----
    From: Me [mailto:me@fake-email.com] 
    Sent: Tuesday, March 29, 2011 3:03 PM
    To: 'john'
    Subject: RE: status
    
    class Company {
    	const OUTSTAINDING_PAYMENT= 1800;
    	public static function payHalf() {
    		return self::OUTSTAINDING_PAYMENT/2;
    	}
      	public static function pay($billedAmount) {
    		return $billedAmount;
    	}
    }
    
    class John {
    	public function __construct($agreeToTerms=true) {
    		if ($agreeToTerms) {
    			echo Company::payHalf();
    			if ($this->completeProject()) {
    				echo Company::payHalf();
    				echo Company::pay($this->billRemainder());
    			} else {
    				unset($this);
    			}
    		} else {
    			unset($this);
    		}
    	}
    	public function completeProject() {
    		return rand(0,1);
    	}
    	public function billRemainder() {
    		return rand(500,1000);
    	}
    }

  2. #2
    Non-Member
    Join Date
    Apr 2004
    Location
    Miami, FL, USA
    Posts
    448
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    By "walk" I meant "walk out", i.e. ditch you.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •