Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88941 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 12573 invoked from network); 26 Oct 2015 11:42:47 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Oct 2015 11:42:47 -0000 Authentication-Results: pb1.pair.com smtp.mail=info@phpgangsta.de; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=info@phpgangsta.de; sender-id=unknown Received-SPF: error (pb1.pair.com: domain phpgangsta.de from 84.200.8.31 cause and error) X-PHP-List-Original-Sender: info@phpgangsta.de X-Host-Fingerprint: 84.200.8.31 phpgangsta.de Received: from [84.200.8.31] ([84.200.8.31:41142] helo=michael01.phpgangsta.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3E/91-02627-5B11E265 for ; Mon, 26 Oct 2015 06:42:46 -0500 Received: from [10.0.118.101] (ip-88-153-154-113.hsi04.unitymediagroup.de [88.153.154.113]) by michael01.phpgangsta.de (Postfix) with ESMTPSA id 50B8348134A for ; Mon, 26 Oct 2015 12:42:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=phpgangsta.de; s=mail201210; t=1445859759; bh=Jc2n4THNQgCJGpqntOm9tEoPapBpq62SHA7ery/goqM=; h=Subject:To:References:From:Date:In-Reply-To; b=V9Xb5ssrxc+MPbH0XNss0h0+y6dbRoBvpWreViRARmy3uB6758seBG76u1b2XcGRG ieoFpCeTyu5K4jm+2fPR22BPdJqhrsROkqW5Y7uwx3DGHDnsPW7odHZOOEZbewJtLm sLbvfbns5nsCH2EAq+b7fN1OfK+0Az7CB3/yb0A4= To: internals@lists.php.net References: X-Enigmail-Draft-Status: N1110 Message-ID: <562E11CB.4000806@phpgangsta.de> Date: Mon, 26 Oct 2015 12:43:07 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------000601090405020102080502" Subject: Re: [PHP-DEV] Some words about the basic ideas of PHP From: info@phpgangsta.de (Michael Kliewe) --------------000601090405020102080502 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Hi Frank, On 26.10.2015 11:09, Frank Meier wrote: > Hi to all of you, > > first I want to apologize for may bad English, > No problem, it's good enough to understand you. > I write because I feel that that the way how you see your own product PHP > is totally wrong. I do not mean with it that the construction of the > language is wrong. > > Your basic aproach is wrong. > > PHP is a server side programming language. That means that the most work > what PHP have to do is to be the boss of the data servers and handle the > data. > > Create database or tables or records, edit, delete and read and write > them. Which database do you mean? MySQL, MSSQL, CouchDB, Redis.... > And where is your fantastic programming language so incredible lousy that > me, I am since 35 years a database programmer, just shake my head??? > > Exact in this operations!!! > > I know that it is for free and I can not tell you how much I value your > work on it, but all of you, WAKE UP!!!! > > You sent the handling of records from modern handling via recordsets back > to computer stone age. It is a torture to use PHP without tools (and they > are lousy too) for database operations. > > > I can give you a example: > > It is in PHP a lot of work to just read the next record in a table. > > With ADO is it just nextrecord(). With PDO it's $result = $sth->fetch(); http://php.net/manual/de/pdostatement.fetch.php I don't see that much of a difference... And PDO is built-in. > The PHP way is a insult to the modern world of programming. > > Maybe you should consider to write internal functions for the record > handling which do take all the sql waste of time away from the programmer > and create just short command words that the developer can use them. > > This would be a "small step for you but a huge leap for mankind!". > > And you would finally win the race in the language battle. > > I am sorry that I write it so harsh, but PHP is for me the definition of > server data handling and exact there you fail in a big way. > > All the programmers around the world reinvent every time the wheel new? > > Have this really to be? > > In my opinion should exist commands like: > recordnew(table) > recordread(id, table) > recordwrite(id, table) > recorddelete(id, table) > recordprev(currentrecord, table) > recordnext(currentrecord, table) > > This is the minimum what I expect from a program language in the year 2015. Maybe you should have a look at PDO: http://php.net/manual/de/book.pdo.php Or other database abstraction layers out there, there are plenty. Search at packagist.org for example. Just to name a few that I heard of, but don't use myself: Doctrine, Propel, RedBeanPHP > I am database programmer for international police organizations. > > Please keep my name confident. > You are writing to a public mailing list, what do you expect? Michael --------------000601090405020102080502--