Ignore:
Timestamp:
Jun 7, 2022 6:41:24 AM (23 months ago)
Author:
anonymous
Message:

Add App param ‘template_ext’ used to inform services where to find header and footer templates. Minor fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/coding_standards.txt

    r334 r767  
    1111Essential reading:
    1212http://pear.php.net/manual/en/standards.php
     13
     14
     15=====================================================================
     16General guidelines
     17=====================================================================
     18
     19- Respect these coding styles.
     20- Don't add npm dependencies if you can avoid it. If a new dependency is unavoidable, be mindful of its size, freshness and added value.
     21- Use Svelte for all UI needs.
     22- Try to not shoehorn your code into existing functions or components.
     23- Simple is better. OOP is not inevitable. Simple functions often work as well, if not better.
     24- If you must use OOP, avoid inheritance as much as possible, no one likes digging several layers of abstraction.
     25- Comment the code. What, why, how, just make your intent clear.
    1326
    1427
     
    4558
    4659Use an indent of 4 spaces, with no tabs. Code and especially comments should
    47 usually be wrapped <= 80 characters. Exceptions are made in the case where 
     60usually be wrapped <= 80 characters. Exceptions are made in the case where
    4861code readability is significantly improved with longer lines.
    4962
     
    224237    {
    225238        $app =& App::getInstance();
    226    
     239
    227240        // If an array, check values recursively.
    228241        if (is_array($email)) {
     
    284297All code should work with register_globals = Off. This means using
    285298$_REQUEST, $_GET, $_POST, $_COOKIE, $_SESSION, $_SERVER, and $_ENV
    286 to access all request, get, post, cookie, session, server, and 
     299to access all request, get, post, cookie, session, server, and
    287300environment data, respectively.
    288301
Note: See TracChangeset for help on using the changeset viewer.