Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:59891 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 40175 invoked from network); 13 Apr 2012 17:46:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Apr 2012 17:46:04 -0000 Authentication-Results: pb1.pair.com smtp.mail=kris.craig@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=kris.craig@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.182 as permitted sender) X-PHP-List-Original-Sender: kris.craig@gmail.com X-Host-Fingerprint: 209.85.212.182 mail-wi0-f182.google.com Received: from [209.85.212.182] ([209.85.212.182:50222] helo=mail-wi0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 08/E3-35770-B56688F4 for ; Fri, 13 Apr 2012 13:46:03 -0400 Received: by wibhr14 with SMTP id hr14so2894191wib.11 for ; Fri, 13 Apr 2012 10:45:59 -0700 (PDT) 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:to :cc:content-type; bh=de+dxy8NYRom4qHM7GvsouVWy8hXkkrXLBDRrA4aj44=; b=Dy2+fWs3rKcxAsLCMQB04qEPb81sWUBr4RhAfIuEuiZ3WS0dakNn/ORphh/dKJ6JhH jM4OBj7FLGCgTSHWFMGX1SKSW61RrtNmQTdKhFbqq+L3ZgqPDopjO6bRz/bmAeVGHmiP KaaTSUo/+EqfeHAaR7i/EVPZAu54fql8xtMi3ZliK0a/J8atbFT6DS6OAkuevDnryvmU AOv2Z1EOtBvV6Nxkud/uqiVfzRse03zYt3cXB/oz0bkC8GgsrgfDEIecSjNcvpyFuxot 4zMLI47Xwng6C8RB8lyVFg97f/Web1cE8OMCt9SR/q0EmzcEJkBqaJWILwjGG7UhOQ/w 2erQ== MIME-Version: 1.0 Received: by 10.216.139.12 with SMTP id b12mr1581088wej.4.1334339159287; Fri, 13 Apr 2012 10:45:59 -0700 (PDT) Received: by 10.223.79.67 with HTTP; Fri, 13 Apr 2012 10:45:58 -0700 (PDT) In-Reply-To: References: <4F876943.8030105@gmail.com> <4F877777.8050806@gmail.com> <4F8782CC.8030205@gmail.com> Date: Fri, 13 Apr 2012 10:45:58 -0700 Message-ID: To: Arvids Godjuks Cc: internals@lists.php.net, John LeSueur Content-Type: multipart/alternative; boundary=0016e6d6257499688104bd930bda Subject: Re: [PHP-DEV] [RFC] New .phpp File Type for Pure-Code PHP Scripts From: kris.craig@gmail.com (Kris Craig) --0016e6d6257499688104bd930bda Content-Type: text/plain; charset=ISO-8859-1 On Fri, Apr 13, 2012 at 1:00 AM, Arvids Godjuks wrote: > Kris. > > I can give you a real world example where that straight MVC with the. pphp > if not breaks, then definetly becomes an ugly mess. > I use Yii framework as my tool, it has some very nice tools for templating > like widgets. Widgets provide a container to put functionalit required by > multiple pages and it contains a controller like code and a template. It > can and most times will use models and other library stuff to do its work. > And all that code is loaded via an autoloader (only templates are loaded > localy in a controller method). > > As i see it, i will spend a lot of time figuring out if i need to make a > .php or a .pphp file. After a few days i will just say to my self "f*** > this sh**" and just stick with the .php. My coleague will just stick with > .php - he values his time and to him this will be just noise that he > ignores because it gives no real benifit, IDE's and editors will ajust in > time and reformatting a whole project is just a waste of time. Not to > mention frameworks will not follow for a long time because of the BC and > big WTF factor. > As I said, if that is the case, then you shouldn't be using a .phpp file. This new file type is NOT intended to replace .php, not even partially. Most of your work will likely still be done in .php scripts. This new .phpp type is for specialized instances when you know you won't be using raw HTML output. This happens a lot, but it may not happen in your application. If it doesn't, then don't worry about it. There's no "WTF factor" to it and there's DEFINITELY *no BC breakage, period!* If your application doesn't have a need for pure PHP code, then don't use it. I'm not sure why you think the mere existence of this file type will somehow magically break all your .php files. --0016e6d6257499688104bd930bda--