Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.006 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'python.': 0.02; 'python,': 0.02; 'django.': 0.05; 'frontend': 0.07; 'rewrite': 0.09; 'subject:script': 0.09; "they've": 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; "wouldn't": 0.14; 'big,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'redo': 0.16; 'shop.': 0.16; 'sooner.': 0.16; 'subject:PHP': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'wed,': 0.18; 'app': 0.19; 'later': 0.20; 'cc:addr:python.org': 0.22; 'balancing': 0.24; 'certainly': 0.24; 'question': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'asked': 0.31; 'went': 0.31; 'getting': 0.31; 'that.': 0.31; 'app.': 0.31; 'complete,': 0.31; 'larry': 0.31; 'ok.': 0.31; 'probably': 0.32; 'another': 0.32; 'everyone': 0.33; 'could': 0.34; 'subject: (': 0.35; 'subject:with': 0.35; 'knows': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'google': 0.35; 'there': 0.35; 'bought': 0.36; 'should': 0.36; 'effort': 0.37; 'wrong': 0.37; 'project': 0.37; 'performance': 0.37; 'manager': 0.38; 'nov': 0.38; 'that,': 0.38; '12,': 0.39; 'skip:p 20': 0.39; 'days': 0.60; 'eventually': 0.60; 'impact': 0.61; 'tag': 0.61; 'subject:skip:C 10': 0.61; 'new': 0.61; 'took': 0.61; 'back': 0.62; '100%': 0.77; 'gain': 0.79; 'ethan': 0.84; 'furman': 0.84; 'proposal.': 0.84; 'technically': 0.84; 'viable': 0.84; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=hznrNGg6/tYP8uYiEjDNfrsST7Mhb29FZf0C7SNXAqk=; b=oCB7FidvAJngBi4/qtGTuHeTmPmlGDqWI1y7Zyf9LbSvx30CEc1dVsTdZ63HEiihyb rDuuSIygz85uQVY47iAsFJ1I8Dk6dGMtbAjhg0U1544/GtEUxz8d9lpBzcdQ/qjukrOk 2+odDfwqDzr4MMAKvOqX6RGPCuLYtlfcXFpIIUFDcE7Do+n5RE6gQmLiCNFqBoh/H26w 5paRLISG6u35E3kUsrtFT6tDOck9+Ii71ovl/Sg+/fo1E2hZr16CWjbGpmn0C5vIw8G4 vRjIvLkBNXO6V3uBc78lQjA7YCPyX0Q0orK237gxaNWh3qYmn+hSKkWbT25xmAs7Pwd5 FL7w== MIME-Version: 1.0 X-Received: by 10.50.128.35 with SMTP id nl3mr35755927igb.34.1415743016291; Tue, 11 Nov 2014 13:56:56 -0800 (PST) In-Reply-To: <54624D92.4000404@stoneleaf.us> References: <54624D92.4000404@stoneleaf.us> Date: Wed, 12 Nov 2014 08:56:56 +1100 Subject: Re: Communicating with a PHP script (and pretending I'm a browser) From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 30 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1415743024 news.xs4all.nl 2882 [2001:888:2000:d::a6]:59824 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:80570 On Wed, Nov 12, 2014 at 4:55 AM, Ethan Furman wrote: > On 11/11/2014 09:30 AM, Larry Martell wrote: >> >> >> They are technically savvy. They are a 100% PHP shop. They have a big, >> complicated app that they've been working on for 10 years. No one >> there knows python or django. They want to put some new frontends on >> their app. I was bought in for another project (involving Google Tag >> Manager and Google Analytics), which I completed. Then they asked me >> about this project. I told them they should redo their app in Flask or >> Django. It took some cajoling, but they eventually said OK. But then a >> few days later they said before I went off and reimplemented >> everything in python, could I just build the new frontend and call the >> existing PHP code. This would enable them to get the new frontends out >> to their clients sooner, and then I could go back and port the PHP to >> python. I don't see what is so wrong with that. > > > Sounds like an excellent game plan to me. :) I wouldn't go so far as "excellent", but certainly it's not nonsensical. It's just a question of balancing the cost of the hybridization (development effort that, once the Python rewrite is complete, will be discarded) against the time gain of getting *something* sooner. Also, this will probably have a significant impact on performance/throughput, so everyone needs to be aware that benchmarking Python by looking at the new app's performance would be horribly unfair. But this is a viable proposal. ChrisA