|
Programming StandardsHere are the programming standards that I and my team follow when programming in C or Java
| Topics this page:
|
|
Existing Code - Principles
1. We adhere to the style of the original.When modifying existing software, our changes follow the style of the original code unless changes to rewrite a new coding style is explicitly requested within the scope of the project.There are several reasons why we feel that it is usually not economically beneficial to rewrite old software just to make it match the new style:
2. We adhere to the Principle of Least Astonishment.We avoid doing things that may surprise people (other programmers and users of our software). We aim to make the interaction and behaviors exhibited by our software predictable and consistent.
3. We aim to do it right the first time, right from the start.By experience, we know that, more often than not, supposedly prototype or experimental code make their way into a system people depend on. It's difficult and time consuming to decipher code, We never know whether we will have an opportunity to "finish up" a piece of code. So, we consistently:
4. We justify deviations to StandardsIf we do not feel that a particular standard (whether defined in a document or implicit in existing code), we explain why in the coding and clearly identify where deviations are necessary. This is especially important when implementing any unusual patterns of use or behavior. | The programming standards we follow are based on these books and websites: The Elements of Java Style (Cambridge University Press, 2000) by Al Vermeulen
|
LibrariesInternational Components for Unicode (ICU) is a set of IBM open-sourced code libraries providing Unicode and Globalization support for software applications. It is mature and widely-used. ICU is portable and gives applications the same results on all platforms and between C/C++ and Java software. |
| Related Topics:
|
| Your first name: Your family name: Your location (city, country): Your Email address: |
Top of Page
Thank you! |