Hi all, im a computer science teacher. Is there anyone here who teaches java using Moodle?
My question is specifically about this plugin called Code Runner. I want to create a question that requires to use java.io but to be able to work with files, you need to specify a path. Since Moodle runs on a server, I'm unsure what path should I use in terms for my code to pass test cases on Code Runner.
#Any teachers here?
1 messages · Page 1 of 1 (latest)
<@&987246399047479336> please have a look, thanks.
Why io if nio exists 
I'll definitely cover nio as well. this is an introduction course.
@open wyvern Right, but Files.readString and Files.writeString are miles easier than BufferedReader nonsense
so its not about "io then nio" its about showing the easier api
but
okay looking into moodle
I haven't found anything too clear
but
i think you can give them a temp file and read back from it
Since Moodle runs on a server, I'm unsure what path should I use in terms for my code to pass test cases on Code Runner
Basically there are 2 options
either it stops you from doing filesystem operations entirely
or it lets you and will clean up files later
if its the 1st...well harder problem
if its the 2nd, you just need to make them write a file and read it to validate before execution is done
specifics of that would be pretty tied into moodle
thank you so much for looking into this@past lantern !! 🙏 I'll try the second option.
your solution worked! thank you so much once again @past lantern !!!
nice, remember to close this question thread using /help-thread close if your question got resolved
will do!
no problem - tangent though
i'm curious about the curriculum you are going to be using
we get a lot of questions from confused students here
yeah actually good opportunity to talk about that
it's the national curriculum of Bulgaria. needs improvement for sure. I'm not Bulgarian. I'm an international teacher here. But I'm adapting as well. I'll definitely bring up the need for update in the curriculum
is there a place i can get a reference for that?
need for update in the curriculum
Well, luckily for everyone but the people who write curriculums, it probably needs an overhaul
void main() {
println("Hello, world");
}
hard to overstate how not needing to show people classes, static, or String[] args fundamentally shifts the order of teaching
well. the curriculum is all in Bulgarian.. there's a rough draft of its translation but definitely a mess. The person who translated it had no idea. there's a new bulgarian/english speaking faculty just started. im hoping to work together with her to make it make sense 
I mostly care about the order of topics / topics covered
so bulgarian is fine
ok give me a sec
https://drive.google.com/file/d/1te2greLnL3US3syEuJ-2vKDVOJXkwwZT/view?usp=sharing here's a link. module 1 and module 2 is the classes I teach. these are semester courses.
Google Docs
so module 1 is a spreadsheets class and module 2 is a database class?
where did java get into the mix
there is not a single mention of java 
cant access that link
sorry it has been a long day... https://drive.google.com/file/d/1g1uOlEvVyGHjYvRV2EndeVqHwOgEgydE/view?usp=sharing
Google Docs
all good