Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn exercise 008 into practice #2176

Closed
cuihtlauac opened this issue Mar 13, 2024 · 7 comments
Closed

Turn exercise 008 into practice #2176

cuihtlauac opened this issue Mar 13, 2024 · 7 comments
Labels
beginner can be done by an OCaml beginner exercise good first issue Good for newcomers help wanted outreachy Outreachy contributions and blog posts

Comments

@cuihtlauac
Copy link
Collaborator

cuihtlauac commented Mar 13, 2024

Extract the OCaml code from the markdown file corresponding to this exercise. The file is: data/exercise/008_NAME.md (where 008 is the number from the title of this issue and NAME is the rest of the file name, for instance data/exercise/001_tail.md is the file which corresponds to exercise 001). Use the code in this file to create a folder practice/008 (using this same number).

Populate the 008 folder with (almost) the same files as in folders practice/001 and practice/002 (they are examples).

Three files are different in each folder:

  1. practice/008/ex.ml: it contains the function's signature, which needs to be implemented by the learner;
  2. practice/008/work/impl.ml: it includes the template meant to be filed by the learner;
  3. practice/008/answer/impl.ml: consists of the solution from the original markdown file.

The examples included in the original markdown file must be turned into test cases in the practice/008/ex.ml file.

Folder structure to create:

practice/008/
├── answer
│   ├── impl.ml
│   └── test
│       ├── dune
│       └── run.ml
├── dune
├── dune-project
├── ex.ml
└── work
    ├── impl.ml
    └── test
        ├── dune
    
@cuihtlauac cuihtlauac added beginner can be done by an OCaml beginner exercise good first issue Good for newcomers help wanted outreachy Outreachy contributions and blog posts labels Mar 13, 2024
@jahielkomu
Copy link
Contributor

Hello @cuihtlauac .
Can I take this up please?

@cuihtlauac
Copy link
Collaborator Author

@jahielkomu: sure, please do

@jahielkomu
Copy link
Contributor

@jahielkomu: sure, please do

Thank you @cuihtlauac
Please kindly expound on the statement;
"Populate the 008 folder with (almost) the same files as in folders practice/001 and practice/002(they are examples)."

I'm failing to find these folders, that is,practise/001 and practise/002 . Am I missing something?
Thanks.

@cuihtlauac
Copy link
Collaborator Author

Once you've cloned ocaml.org, the folders 001 and 002 are in the practice folder. You must create your own (with the name 008) aside from the existing ones.

@jahielkomu
Copy link
Contributor

jahielkomu commented Mar 13, 2024

Once you've cloned ocaml.org, the folders 001 and 002 are in the practice folder. You must create your own (with the name 008) aside from the existing ones.

I have to get the new changes locally, I cloned a forked repository way earlier let me get the updated version.
Thank you

@jahielkomu
Copy link
Contributor

jahielkomu commented Mar 16, 2024

Hello @cuihtlauac , I hope you are well.
Can I ask what the error No config found for file practice/008/answer/impl.ml. Try calling 'dune build'.ocamllsp means?
I have tried the suggestion therein but it hasn't helped.
If it is okay with you please advise.
Thank you.

@cuihtlauac
Copy link
Collaborator Author

Closed by #2242

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beginner can be done by an OCaml beginner exercise good first issue Good for newcomers help wanted outreachy Outreachy contributions and blog posts
Projects
Archived in project
Development

No branches or pull requests

2 participants