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

Change Instruction and wording in exercise 2.4 a) #749

Closed
axelnilsson98 opened this issue Sep 6, 2023 · 3 comments · Fixed by #751
Closed

Change Instruction and wording in exercise 2.4 a) #749

axelnilsson98 opened this issue Sep 6, 2023 · 3 comments · Fixed by #751

Comments

@axelnilsson98
Copy link
Contributor

The wording and instructions in exercise 2.4 might be misleading to a person who is not used to how linux and compilation works.

The exercise is about compiling a .scala file and looking for the files created by the compiler.

The command for looking for this files in the compendium is:
ls .scala-build/project*/classes/main

This command doesnt always work when there are multiple project* folders (the problem has been seen on at least 2 mac os computers)

I think the problem stems from students not realizing what the command is doing and what the '*' means. Is it better to change the text to something like:
"look at the files that are in the folder starting with project in the folder .scala-build ...."

instead of giving them a "magical" command that they dont understand?

@bjornregnell
Copy link
Member

good point!
PR welcome!

@bjornregnell
Copy link
Member

bjornregnell commented Sep 6, 2023

We should then state that you should look for files with names ending with .class in some subfolder with a name starting with project...
(I think the command works but it lists multiple dirs, but the confusion might still be there)
Would you like to make a PR yourself or do you want me to do this?

@axelnilsson98
Copy link
Contributor Author

pr has now been sent. What do you think of the wording?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants