Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reference for Prolog Best Practices?

Tags:

prolog

Is there a (relatively) current reference for best practices in Prolog? One suitable for giving to commercial Prolog developers who have not studied logic programming or advanced texts like "The Craft of Prolog"?

There are plenty of general tutorials but the only one on best practices I could find was this one from 1994:

http://www.cs.auckland.ac.nz/~j-hamer/07.363/prolog-for-se.html

There's also the individual question on comp.lang.prolog or here like the following:

Prolog Best Practice: checking if a variable is already bound.

But nothing more comprehensive, current, and suitable to the commercial developer.

This issue came up during an interview for a job that would require formal mentoring and code reviews for beginner to intermediate Prolog developers. Working as an experienced Prolog contractor, I frequently advised other developers who had advanced knowledge of their product and its domain, but were self-taught or who had limited Prolog training. But the mentoring was on an ad hoc basis, responding to their particular day-to-day issues.

Anyway, I've been away from Prolog development for a while and the interviewers question got me thinking that there should be such a reference. If there isn't one out there, I will likely create it myself if I get this job.

like image 310
Andy Lech Avatar asked Feb 25 '23 14:02

Andy Lech


1 Answers

Coding guidelines for Prolog by Covington et al. is very recent; in fact, I believe it hasn't even been formally published yet. There was some discussion about it on the SWI-Prolog mailing list some six weeks ago.

like image 164
Fred Foo Avatar answered Feb 27 '23 03:02

Fred Foo