Imrpoving programming technicsProgramming rules The establishment of programing rules allows significant improvement in code writing. Several kinds of programming rules exist: • Presentation rules: those rules allow unifying the presentation of the source code. They specify how files, subroutines and source code must be commented. They suggest conventions for the naming of variables; allowing understanding quickly what is their role and where they are defined. They specify how to present the source code to make easy its reading (indentation, comments space…). • Rules to avoid language pitfalls: programming languages suggest constructions that can be sources of errors if they are misused. Programming rules allow limiting the use of those constructions or using them safely. • Rules reducing the code complexity: Those rules specify limits in the instructions complexity that must not be crossed. They allow obtaining code easier to read. • Rules making easier application portage: They limit the use of non-portable constructions and helps to isolate what will need an adaptation work for a portage of a software to another system. Checking programming rules The compliance with programming rules can be automatized by using tools as Logiscope RuleChecker. Verification has to be done at different moment according to the type of verification: Rules to avoid language pitfalls must be controlled every time when presentation rules can be checked only when new versions of software are built. Establishment of programming rules Establishment of programming rules must be done taking in account the habits of developers. Deciding from one day to the next to make obligatory the use of about a hundred programming rules to everybody is doomed to failure. First, programming habits must be examined. From this examination, we can identify defects that must be corrected and the associated rules to establish. Then, regularly, we take stock of those practice adoption and their evolution. Programming style evaluation An audit of programming practices allows pointing out defects and establishing corrective actions. Learn More Automation of the programming manual check Establishment of a programming manual and the automatized check of programming rules with a tool is a great way to improve the programming practices. Learn More Tracking the improvment of programming practices A programming manual has to be regularly brushed up in order to stay effective. Rules reject by programmers have to be challenged and new rules have to be added. Learn More Developping specific rules verification If your company has it own programming rules set to check or specific constraints, the verification’s adaptation is possible. Learn More Programming error detection The programming rules allow detecting sooner some programming error and thus, cut down on time wasting during the debug phases. Learn more |