Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:67703 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78181 invoked from network); 13 Jun 2013 16:55:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Jun 2013 16:55:33 -0000 Authentication-Results: pb1.pair.com header.from=julienpauli@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=julienpauli@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.128.180 as permitted sender) X-PHP-List-Original-Sender: julienpauli@gmail.com X-Host-Fingerprint: 209.85.128.180 mail-ve0-f180.google.com Received: from [209.85.128.180] ([209.85.128.180:52182] helo=mail-ve0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BC/90-09386-489F9B15 for ; Thu, 13 Jun 2013 12:55:32 -0400 Received: by mail-ve0-f180.google.com with SMTP id pa12so7785308veb.25 for ; Thu, 13 Jun 2013 09:55:29 -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 :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=eV/Xub/OAB9rSnW2VGMSF/vuFA2YMnCUSAHaNTGSOXE=; b=KdKQNbX18qzBpHGM016fVJKDaif8PTDB7SFRyNde52yl5A6JIKm6whPZC5IF7s8HkP 5IxUKB/uJb2fzo6/jBNPnnrsvTjBnMM99YP02fQICkEsteyrUvCAqLy593J2r69N/R3y o77Kjjrmb47Ru0CmT+lEswoM8SEJ0aR3X9p3niS530WRcol/XqZ1Y35zbdtOveRwdD9f HBxf3bADU1sIMHuY+kbM7LEAoM/LZJcVkzr3yLO0f9tVysR4jRMVJYsMZuzHWocDtE8c oQ7vZtSbkw5HgEUqlqgVYjTc0XrBx/akb04Ln3uE7J+AsSuSItrSjtS+u64T6wouNEso 3P+A== X-Received: by 10.52.249.41 with SMTP id yr9mr657873vdc.17.1371142529735; Thu, 13 Jun 2013 09:55:29 -0700 (PDT) MIME-Version: 1.0 Sender: julienpauli@gmail.com Received: by 10.220.188.73 with HTTP; Thu, 13 Jun 2013 09:54:49 -0700 (PDT) In-Reply-To: References: <51B83999.90103@gmail.com> Date: Thu, 13 Jun 2013 18:54:49 +0200 X-Google-Sender-Auth: OLLhjoBGwq8QzW-8fJWvBVNvTQ4 Message-ID: To: Nikita Popov Cc: Terry Ellison , PHP internals Content-Type: multipart/alternative; boundary=089e01294a806be23c04df0bff66 Subject: Re: [PHP-DEV] Internal object orientation documentation available! From: jpauli@php.net (Julien Pauli) --089e01294a806be23c04df0bff66 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Wed, Jun 12, 2013 at 10:04 PM, Nikita Popov wrote= : > On Wed, Jun 12, 2013 at 11:04 AM, Terry Ellison >wrote: > > > On 10/06/13 19:33, Nikita Popov wrote: > > > >> We just published some rather extensive documentation on internal obje= ct > >> orientation: > >> > >> http://www.phpinternalsbook.**com/classes_objects.html< > http://www.phpinternalsbook.com/classes_objects.html> > >> > >> This is part of a larger project aimed at documenting the engine and > >> making > >> it accessible to new contributors. > >> > > This looks like an excellent beginning so thanks. A few general > comments: > > > > 1) I notice that your book is "=A9 Copyright 2013, Julien Pauli - Ant= hony > > Ferrara - Nikita Popov. All Rights Reserved" rather than GDFL or one o= f > > the CC variants of open document licences. They only issue that I see > here > > is that I -- and possibly others -- might be a bit guarded in providing > > comment and input if that content was being transferred to the authors > > unconditionally. Also if you are reserving all rights then you will ne= ed > > to be careful to ensure that all the content is yours and not extracted > > from an open or other 3rd party source. Surely this going to add to yo= ur > > authoring burden? > > > > This is just a legal precaution, because we are not yet exactly sure abou= t > the publishing formats for this project. If we wanted to actually have a > (printed) book, then questions of ownership can become problematic. Anywa= y, > I'm pretty sure that we will publish this under a CC license eventually. > > 2) Wikipedia, for example, contains a lot of good in-depth explanation o= f > > CompSci concepts and standard patterns such as > > http://en.wikipedia.org/wiki/**Hash_table< > http://en.wikipedia.org/wiki/Hash_table>. > > You might consider the content cut: when you include basic discussion o= f > > 101 principles (e.g. on HashTables); and when you limit > > your content to their PHP-specific implementation, with suitable > > references to the 101 stuff. Tending to the former will make the book a > lot > > longer, albeit standalone. Your call, but I would have thought that th= e > > majority of the readership by nature will have some CompSci background > and > > so want to skip the 101 stuff, or be referenced out to the appropriate > > in-depth WP or other reference. > > > > We don't have particularly much "101 stuff" to cover (basically just > hashtables), in which case I think its better to include a small > introduction to the topic to make things self-contained. Also, this proje= ct > is targeted not just at developers with years of C experience, but also a= t > people coming from a more higher-level (PHP) background, in which case > intimate knowledge of things like hashtables probably can't be expected. > > > > 3) What is your preferred markup format for feedback and contributions? > > E.g. do you maintain an ODF or Docbook XML under some accessible git > > repository, or is is a case of (for example) > > > > hashtables/basic_structure.html para at line 138. Not quite true th= at > > "the arBucket array will never shrink down: you can not reduce a PHP > > array, you only can grow it". You can always implement your own > > resizer by realloing the arBucket array and the calling > > zend_hash_rehash() to do this. (This would be a good standard hash > > API function by the way. > > > Heh, how did you get to that page? Wasn't supposed to be linked anywhere, > as that chapter isn't done yet. In any case, we are writing this in RST > (reStructured Text) in a private git repo (which will be made public > sometime down the road). So if you have feedback, no need to write text i= n > any particular format, just point us to what wrong / missing (or any othe= r > suggestions) and we'll fix it. > > Regarding your particular example: Agree that this wasn't right in that > formulation. The text now says "while the arBuckets array automatically > grows, it will *not* shrink when you remove elements". I would rather not > mention the hack to implement the shrinking though, because its bad style > to directly mess with the members of the HT. > > Yes that was my writings. As I'm not English :-) I may miss words or sometimes turn sentences to a different meaning from what I initially thought in my native language. Nikita fixes that ;-) Julien.Pauli --089e01294a806be23c04df0bff66--