To keep our code consistent, we are implementing coding standards for YaBB 3. The current code does not meet all of these and will be slowly fixed. Coding standards are important because it makes the code more readable for other developers and for mod writers.
In addition to the standards listed below, we recommend reading Damian Conway's excellent Perl Best Practices. While we don't follow all of the standards listed in the book, it still contains many excellent recommendations and ideas.
These standards are designed to be guides to how YaBB developers should write code. While these standards may be broken in special cases, you should be prepared to explain why you have broken them.
We encourage mod writers to follow these standards as well.
- General Rules -- General information that applies to all code.
- POD -- Information on how we will use POD for our code's documentation
- Variables -- Information on variable names and characteristics
- Regular Expressions -- How we will keep our regexes from getting too unreadable.
- Subroutines -- Some basic rules on writing subroutines.
We will be putting links to interesting articles about various Perl things in this section.