Re: Random Map Generation

skulkrinbait@googlemail.com wrote: My first prototype for doing this doesn’t give good results, the map being far too random, can someone help me out or point me to a good resource please? Real geography is not random. First, take a grid, say 1001×1001 is size. Now find the middle square of it and set it to … Continued

Re: Parsing Question…

cjl wrote: Short of writing a parser, which is clearly beyond me, what are some reasonable approaches to handling user input that will be executed? Writing a parser is the best option in the long-run. If you were to attempt to interpret the user input some other way, like pure regular expressions, then you would … Continued

On The Legibility of PHP

David Segall wrote: I do not deny that the programmer is the most significant factor in the readability of a program but would you really promote PHP as a language because it is easy to read? I certainly wouldn’t advise against it because of legibility concerns. Any language that supports comments (not all do) and … Continued

Reusable Form Functions

Like me, you are probably confronted with many requests for surveys, questionnaires, feedback forms, registration forms and so forth: forms where the processing requirements are very simple (store in a database or e-mail to a particular address). Despite the simple requirements, there is often quite a lot of work involved: crafting a database to store … Continued

Reusable Table Functions

Ross wrote: I am seeking your advice on the programming language for such an action. i prefer a web table capable of sorting by size, length and so on, therefore built-in function for sorting is appreciated. Down below are a couple of nice PHP functions that may be of use. I’ve taken them from my … Continued