Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:48294 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 66224 invoked from network); 14 May 2010 14:41:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 May 2010 14:41:40 -0000 Authentication-Results: pb1.pair.com smtp.mail=mathiasgrimm@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=mathiasgrimm@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.83.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: mathiasgrimm@gmail.com X-Host-Fingerprint: 74.125.83.42 mail-gw0-f42.google.com Received: from [74.125.83.42] ([74.125.83.42:45625] helo=mail-gw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DD/A9-44964-3216DEB4 for ; Fri, 14 May 2010 10:41:40 -0400 Received: by gwb1 with SMTP id 1so364620gwb.29 for ; Fri, 14 May 2010 07:41:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=RkV7FuIF599gMn1kcgaAoWXBwzXetscLTvj4Vz4YHBI=; b=wEOEe0qhWu74x2tUUT+qeX/7DLFwdVoUyO7MjVnZjwUrl76IVndk3A9yLa87ADq1ah 6ayauK+5o+xt1AN/sI9lsQ8e6mEjWAtZFBmjf1OkK8gyBZ/Vcoct6fWbS4MUgO73mYz+ Uqh+BO4uEorvEB0Qq1WvC9giKj5omj5vCuZxs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=eNoN3Iq4SLSO0R2s+6+7k2ed+SrsjNeeA54jNh2lk3iv0ws+qx2AB5xLWbPoydI25h LNh6cA/Yf1rYy6sJEcxbqQ2f9Gyd/AG/+zy/x5FcGj00wOOGRFrIUFkeilUh9VFw6Qwx jPSvPxAjqT5puUv+mfgmmexYpdpvMs5UVh6x4= MIME-Version: 1.0 Received: by 10.101.29.16 with SMTP id g16mr1362831anj.245.1273848096009; Fri, 14 May 2010 07:41:36 -0700 (PDT) Received: by 10.100.137.18 with HTTP; Fri, 14 May 2010 07:41:35 -0700 (PDT) In-Reply-To: <1273846929.4175.16.camel@guybrush> References: <1273841634.4175.9.camel@guybrush> <1273846929.4175.16.camel@guybrush> Date: Fri, 14 May 2010 11:41:35 -0300 Message-ID: To: =?ISO-8859-1?Q?Johannes_Schl=FCter?= Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary=001636b2b12b42c08f04868edfc5 Subject: Re: [PHP-DEV] Sugest From: mathiasgrimm@gmail.com (Mathias Grimm) --001636b2b12b42c08f04868edfc5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable > > > 2010/5/14 Johannes Schl=FCter > > > > > require > > > ( > > > 'utila.php', > > > 'utilb.php', > > > 'utilc.php', > > > ) > > > > > > What's te benefit, other than saving a few chars on the cost > > of being > > more explicit. I don't see any benefit. > > > > > > make php more productive is always good. > Less characters doesn't make anything more productive. Saving the few > characters might save a second while typing, but the additional keyword > makes ready cleaner. A line of code is read way more often than typed. > > > define ( 'a'=3D>1 'b'=3D>2 'c'=3D>3 ) its cleaner to me. like C ENUM. enum DAY /* Defines an enumeration type */ { saturday, /* Names day and declares a */ sunday =3D 0, /* variable named workday with */ monday, /* that type */ tuesday, wednesday, /* wednesday is associated with 3 */ thursday, friday } workday; it is cleaner for everyone. maybe the enum type could even be created for this. > > there are others cases where error is imprecise > > > > > > 1. if($a=3D=3D$b){ > > 2. > > 3. if($c=3D=3D$d){...} > > > > > > the error will be raised at line 3 without a precise messagem. this is > > a trivial code and have imprecise message error. > > Yes. So we should make it worse since it isn't perfect in one place? > there are fixes to be the error line be precise. > > > utila.inc will be include utila.inc.php, > > utila.class will be include util.class..php > > > > > > if you use utila.class without php in your project, its is a security > > problem. > > That's wrong. > > > if string dont finish with .php, .php will be included, > > That breaks tons of code. and just makes life harder. > > > ok, maybe its not the best ideia. > > forget IDE. think in a simple text editor without any resources... > > php is php, IDE is IDE. > > If you talk about being productive you use tools which make you > productive. > > im talking about more productive. evoltion of produtivity > > few character less can be good. > > > > > > se one php example: > > HTTP_POST_VARS =3D> _POST > > > > > > it always good write less and do more. > > So we should rename all functions,too? mysql_query() is long, mq() > should work well? > > no, isnt a rename.. its a new constructor of php. mq is ambiguos, but require(..,..,..),define(..,..,..) its cleaner, not a rename. > > the main php ideia is to write less and do more,or we would be still > > writing pages in ANSI C or assembly > > no. That's Perl, and Perl is known as unreadable write-only language. > > johannes > > require(...,..,..),define(...,...) dont make php harder to read and make easy to write. --=20 Att. Mathias Grimm http://mathiasgrimm.com.br http://phpempregos.com.br --001636b2b12b42c08f04868edfc5--