newLISP Fan Club

Forum => newLISP in the real world => Topic started by: johu on April 09, 2011, 01:36:06 AM

Title: About "Code Patterns in newLISP"
Post by: johu on April 09, 2011, 01:36:06 AM
Hello, Lutz.



I have translated "Code Patterns in newLISP" to Japanese and I'm reviewing it.

Now I have some suggestion.



Evaluating remotely

The parameter p is nil when no result was received during the last 100 micro seconds,

The parameter p is nil when no result was received during the last 1000 micro seconds,



maybe.





CGI processing in HTTP mode

extract or set cookies amd other useful routines

extract or set cookies and other useful routines





Unevenly aligned structures

    return(&data);

    return(&data);



There are two places.



Thanks,
Title: Re: About "Code Patterns in newLISP"
Post by: Lutz on April 09, 2011, 07:37:29 AM
Thanks Johu, corrections are online here:



http://www.newlisp.org/downloads/CodePatterns.html





Ps: 1000 milli seconds
Title: Re: About "Code Patterns in newLISP"
Post by: johu on April 11, 2011, 02:19:16 AM
Thank you, Lutz.

And I found some points to be corrected when reviewing.



  <li>'push' and 'pop'</li>

  <li>Accessing lists</li>

   ↓

  <li>'push' and 'pop'</li>

  <li>'extend'</li>

  <li>Accessing lists</li>





Using 'net-peek'

'net-peek returns the number of characters pending to read.

(delete a apostrophe ahead of net-peek)

net-peek returns the number of characters pending to read.





Nested associations

See the users manual chapter "17. Object Oriented Programming in newLISP" for details.

See the users manual chapter "18. Functional-object oriented programming" for details.



maybe





Transferring files

The <tt>-read-file</tt> function returns the contents received.

(delete a hyphen ahead of read-file)

The <tt>read-file</tt> function returns the contents received.



Regards,
Title: Re: About "Code Patterns in newLISP"
Post by: Lutz on April 11, 2011, 07:07:09 AM
Thanks Johu, updates here:



http://www.newlisp.org/downloads/CodePatterns.html
Title: Re: About "Code Patterns in newLISP"
Post by: johu on April 12, 2011, 02:25:58 AM
Thank you, Lutz.



I finished to translate "Code Patterns in newLISP" into Japanese.

//http://cid-23a9a25e1aec3626.office.live.com/self.aspx/.Public/CodePatterns-20110411.zip



And I'm sorry,, I forgot to show  a point to be corrected.



Pre-processing the request

newlisp httpd-conf.lsp -http -d 80 -w /home/www &>amp;



newlisp httpd-conf.lsp -http -d 80 -w /home/www &





Regards,
Title: Re: About "Code Patterns in newLISP"
Post by: Lutz on April 12, 2011, 07:20:24 AM
Thanks Joh, online now here:



http://www.newlisp.org/CodePatterns-jp.html



and also linked from the documentation page.
Title: Re: About "Code Patterns in newLISP"
Post by: johu on April 13, 2011, 02:41:36 AM
Thanks Lutz for the online.