Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:88948 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 41244 invoked from network); 26 Oct 2015 16:58:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Oct 2015 16:58:13 -0000 Authentication-Results: pb1.pair.com smtp.mail=julienpauli@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=julienpauli@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.212.175 as permitted sender) X-PHP-List-Original-Sender: julienpauli@gmail.com X-Host-Fingerprint: 209.85.212.175 mail-wi0-f175.google.com Received: from [209.85.212.175] ([209.85.212.175:35293] helo=mail-wi0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FD/01-34476-3AB5E265 for ; Mon, 26 Oct 2015 11:58:11 -0500 Received: by wicll6 with SMTP id ll6so123531303wic.0 for ; Mon, 26 Oct 2015 09:58:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=k53D1AhGugxAL3A6pCqIVDsaiGlDd/8sAbYGhC2FMRk=; b=kmuP+pQIdmK22QDNfYLhV4xI3bILK4tI4oOToDqYH3hduZHIxV1F+BivHIkuyTM4+I /S1axyQfk6nIkQmi6VtZJkOt2amN8squsNvpGEr4Fffokv3u1nVU2m/6TKuFAEBGjqw7 xw69BNVBQujuJGyNcvFfdx4pO398ACYhiH4vKF44OjhJD8b4AtmEqULEk4VPinfV9UvD WUok2xd+CYl6PKQFfe9X1CXhm1lYGohn/vwUF7nU4WxnuxSqDJMG5cMMynDyTrLlUpWM /5KoJwSzQBYTc0UPY1MVlChe+cjQECXeRwcNq9Ur14ZkLJmugaqOGxzYlqEE10zkSwV2 +w/w== X-Received: by 10.180.75.102 with SMTP id b6mr22564390wiw.76.1445878688762; Mon, 26 Oct 2015 09:58:08 -0700 (PDT) MIME-Version: 1.0 Sender: julienpauli@gmail.com Received: by 10.194.7.105 with HTTP; Mon, 26 Oct 2015 09:57:29 -0700 (PDT) In-Reply-To: References: Date: Mon, 26 Oct 2015 17:57:29 +0100 X-Google-Sender-Auth: _VyZZiHXnV1mfQoVAmg1oJ6huhc Message-ID: To: Benjamin Eberlei Cc: Frank Meier , PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Some words about the basic ideas of PHP From: jpauli@php.net (Julien Pauli) On Mon, Oct 26, 2015 at 12:30 PM, Benjamin Eberlei wrote: > On Mon, Oct 26, 2015 at 11:09 AM, Frank Meier wrote: > >> Hi to all of you, >> >> first I want to apologize for may bad English, >> >> .. . . >> >> >> 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. >> >> 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(). >> >> 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. >> > > This post is 0% constructive, but i have to reply nevertheless. > > PHP is a programming language, ADO.NET is a framework on top of C#/VB. If > you would use a *library* with PHP, such as Doctrine DBAL (which i have > helped build), then you have most of these functions. > > Please go over to https://packagist.org and look at all the libraries you > can use before complaining about missing functionality in PHP. So yes, as an answer, I would point the author with this statement as well : PHP is a web "low level" (somehow) programming language, on top of which you build libraries that ease and do the complex repetitive job for you. Nowadays, approaching 2016, many of such libraries exist, and many of them are of very high professional quality. Julien.Pauli