Coding Guidelines for {Prolog}

Title
Publication TypeJournal Article
Year of Publication2012
AuthorsCovington MA, Bagnara R, O’Keefe RA, Wielemaker J, Price S
JournalTheory and Practice of Logic Programming
Volume12
Pagination889-927
Date Published11/2012
ISSN1471-0684
Keywordscoding standards, debugging, efficiency, Prolog, style
Abstract

Coding standards and good practices are fundamental to a disciplined approach to software projects, whatever programming languages they employ. Prolog programming can benefit from such an approach, perhaps more than programming in other languages. Despite this, no widely accepted standards and practices seem to have emerged up to now. The present paper is a first step towards filling this void: it provides immediate guidelines for code layout, naming conventions, documentation, proper use of Prolog features, program development, debugging and testing. Presented with each guideline is its rationale and, where sensible options exist, illustrations of the relative pros and cons for each alternative. A coding standard should always be selected on a per-project basis, based on a host of issues pertinent to any given programming project; for this reason the paper goes beyond the mere provision of normative guidelines by discussing key factors and important criteria that should be taken into account when deciding on a fully-fledged coding standard for the project.

DOI10.1017/S1471068411000391
We are a passionate team of experts. Do not hesitate to let us have your feedback:
You may be surprised to discover just how much your suggestions matter to us.