lunduniversity / introprog

Teaching material for "Introduction to Programming using Scala" at Lund University, LTH. http://cs.lth.se/pgk/
141 stars 167 forks source link

Change Instruction and wording in exercise 2.4 a) #749

Closed axelnilsson98 closed 9 months ago

axelnilsson98 commented 10 months ago

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 commented 10 months ago

good point! PR welcome!

bjornregnell commented 10 months ago

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 commented 9 months ago

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