exercism / prolog

Exercism exercises in Prolog.
https://exercism.org/tracks/prolog
MIT License
29 stars 37 forks source link

Create stub files for all exercises #88

Closed kytrinyx closed 4 years ago

kytrinyx commented 5 years ago

We have decided to require all file-based tracks to provide stubs for their exercises.

The lack of stub file generates an unnecessary pain point within Exercism, contributing a significant proportion of support requests, making things more complex for our students, and hindering our ability to automatically run test-suites and provide automated analysis of solutions.

We believe that it’s essential to understand error messages, know how to use an IDE, and create files. However, getting this right as you’re just getting used to a language can be a frustrating distraction, as it can often require a lot of knowledge that tends to seep in over time. At the start, it can be challenging to google for all of these details: what file extension to use, what needs to be included, etc. Getting people up to speed with these things are not Exercism’s focus, and we’ve decided that we are better served by removing this source of confusion, letting people get on with actually solving the exercises.

The original discussion for this is at https://github.com/exercism/discussions/issues/238.

Therefore, we’d like this track to provide a stub file for each exercise.

Average-user commented 4 years ago

@kytrinyx Apologies but I haven't been able to figure out what exactly do you mean with stubs files.

neenjaw commented 4 years ago

Like an exercise template, so for queen-attack it might be like:

% queen_attack.pl

create((X,Y)) :-
  fail. % remove this line and insert your own predicates

attack(QueenA, QueenB) :-
  fail. % remove this like and insert your own code
Average-user commented 4 years ago

We currently have

% Please visit https://exercism.io/tracks/prolog/installation
% for instructions on setting up prolog.
% Visit https://exercism.io/tracks/prolog/tests
% for help running the tests for prolog exercises.

% Replace the goal below with
% your implementation.

create(false).

attack(false).

Does this count?

neenjaw commented 4 years ago

Ya I think so, the code owners have the ability to push an issue out to all the language repos, so I don;t think it was something meant specifically for this repo, but a broad cast to them all to create stubs.

Average-user commented 4 years ago

I know. Just checking if this can be closed. Thanks